Skip to content

Translation: Some strings need to be fetched with ngettext #18

Open

Description

@gunchleoc

Please fetch "%(current_file)d files" in the following 2 strings with ngettext, so that they can be translated properly:

Warning: Some files were not saved, copied: %(current_file)d files out of %(total)d total

Located in: usr/lib/linuxmint/mintBackup/mintBackup.py:824

Warning: Some files were not restored, copied: %(current_file)d files out of %(total)d total

Located in: usr/lib/linuxmint/mintBackup/mintBackup.py:1336

Related bug on Launchpad: https://bugs.launchpad.net/linuxmint/+bug/1390481

Activity

  1. magnondamant commented on Nov 26, 2026

    @magnondamant

    Looks like the related code has changed somewhat between then and with latest tag: 2.4.8
    see /mintbackup/usr/lib/linuxmint/mintbackup/mintbackup.py L589:

    self.errors.append([_("Warning: Some files were not saved. Only %(archived)d files were backed up out of %(total)d.") % {'archived': self.archived_files, 'total': self.num_files}, None])
    

    and /mintbackup/usr/lib/linuxmint/mintbackup/mintbackup.py L713 (I think):

    self.errors.append([_("Warning: Only %(number)d files were restored out of %(total)d.") % {'number': self.restored_files, 'total':  self.num_files}, None])
    

    Changing messages to use Python's ngettext still seems relevant though.

    I'm slowly working my way through the Linux Mint Developer Guide, and might tackle this as a starting point once / if I can wrap my head around how to test changes.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions