Replies: 4 comments 7 replies
-
It will depend on the build system you're using, when using meson for instance you can use the i18n plugin available to do something like this https://github.com/elementary/calculator/blob/master/po/extra/meson.build (it also requires a LINGUAS and POTFILES to work) |
Beta Was this translation helpful? Give feedback.
-
The MetaInfo Creator will generate Meson snippets for you to translate the files: https://www.freedesktop.org/software/appstream/metainfocreator/#/ And that should pretty much be it :-) |
Beta Was this translation helpful? Give feedback.
-
As already set, I don't use gettext or meson. I have now accomplished to create a Example Project, but I'm not sure, if there are better Ways to do this, as I don't have any experience in gettext. |
Beta Was this translation helpful? Give feedback.
-
I found a solution but did not implement it yet. Have look at this two entities in my repo when looking for a solution:
In short. You can use the regular GNU gettext tools. Nothing else needed. |
Beta Was this translation helpful? Give feedback.
-
I'm currently setting up Weblate for my Projects. I also want to include the AppStream and my .desktop (It looks like I can do this using xgettext) file. As Weblate does not support both directly, I need to create a other format. The Documentation states 3 Ways of doing this: intltool, a autotools macro and itstool. All Ways uses gettext, which I have never used before.
I failed to got intltool working, and even if I could, I need to change the structure of the file (use underscores) which can lead to problems.
As I don't use autotools, I can't use the macro.
The only remaining Way is itstool and I got it working, but it has big problem: Every time I run
itstool -i as-metainfo.its -o translations/test.po test.metainfo.xml
it deletes all translations. This means, when I add a new Screenshot with a Caption and want to add the new Caption to Weblate, I'm losing all translations, so this is not useable for me.Is there a preferred Way to integrate AppStream with Weblate?
Beta Was this translation helpful? Give feedback.
All reactions