Skip to content

Commit a46dff5

Browse files
authored
Translatable default file name for screenshots (#13800)
This makes the word "Screenshot" in the default file name for screenshots translatable.
1 parent 7f7f0c4 commit a46dff5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • files/usr/share/cinnamon/cinnamon-screenshot

files/usr/share/cinnamon/cinnamon-screenshot/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def build_filename(directory, file_type='png'):
6666
"""Build a 'Screenshot <iso-timestamp>.<ext>' path inside directory.
6767
Caller is responsible for passing an existing directory."""
6868
timestamp = GLib.DateTime.new_now_local().format('%Y-%m-%d %H-%M-%S.%f')[:-3]
69-
return os.path.join(directory, f'Screenshot {timestamp}.{file_type}')
69+
return os.path.join(directory, f'{_('Screenshot')} {timestamp}.{file_type}')
7070

7171
def show_in_file_manager(uri):
7272
f = Gio.File.new_for_uri(uri)

0 commit comments

Comments
 (0)