You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intltool "used to be used" for translation instead of direct gettext, due to the latter doesn't scan some file types.
Gnome originally developed intltool, but dropped it few years ago, because gettext evolved. Since version 0.18.3 (Aug'13), gettext supports string extraction from .glade files. Version 0.19 (Jun'14) added support for .desktop and .gsettings files.
@ice0@rodolforg
Kindly tell me if I have to remove every existance of intltools. what if it causes any problems to the code or gettext is already properly applied in the code as i can see in the .sh files.
and please also tell me what version of gettext do i have to apply. U guys mentioned >=3.14 for gtk but the versions of gettext are like 0.2.1 something for the latest one.
Work Update: I somehow managed to create the alternative for the function STUDIO_INTLTOOL_MERGE which is STUDIO_GETTEXT_MSGFMT but it is giving error that cannot locate ITS rules for xml.in files rest is working i guess. I would love to have some tips although i am referring to this.
Thanks :)
PS: We have to create a ITS file for the xml files, to solve this i guess !!
but it is giving error that cannot locate ITS rules for xml.in
Yes, because you need to use itstool instead of msgfmt to merge translations to plugin.xml files.
Also I suggest to pause work on this issue. Just checked how it works, and in my opinion they did a step back with translating the xml with itstool. Using itstool requires some changes to our translation pipeline, so I need some time to test this.
@ice0 Okay, No Problem, i am pushing the changes i made in my local machine to this PR for later reference, kindly let me know when we will work on this issue again. :)
@ice0 I was having an idea, why don't we add gettext to synfig. and when it will become fully functional, then we can remove the intltool. till then let it run on intltool and by this we will keep moving forward on this issue. IDK your call.
@DhairyaBahl we already using gettext :) The last place where intltool is used - is merging translation for the plugin.xml files. Gnome suggest to use ITSTool instead of intltool to translate this files. So I see only CONS here:
We are breaking our current translation pipeline;
We don not remove extra dependency - just switch it to another;
We need extra files (with rules) to do the same work;
We are losing support for old-old-stable distributions.
Activity
DhairyaBahl commentedon Oct 24, 2020
@ice0 @rodolforg
I would like to work on this issue. Kindly assign it to me. Thanks :)
DhairyaBahl commentedon Oct 24, 2020
@ice0 @rodolforg
Kindly tell me if I have to remove every existance of intltools. what if it causes any problems to the code or gettext is already properly applied in the code as i can see in the .sh files.
and please also tell me what version of gettext do i have to apply. U guys mentioned >=3.14 for gtk but the versions of gettext are like 0.2.1 something for the latest one.
Thanks :)
ice0 commentedon Oct 25, 2020
No problem here because all changes are reviewed and tested. If some problems will be found later - they always can be fixed.
Since we are trying to support as many operating systems as possible, it is best to use minimal version possible.
In your situation this is 0.19 (https://packages.ubuntu.com/xenial/gettext)
DhairyaBahl commentedon Oct 25, 2020
@ice0 Okay got it. Thanks :)
PS: So I am applying 0.19.7 everywhere which you linked.
DhairyaBahl commentedon Oct 25, 2020
@ice0 @rodolforg
Work Status Update:
I am only left with "Addendum: Translate other XML formats" Should I make a pull request till now ??
Thanks :)
ice0 commentedon Oct 26, 2020
Sure. At least we can review it, and you can check if it builds successfully on other OS.
DhairyaBahl commentedon Nov 7, 2020
@ice0 @rodolforg
Work Update: I somehow managed to create the alternative for the function STUDIO_INTLTOOL_MERGE which is STUDIO_GETTEXT_MSGFMT but it is giving error that cannot locate ITS rules for xml.in files rest is working i guess. I would love to have some tips although i am referring to this.
Thanks :)
PS: We have to create a ITS file for the xml files, to solve this i guess !!
ice0 commentedon Nov 8, 2020
@DhairyaBahl I used this link (https://wiki.gnome.org/MigratingFromIntltoolToGettext) to understand how it work.
Yes, because you need to use
itstoolinstead ofmsgfmtto merge translations toplugin.xmlfiles.Also I suggest to pause work on this issue. Just checked how it works, and in my opinion they did a step back with translating the xml with
itstool. Usingitstoolrequires some changes to our translation pipeline, so I need some time to test this.DhairyaBahl commentedon Nov 8, 2020
@ice0 Okay, No Problem, i am pushing the changes i made in my local machine to this PR for later reference, kindly let me know when we will work on this issue again. :)
PS: I already pushed those changes in the PR.
DhairyaBahl commentedon Nov 12, 2020
@ice0 I was having an idea, why don't we add gettext to synfig. and when it will become fully functional, then we can remove the intltool. till then let it run on intltool and by this we will keep moving forward on this issue. IDK your call.
Thanks :)
ice0 commentedon Nov 12, 2020
@DhairyaBahl we already using gettext :) The last place where intltool is used - is merging translation for the
plugin.xmlfiles. Gnome suggest to useITSToolinstead ofintltoolto translate this files. So I see only CONS here:DhairyaBahl commentedon Nov 12, 2020
@ice0 Okay got it Sorry. Thanks for information :)
rodolforg commentedon Jul 26, 2021
@ice0 as for 0.19.7 version (2015-12-28), it already has native support for ITS rules: https://lists.gnu.org/archive/html/info-gnu/2015-12/msg00013.html
The Gnome Wiki page we both mentioned says:
And its last edition was:
So I believe we could move forward soon.
Debian Jessie wouldn't support it though https://packages.debian.org/pt-br/jessie/gettext (gettext 0.19.3)
Debian Stretch would work fine https://packages.debian.org/pt-br/stretch/gettext (gettext 0.19.8)