Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
T
tails
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 947
    • Issues 947
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 13
    • Merge Requests 13
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • tails
  • tails
  • Issues
  • #17928

Closed
Open
Opened Sep 13, 2020 by intrigeri@intrigeriMaintainer

Port Perl code to translatable strings format supported by GNU gettext

Context: #17568 (closed), https://github.com/jwilk/i18nspector/issues/5

We should switch from String::Errf + gettext to https://metacpan.org/pod/Locale::TextDomain, and then i18nspector upstream is open to add checks about this translatable strings format. This would allow detecting, for example, missing placeholders or mistakenly translated placeholders in translated strings.

This will also allow fully checking that placeholders match in translated strings, using msgfmt --check.

All the code that needs adjusting lives in config/chroot_local-includes/usr/src/iuk/lib/Tails/IUK/Frontend.pm.

But while we're at it, let's also port:

  • config/chroot_local-includes/usr/src/persistence-setup/lib/Tails/Persistence/Step/*.pm to this translatable strings format: I see 3 instances of sprintf + gettext with positional placeholders, that translators cannot reorder.
  • other Perl programs that use Locale::gettext
Edited Sep 14, 2020 by intrigeri
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
Tails_4.12
Milestone
Tails_4.12 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: tails/tails#17928