-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tx client pulls malformed source files for gettext (.pot) resources #172
Comments
Hey @Mi605 , I think this is a problem with Transifex in general and not with the client. ie I think that if you try to download the source file from the Transifex UI, you will get the same behavior. My question is: why would you need to download the source pot file from Transifex in the first place? We implemented |
Hello @kbairak,
There are several reasons why this is needed. A second reason is the scenario: You work from different locations, without having access to anything besides the resource file you can download from transifex (either by tx client or by Transifex web UI). But what you get is not a valid .pot resource file, you have to clean manually thousands of filled in msgstr entries before you can start work with the file, e.g. adding some few new entries or remove some outdated ones, before uploading the resource back to transifex for update. For this transifex needs to return the source files at least properly formatted. In a .pot file all the msgstr entries are to be empty strings:
What you return as source is simply unusable without intricate manual cleaning.
You are true, I've just checked. There exists the very same issue. The source returned by UI is modified by transifex, so you can't countercheck against your locally stored .pot source you've used for former upload before uploading a new one. So the big fat warning about deletion of translations in UI when the new source is uploaded is all in vain. The source file returned can't get checked against what you think what should be present on transifex. You will only notice after upload, when somebody complains about regression/revert of changes made by somebody else in the meantime. But even when Transifex web UI fails on this, at least the tx client should return a proper .pot source file when requested. |
Bug report:
scope:
focus:
issue:
Example of valid .pot source file:
(string entries section)
Example of what tx client pulls instead:
(string entries section)
The malformed .pot files tx client pulls are unusable for further usage and need manual cleaning from all the false msgstr entries added.
The text was updated successfully, but these errors were encountered: