Skip to content

Conversation

fln
Copy link

@fln fln commented Oct 9, 2025

This commit extends the dictionary generator to add go-format gettext flag to the translation entries, that uses printf style parameter interpolation.

The go-format flag is a hint for translation management software to add extra checks for the translations. For example, making sure translated string still has all the parameter placeholders.

Flag syntax - https://www.gnu.org/software/gettext/manual/html_node/PO-File-Entries.html

Supported sticky flags - https://www.gnu.org/software/gettext/manual/html_node/Sticky-flags.html

This commit extends the dictionary generator to add `go-format` gettext flag
to the translation entries, that uses printf style parameter interpolation.

The `go-format` flag is a hint for translation management software to add extra
checks for the translations. For example, making sure translated string
still has all the parameter placeholders.

Flag syntax - https://www.gnu.org/software/gettext/manual/html_node/PO-File-Entries.html

Supported sticky flags - https://www.gnu.org/software/gettext/manual/html_node/Sticky-flags.html
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.

1 participant