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 337983 - [Patch] Use po/LINGUAS
[Patch] Use po/LINGUAS
Status: RESOLVED FIXED
Product: adwaita-icon-theme
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Rodney Dawes
Jakub Steiner
Depends on:
Blocks:
 
 
Reported: 2006-04-10 17:42 UTC by Przemysław Grzegorczyk
Modified: 2006-05-15 17:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use po/LINGUAS file (1.18 KB, patch)
2006-04-10 17:42 UTC, Przemysław Grzegorczyk
rejected Details | Review
New proposed patch (1.36 KB, patch)
2006-04-14 14:16 UTC, Przemysław Grzegorczyk
none Details | Review

Description Przemysław Grzegorczyk 2006-04-10 17:42:15 UTC
http://live.gnome.org/GnomeGoals/PoLinguas
Here is a patch to use po/LINGUAS file
Comment 1 Przemysław Grzegorczyk 2006-04-10 17:42:56 UTC
Created attachment 63167 [details] [review]
Use po/LINGUAS file
Comment 2 Rodney Dawes 2006-04-10 21:04:19 UTC
This is not the proper solution for adding support for po/LINGUAS. Proper support needs to be added to intltool, rather than faking support for it, by merging the LINGUAS back in to configure later.
Comment 3 Tommi Vainikainen 2006-04-11 07:58:10 UTC
If I may give my comments on this issue as mostly doing translations, I would like to give emphasis to the point that from the translators perspective this is really progress forward, because we do not anymore need to modify files in root directory. Also from the point of view in configure.(in|ac), it is just some M4 macros and so on, therefore I do not understand the point of "faked support".

This method is really "future compatible". I mean that when "proper" support for po/LINGUAS is added to intltool or other autoconf things, the po/LINGUAS file will remain same, it will not need any changes when the method in configure.ac is changed.
Comment 4 Rodney Dawes 2006-04-11 12:21:49 UTC
I don't disagree that using po/LINGUAS is the right thing to do. However, the method of doing it as advised in the goal linked above, and in the subsequent patches as a result of that goal, is not the correct way to accomplish this. It is a hack to make it work with the current set of tools.

We need to add proper support to intltool and do it the correct way, removing all relation between the configure script and LINGUAS. The intent is that it keeps translations from messing with configure. But if we have to regenerate the configure script every time po/LINGUAS changes, then nothing is really different.
Comment 5 Tommi Vainikainen 2006-04-11 12:31:45 UTC
But you do _not_ need to regenerate configure script if po/LINGUAS changes. Each time configure script is _evaluated_ it reads  the file po/LINGUAS.

The line
ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS"`"
will be untouched in configure (remember that autoconf is actually M4 macro processor , not an shell script evaluator). Thus when proper support to intltool is added, it actually contains just a bunch of M4 macros which are expanded to similar line in generated configure script.
Comment 6 Luis Menina 2006-04-12 07:30:12 UTC
I think what Rodney means (but I may be wrong - sorry if so) is that this way we need to execute the configure script each time po/LINGUAS is modified. I don't know how it works, but I suppose intltool has not this inconvenient. However, at the moment, this is already the case, so it's not worse than before... Moreover, we lose no functionnality, and add the po/LINGUAS file that will be needed also for the intltool migration. So even if it's a little dirty step, I think it's still a step forward.
My 2 cents...
Comment 7 Rodney Dawes 2006-04-12 12:07:00 UTC
What I mean is that configure has to get re-created and re-run if po/LINGUAS changes, and the ALL_LINGUAS variable is still used. So it's not really using po/LINGUAS, it's just faking the use of it, by using it through the old cruft.

And I've already added support to intltool for po/LINGUAS in CVS.
Comment 8 Przemysław Grzegorczyk 2006-04-14 14:16:32 UTC
Created attachment 63463 [details] [review]
New proposed patch

This patch is based on GnomeGoal wiki guidelines
Comment 9 Rodney Dawes 2006-05-15 17:22:15 UTC
I've committed the necessary changes based on what was currently in ALL_LINGUAS at the time. Thanks!