Re: Polari: Javascript Gettext placeholders

2016-09-16 Thread dooteo
Thanks Gabor, 

So I'm going to use C format placeholders with JavaScript.

Best regards,

Dooteo

Jatorrizko mezua: or., 2016-09-16 11:43 +0200, egilea: Gabor Kelemen
> Hi
> 
> 2016-09-16 10:09 keltezéssel, dooteo írta:
> > 
> > As this message is for JavaScript, can I translate using '%2$s'
> > like
> > placeholders, or is there any specific placeholder format for
> > JavaScript?
> 
> Yes, it should work. Support for this feature was added recently in
> gettext 0.19.8 [1]
> and GNOME 3.22 uses this version [2].
> 
> [1] https://lists.gnu.org/archive/html/info-gnu/2016-06/msg3.html
> [2] https://git.gnome.org/browse/jhbuild/tree/modulesets/bootstrap.mo
> dules
> 
> Regards
> Gabor Kelemen
> 
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Polari: Javascript Gettext placeholders

2016-09-16 Thread Gabor Kelemen
Hi

2016-09-16 10:09 keltezéssel, dooteo írta:
> As this message is for JavaScript, can I translate using '%2$s' like
> placeholders, or is there any specific placeholder format for
> JavaScript?

Yes, it should work. Support for this feature was added recently in
gettext 0.19.8 [1]
and GNOME 3.22 uses this version [2].

[1] https://lists.gnu.org/archive/html/info-gnu/2016-06/msg3.html
[2] https://git.gnome.org/browse/jhbuild/tree/modulesets/bootstrap.modules

Regards
Gabor Kelemen



signature.asc
Description: OpenPGP digital signature
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Polari: Javascript Gettext placeholders

2016-09-16 Thread Joan Luc Labòrda

 '%s' means only a string type variable for a program you don't have to 
translate it at all or it wont work anymore


Le 16/09/2016 à 10:09, dooteo a écrit :

Hi,

I'm not sure how to use placeholders at Polari's next message:

#. Translators: Those are a botname and an accountName, e.g.
#. "Save NickServ password for GNOME"
#: ../src/telepathyClient.js:569
#, fuzzy, javascript-format
msgid "Save %s password for %s?"
msgstr ""

As this message is for JavaScript, can I translate using '%2$s' like
placeholders, or is there any specific placeholder format for
JavaScript?

For example, are next placeholders okey for JS?

msgid "Save %s password for %s?"
msgstr "Gorde '%2$s' kontuko '%1$s'(e)n pasahitza?"


Thanks and best regards,

Dooteo

___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Polari: Javascript Gettext placeholders

2016-09-16 Thread dooteo
Hi, 

I'm not sure how to use placeholders at Polari's next message:

#. Translators: Those are a botname and an accountName, e.g.
#. "Save NickServ password for GNOME"
#: ../src/telepathyClient.js:569
#, fuzzy, javascript-format
msgid "Save %s password for %s?"
msgstr ""

As this message is for JavaScript, can I translate using '%2$s' like
placeholders, or is there any specific placeholder format for
JavaScript?

For example, are next placeholders okey for JS?

msgid "Save %s password for %s?"
msgstr "Gorde '%2$s' kontuko '%1$s'(e)n pasahitza?"


Thanks and best regards,

Dooteo

___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n