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
Inconsistent direction on translation tagging #134
Comments
|
The parts of the documentation you linked describe different parts of AppStream. In metainfo files, the paragraphs are translated, in collection metadata the full description tag is translated. Intltool not incorporating your translation is likely a different bug. I can maybe help with that if you show me your project or an example of what doesn't work. |
|
@ximion, This does not translate: |
|
The file itself looks fine, I only get these validation issues: (you might want to fix those - if you change the ID, you will want to add a I don't know exactly what is wrong with itstool, that should just work like that. However, it might be a good idea in general to switch to modern Gettext instead at this point. If you remove all the itstool underscore markings, and just run |
|
Well ... Ok. That gives me a pot file with different tag names for appdata strings (e.g. "#: gnome-gmail.appdata.xml.in:9" vs "#: ../gnome-gmail.appdata.xml.in.h:3"). I question why this is significant, since other strings in the file are being successfully translated. I wrote this a couple of years ago to attempt to navigate the opacity of each environment. Using it now to generate the po's via gettext, I find:
Furthermore, regardless of the input, I get no translations in .in files - a regression. Conclusions
I appreciate your attention on this. |
|
On Sat, Sep 9, 2017 at 12:39 PM, Matthias Klumpp ***@***.***> wrote:
... it might be a good idea in general to switch to modern Gettext instead at this point. If you remove all the itstool underscore markings, and just run xgettext gnome-gmail.appdata.xml -o /tmp/test.pot it will do the right thing (if it doesn't, your xgettext is too old and you don't have AppStream installed - newer Gettext versions won't need AppStream to be installed).
I look forward to following a modern gettext or intltool generic
example at https://www.freedesktop.org/software/appstream/docs/sect-Quickstart-Translation.html
…--
Amateurs and zealots both have strong incentives not merely to
misrepresent reality, but to actually misunderstand it.
Shirky
|
|
Eww, right, that page should be updated. Using only Xgettext is sufficient now. |
The documentation is inconsistent on how to tag description fields for translation. In one place, it says to translate by <p>aragraph. In another, it says to translate at the <description> level.
I used <_p> in a component description. It is ignored by intltool.
The text was updated successfully, but these errors were encountered: