[Bug 345587] Re: Not showing localized plural strings

2009-03-30 Thread Launchpad Bug Tracker
This bug was fixed in the package fast-user-switch-applet - 2.24.0-0ubuntu10 --- fast-user-switch-applet (2.24.0-0ubuntu10) jaunty; urgency=low * 84_session_management.patch: * Patch from Christoph Korn to fix the translations for the titles of the dialogs and the plural

[Bug 345587] Re: Not showing localized plural strings

2009-03-29 Thread Gabor Kelemen
About this part: +static const gchar * button_strings[LOGOUT_DIALOG_ACTION_CNT] = { + /* LOGOUT_DIALOG_LOGOUT, */ NC_(button, Log Out), + /* LOGOUT_DIALOG_RESTART, */NC_(button, Restart), + /* LOGOUT_DIALOG_SHUTDOWN, */ NC_(button, Shut Down) Why do not have the

[Bug 345587] Re: Not showing localized plural strings

2009-03-29 Thread Gabor Kelemen
See also: http://library.gnome.org/devel/hig-book/stable/input- keyboard.html.en -- Not showing localized plural strings https://bugs.launchpad.net/bugs/345587 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list

Re: [Bug 345587] Re: Not showing localized plural strings

2009-03-29 Thread Ted Gould
On Sun, 2009-03-29 at 23:31 +, Gabor Kelemen wrote: About this part: +static const gchar * button_strings[LOGOUT_DIALOG_ACTION_CNT] = { + /* LOGOUT_DIALOG_LOGOUT, */ NC_(button, Log Out), + /* LOGOUT_DIALOG_RESTART, */NC_(button, Restart), + /*

[Bug 345587] Re: Not showing localized plural strings

2009-03-25 Thread Sebastien Bacher
** Changed in: fast-user-switch-applet (Ubuntu) Importance: Undecided = Low ** Changed in: fast-user-switch-applet (Ubuntu) Assignee: (unassigned) = Ted Gould (ted-gould) ** Changed in: fast-user-switch-applet (Ubuntu) Status: New = Confirmed ** Changed in:

[Bug 345587] Re: Not showing localized plural strings

2009-03-23 Thread Milo Casagrande
Tested the PPA package and it works. Thank you! -- Not showing localized plural strings https://bugs.launchpad.net/bugs/345587 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

Re: [Bug 345587] Re: Not showing localized plural strings

2009-03-22 Thread Milo Casagrande
Il giorno sab, 21/03/2009 alle 23.51 +, Christoph Korn ha scritto: I have built packages that have the patch applied. Can you also test them please? https://launchpad.net/~getdeb.packages/+archive/ppa I'll test it ASAP, thank you. And do you know how we get the patch reviewed fast and

[Bug 345587] Re: Not showing localized plural strings

2009-03-22 Thread Christoph Korn
I mailed to the devel-discuss and devel mailing list. -- Not showing localized plural strings https://bugs.launchpad.net/bugs/345587 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list

Re: [Bug 345587] Re: Not showing localized plural strings

2009-03-22 Thread Milo Casagrande
Il giorno sab, 21/03/2009 alle 23.51 +, Christoph Korn ha scritto: Ok. I have built packages that have the patch applied. Can you also test them please? https://launchpad.net/~getdeb.packages/+archive/ppa Looks like it's working. The only problem I see, but probably it's on my side,

[Bug 345587] Re: Not showing localized plural strings

2009-03-22 Thread Milo Casagrande
Apart from the really bad (and probably wrong too) C code, do you think that something like the patch attached could be made? Testing it with intltool I get the msgid and msgid_plural for all the strings with the right plural form for my language (in this way languages with 5 or more plural forms

[Bug 345587] Re: Not showing localized plural strings

2009-03-22 Thread Christoph Korn
There were some errors in the code. I attached the fixed code. The package with the patch applied can be found in the PPA. However I get some untranslated strings. msgid Unless you cancel, you will be logged out in %d second. msgid_plural Unless you cancel, you will be logged out in %d seconds.

[Bug 345587] Re: Not showing localized plural strings

2009-03-22 Thread Christoph Korn
Just ignore what I said. I forgot to delete the fuzzy keyword. Everything works fine. -- Not showing localized plural strings https://bugs.launchpad.net/bugs/345587 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs

[Bug 345587] Re: Not showing localized plural strings

2009-03-21 Thread Christoph Korn
I tried to fix that by removing the N_ before the strings. But that did not work. Still only the singular localized string is shown. -- Not showing localized plural strings https://bugs.launchpad.net/bugs/345587 You received this bug notification because you are a member of Ubuntu Bugs, which

Re: [Bug 345587] Re: Not showing localized plural strings

2009-03-21 Thread Milo Casagrande
Il giorno sab, 21/03/2009 alle 17.38 +, Christoph Korn ha scritto: I tried to fix that by removing the N_ before the strings. But that did not work. Still only the singular localized string is shown. Hmmm... probably I didn't explain myself in the best way with my last message. From my

[Bug 345587] Re: Not showing localized plural strings

2009-03-21 Thread Christoph Korn
I read the examples here: http://live.gnome.org/TranslationProject/DevGuidelines/Plurals g_printf (ngettext (You tried to move %d folder at once. You can't move more than 256 folders at once., You tried to move %d folders at once. You can't move more than 256 folders at

Re: [Bug 345587] Re: Not showing localized plural strings

2009-03-21 Thread Milo Casagrande
Il giorno sab, 21/03/2009 alle 19.18 +, Christoph Korn ha scritto: I read the examples here: http://live.gnome.org/TranslationProject/DevGuidelines/Plurals g_printf (ngettext (You tried to move %d folder at once. You can't move more than 256 folders at once., You

[Bug 345587] Re: Not showing localized plural strings

2009-03-21 Thread Christoph Korn
Well, I still do not understand why _() is required when the string is in an constant array instead of passed as a constant to the ngettext() function. Nevertheless, the attached patch really makes the plural strings show when they should. Means: plural n!=1. singular n==1. ** Attachment added:

[Bug 345587] Re: Not showing localized plural strings

2009-03-21 Thread Christoph Korn
Subscribing ubuntu-main-sponsors to review the patch. @ Milo Casagrande: Thank you for your help! -- Not showing localized plural strings https://bugs.launchpad.net/bugs/345587 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. --

Re: [Bug 345587] Re: Not showing localized plural strings

2009-03-21 Thread Milo Casagrande
Il giorno sab, 21/03/2009 alle 20.44 +, Christoph Korn ha scritto: Subscribing ubuntu-main-sponsors to review the patch. @ Milo Casagrande: Thank you for your help! You're more than welcome! And I have to thank you for your dedicated time! I would like to (try to) cast some more light on

[Bug 345587] Re: Not showing localized plural strings

2009-03-21 Thread Christoph Korn
Ok. I have built packages that have the patch applied. Can you also test them please? https://launchpad.net/~getdeb.packages/+archive/ppa And do you know how we get the patch reviewed fast and published in jaunty? -- Not showing localized plural strings https://bugs.launchpad.net/bugs/345587

[Bug 345587] Re: Not showing localized plural strings

2009-03-20 Thread Milo Casagrande
Looking at the code, looks like the ngettext function for handling plural forms is not working as expected. Probably it is related to the fact that the translations are not handled directly inside the ngettext function, but postponed with the macro N_() and referenced inside the ngettext function.

[Bug 345587] Re: Not showing localized plural strings

2009-03-19 Thread Milo Casagrande
** Attachment added: screenshot.png http://launchpadlibrarian.net/24124755/screenshot.png -- Not showing localized plural strings https://bugs.launchpad.net/bugs/345587 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs