Re: [poedit-users] #, no-c-format comment enterable, to fix misconstrued % in string ?
Vaclav Slavik <[email protected]> Wed, 21 May 2008 11:19:41 +0200
| Newsgroups | gmane.editors.poedit.user |
|---|---|
| Message-ID | <1211361581.14602.10.camel@localhost> |
i, On Tue, 2008-05-20 at 22:50 -0700, Doreen Yen wrote: > Have not seen any way poEdit (v1.39) allows user to enter a comment > which identifies that the string does NOT have a c-format, > such as does "%d errors found". The user cannot and never will be able to change this in Poedit. You misunderstand how GNU gettext works: information about what to translate and about whether given string is c-format or not is extracted from sources, it is dependent on the sources and is exactly the same for all translations. Therefore, it makes no sense to let translators change this flag, as it is not language-specific. > Tried using poEdit Edit comment entering > xgettext:no-c-format > but this created > # xgettext:no-c-format > > Using Emacs or Wordpad, entering the comment as below would fix the > problem, It would not, such change would be reverted as soon as the translation is updated from sources. > but translators are using poEdit. > > #, no-c-format > msgid "% Stenosis" > msgstr "% stenose" > > Granted the fault may lie with gettext to misconstrue the above > example as something like "%s tenosis", but will poEdit users be able > to fix these by editing comments ? Actually, the fault lies entirely with the programmer. There's a simple, standard, way of marking source code strings that xgettext mistakenly identifies as c-format as no-c-format strings. This is nicely and clearly documented in GNU gettext documentation in section titled "c-format Flag". I cannot recommend reading gettext manual strongly enough -- it really does help with using gettext for your software's translations. Regards, Vaclav ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Poedit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/poedit-users
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkgz6S0ACgkQxDYa/UZSZMlxcQCeI9cyUqWlhnZNoRhQJZu7z7Kr JV8An00lM3n3zH8mN8lA3OTAi2bUUYcy =Iqrf -----END PGP SIGNATURE-----