Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have some websites with a quite primitive .po generator, and many times there are strings that should not be translated (like
<table>or code snippets).So, I have incorporated an ignore.pot file to the translation repositories, and when updating the .pot file I clean the strings from the ignore.pot file from the result with this command:
msgattrib --set-obsolete --only-file=ignore.pot contents.pot -o contents.potThis way the strings are removed from the .pot file. When building the website, this strings are created again but as they don't have any translations they simply appear in the source language.
Maybe is a good idea to add this feature as an add-on?
Beta Was this translation helpful? Give feedback.
All reactions