After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789066 - Migrate from Intltool to Gettext
Migrate from Intltool to Gettext
Status: RESOLVED OBSOLETE
Product: gitg
Classification: Applications
Component: gitg
git master
Other Linux
: Normal enhancement
: ---
Assigned To: gitg-maint
gitg-maint
Depends on:
Blocks: 763587
 
 
Reported: 2017-10-16 16:09 UTC by Iñigo Martínez
Modified: 2018-05-22 13:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Migrate from Intltool to Gettext (27.31 KB, patch)
2017-10-16 16:17 UTC, Iñigo Martínez
none Details | Review
Add comment for translators (951 bytes, patch)
2017-10-16 16:20 UTC, Iñigo Martínez
none Details | Review
Migrate from Intltool to Gettext (27.32 KB, patch)
2017-10-16 16:43 UTC, Iñigo Martínez
none Details | Review
Migrate from Intltool to Gettext (27.32 KB, patch)
2017-10-16 20:40 UTC, Iñigo Martínez
none Details | Review

Description Iñigo Martínez 2017-10-16 16:09:30 UTC
Recent versions of Gettext are able to translate several formats that are used in GNOME applications, so there is really no need anymore to use intltool or GLib’s dated gettext glue.
Comment 1 Iñigo Martínez 2017-10-16 16:17:19 UTC
Created attachment 361685 [details] [review]
Migrate from Intltool to Gettext

This patch migrates from Intltool to Gettext both autotools and meson.

Just as a side note, although they are not used, this patch also extracts the strings from the `org.gnome.gitg.gschema.xml.in` file. At the moment it uses `intltool` with the `--no-translations` option.
Comment 2 Iñigo Martínez 2017-10-16 16:20:21 UTC
Created attachment 361686 [details] [review]
Add comment for translators

Although `Icon` key is present in the `Desktop` files spec, it should not be translated.

This patch adds a comment for translators to avoid the translation of the string used for `Icon`.
Comment 3 Iñigo Martínez 2017-10-16 16:43:11 UTC
Created attachment 361687 [details] [review]
Migrate from Intltool to Gettext

A very minor update where it removes the call to `autopoint` from `autogen.sh`, as it is already called by `autoreconf` when using `gettext`.
Comment 4 Piotr Drąg 2017-10-16 20:17:55 UTC
Review of attachment 361687 [details] [review]:

::: data/org.gnome.gitg.gschema.xml.in.in
@@ +24,1 @@
   <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.gitg.preferences.main" path="/org/gnome/gitg/preferences/main/">

Will Meson correctly replace @GETTEXT_PACKAGE@ with the gettext domain?

::: po/Makevars
@@ +42,3 @@
+# can write to without being subscribed, or the URL of a web page through
+# which the translators can contact you.
+MSGID_BUGS_ADDRESS = https://bugzilla.gnome.org/enter_bug.cgi?product=gitg&keywords=I18N+L10N&component=general

gitg doesn’t have the “general” component.
Comment 5 Iñigo Martínez 2017-10-16 20:40:10 UTC
Created attachment 361696 [details] [review]
Migrate from Intltool to Gettext

(In reply to Piotr Drąg from comment #4)
> Review of attachment 361687 [details] [review] [review]:
> 
> ::: data/org.gnome.gitg.gschema.xml.in.in
> @@ +24,1 @@
>    <schema gettext-domain="@GETTEXT_PACKAGE@"
> id="org.gnome.gitg.preferences.main"
> path="/org/gnome/gitg/preferences/main/">
> 
> Will Meson correctly replace @GETTEXT_PACKAGE@ with the gettext domain?

As far as I tried, it does. meson uses the `configure_file` function to replace the `GETTEXT_PACKAGE` token.
 
> ::: po/Makevars
> @@ +42,3 @@
> +# can write to without being subscribed, or the URL of a web page through
> +# which the translators can contact you.
> +MSGID_BUGS_ADDRESS =
> https://bugzilla.gnome.org/enter_bug.
> cgi?product=gitg&keywords=I18N+L10N&component=general
> 
> gitg doesn’t have the “general” component.

I overlooked it. I changed it to `gitg` now.
Comment 6 Piotr Drąg 2017-10-16 20:45:15 UTC
Great, thanks!
Comment 7 GNOME Infrastructure Team 2018-05-22 13:25:24 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gitg/issues/100.