[yast-devel] [Bruno Haible] Re: xgettext: Extracting comment blocks from YCP files
Please, change comments in YCP source files as explained in the attachment, if time permits. This bug surfaced along with https://bugzilla.novell.com/show_bug.cgi?id=230388 aTdHvAaNnKcSe! Karl -- Karl Eichwalder R&D / Documentation SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
On Tue, Jun 12, 2007 at 09:48:02AM +0200, Karl Eichwalder wrote:
Please, change comments in YCP source files as explained in the attachment, if time permits. This bug surfaced along with https://bugzilla.novell.com/show_bug.cgi?id=230388
Thanks, Karl. It took me some time to understand so I'll rephrase: If you have unusual formatting, comments for translators will not make it to the pot files. So make sure that there are no newlines between the parentheses and quotes. Good: // Foo! _("long ... string") Bad: // Foo! _( "long ... string" ) To see how much code needs fixing I have searched[*] my system and SVN for newlines after the opening paren and found these files. (I cannot search for newlines before the closing paren because that would catch also non-gettext stuff, but that will be fixed in xgettext itself.) ./isns/src/helps.ycp ./iscsi-server/src/helps.ycp ./registration/src/clients/suse_register_auto.ycp ./registration/src/clients/inst_suse_register.ycp ./printer/src/common/dialogs-connection.ycp [*] find . -name \*.ycp | xargs grep '_([^"]*$' -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (2)
-
Karl Eichwalder
-
Martin Vidner