Skip to content

Translatable default file name for screenshots#13800

Merged
mtwebster merged 1 commit into
linuxmint:masterfrom
Cobinja:screenshot-default-filename
Jun 6, 2026
Merged

Translatable default file name for screenshots#13800
mtwebster merged 1 commit into
linuxmint:masterfrom
Cobinja:screenshot-default-filename

Conversation

@Cobinja

@Cobinja Cobinja commented Jun 5, 2026

Copy link
Copy Markdown
Member

This makes the word "Screenshot" in the default file name for screenshots translatable.

This makes the word "Screenshot" in the default file name for screenshots translatable.
@mtwebster mtwebster merged commit a46dff5 into linuxmint:master Jun 6, 2026
4 of 5 checks passed
@lhmouse

lhmouse commented Jun 17, 2026

Copy link
Copy Markdown

This causes errors like

Unpacking cinnamon-common (6.7.2+alfa) over (6.7.2+alfa)…
Setting up cinnamon-common (6.7.2+alfa)…
Failed to byte-compile /usr/share/cinnamon/cinnamon-screenshot/util.py:   File "/usr/share/cinnamon/cinnamon-screenshot/util.py", line 69
    return os.path.join(directory, f'{_('Screenshot')} {timestamp}.{file_type}')
                                   ^^^^^^
SyntaxError: f-string: unmatched '('

@mtwebster

mtwebster commented Jun 17, 2026

Copy link
Copy Markdown
Member

Have you installed a different system python? This should be tolerated in 3.12+. I can't reproduce it.

33c8d28

@lhmouse

lhmouse commented Jun 17, 2026

Copy link
Copy Markdown

Have you installed a different system python? This should be tolerated in 3.12+. I can't reproduce it.

No. It's just the Ubuntu python:

$ dpkg -l | egrep '^ii  python3 '
ii  python3                                    3.14.3-0ubuntu2                              amd64        interactive high-level object-oriented language (default python3 version)

33c8d28

Thanks. I have edited the script by hand, and sudo dpkg-reconfigure cinnamon-common does not show errors any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants