[pacman-dev] Question to translators : do you need the line numbers?
As you probably know, in .po files, each strings also contain its actual location in the source : #: src/pacman/add.c:104 src/pacman/sync.c:533 #, c-format msgid "error: %s\n" msgstr "error: %s\n" I guess this information can be helpful to see the context, but personally I never used it. And if I needed it, I would simple use grep -r "error: %s\n" (which will be probably be less friendly, especially when po editors can use the line information themselves). The downsides of this however, is that for example, when we add one new string at the top of src/pacman/sync.c, then the reference of every other strings from src/pacman/sync.c will also be changed. So when we need to rebuild the .pot / .po files to get the new string, we also get a huger number of line changes. So we get both a commit huge in size, which is not cool, but it's also harder to see what really changed. Have a look at size of the following commit where the pacman .po / .pot files had to be updated because of 7 messages changes: http://projects.archlinux.org/git/?p=pacman.git;a=commitdiff;h=e8d665fbf7792... We can easily remove all these line numbers with the --no-location gettext option, but the question is : Is it acceptable?
2008/3/3, Xavier <shiningxc@gmail.com>:
We can easily remove all these line numbers with the --no-location gettext option, but the question is : Is it acceptable?
I agree. +1 for the --no-location gettext option. -- Giovanni Scafora Arch Linux Trusted User (voidnull) http://www.archlinux.org linuxmania@gmail.com
2008/3/3, Xavier <shiningxc@gmail.com>:
We can easily remove all these line numbers with the --no-location gettext option, but the question is : Is it acceptable?
I agree. +1 for the --no-location gettext option.
Ovbiously as a translator, I can only say -1 (because this is an extra information). But as a contributor, I say +2. Sum: +1. Bye ---------------------------------------------------- SZTE Egyetemi Könyvtár - http://www.bibl.u-szeged.hu This mail sent through IMP: http://horde.org/imp/
El Monday 03 March 2008 14:38:47 Xavier escribió:
As you probably know, in .po files, each strings also contain its actual location in the source : #: src/pacman/add.c:104 src/pacman/sync.c:533 #, c-format msgid "error: %s\n" msgstr "error: %s\n"
I guess this information can be helpful to see the context, but personally I never used it. And if I needed it, I would simple use grep -r "error: %s\n" (which will be probably be less friendly, especially when po editors can use the line information themselves).
The downsides of this however, is that for example, when we add one new string at the top of src/pacman/sync.c, then the reference of every other strings from src/pacman/sync.c will also be changed. So when we need to rebuild the .pot / .po files to get the new string, we also get a huger number of line changes. So we get both a commit huge in size, which is not cool, but it's also harder to see what really changed.
Have a look at size of the following commit where the pacman .po / .pot files had to be updated because of 7 messages changes: http://projects.archlinux.org/git/?p=pacman.git;a=commitdiff;h=e8d665fbf779 2ce6d8cae85d05d880fbed310b83
We can easily remove all these line numbers with the --no-location gettext option, but the question is : Is it acceptable?
_______________________________________________ pacman-dev mailing list pacman-dev@archlinux.org http://archlinux.org/mailman/listinfo/pacman-dev
+1, i never use the line numbers of source code.
Am Montag 03 März 2008 20:15:48 schrieb Juan Pablo Gonzalez:
+1, i never use the line numbers of source code.
I tried to track that down in a rare number of cases, but I never came very far with that. I always thought it might be important to devs rather than translators. If you don't think so, feel free to remove it.
On Mon, Mar 3, 2008 at 1:42 PM, Matthias Gorissen <matthias@archlinux.de> wrote:
Am Montag 03 März 2008 20:15:48 schrieb Juan Pablo Gonzalez:
+1, i never use the line numbers of source code.
I tried to track that down in a rare number of cases, but I never came very far with that. I always thought it might be important to devs rather than translators. If you don't think so, feel free to remove it.
They've been crushed. :) See http://projects.archlinux.org/git/?p=pacman.git;a=commit;h=190d17c0e844c58bc.... -Dan
On Tue, Mar 4, 2008 at 11:34 AM, Dan McGee <dpmcgee@gmail.com> wrote:
Am Montag 03 März 2008 20:15:48 schrieb Juan Pablo Gonzalez:
+1, i never use the line numbers of source code.
I tried to track that down in a rare number of cases, but I never came very far with that. I always thought it might be important to devs rather
On Mon, Mar 3, 2008 at 1:42 PM, Matthias Gorissen <matthias@archlinux.de> wrote: than
translators. If you don't think so, feel free to remove it.
1, i never use the line numbers of source code, TOO.
They've been crushed. :)
See http://projects.archlinux.org/git/?p=pacman.git;a=commit;h=190d17c0e844c58bc... .
-Dan _______________________________________________ pacman-dev mailing list pacman-dev@archlinux.org http://archlinux.org/mailman/listinfo/pacman-dev
participants (7)
-
Dan McGee
-
gan lu
-
Giovanni Scafora
-
Juan Pablo Gonzalez
-
Matthias Gorissen
-
Nagy Gabor
-
Xavier