jwilk / i18nspector

checking tool for gettext POT, PO and MO files
https://jwilk.net/software/i18nspector
MIT License
2 stars 4 forks source link

Please add checks for perl-brace-format (Locale::TextDomain) #6

Closed jwilk closed 3 years ago

jwilk commented 4 years ago

GNU gettext documentation says:

Perl brace format strings are described in the Locale::TextDomain manual page […]. In brief, Perl format uses placeholders put between braces ({ and }). The placeholder must have the syntax of simple identifiers.

Example PO snippet:

#: ../clawsker:2267 
#, perl-brace-format
msgid "Perl-GTK3 version {gtkv}, built for {gtkb}, running with {gtkr}."
msgstr "Perl-GTK3 versió {gtkv}, muntatge per a {gtkb}, s'executa amb {gtkr}."

In #5, @intrigeri suggested adding support for this format.

The format is extremely simple, so this should be straight-forward to implement.

jwilk commented 3 years ago

Fixed in 0.26.

intrigeri commented 3 years ago

Thanks a lot! :)