Re: [rkward-devel] c-formatted strings in rkward__analysis.po
El Dijous, 4 de desembre de 2014, a les 21:39:14, Yuri Chornoivan va escriure: > Hi, > > Due to some subtle peculiarities of xgettext processing some extracted > strings (those with '%') are now wrongly c-formatted which prevents them > from to be translated well. > > #. i18n: file: rkward/plugins/analysis/t_test.xml > #. i18n: ectx: (t-Test) > #, c-format > msgid "" > "Below you can specify whether one should be shown, and which confidence-" > "level should be applied (95% corresponds to a 5% level of significance)." > > #. i18n: file: rkward/plugins/analysis/variances/F_test.rkh > #. i18n: ectx: (Loaded from F test) (refers to > element labelled "Confidence level") > #, c-format > msgid "Defines the confidence level of the interval (95% is typical)." > > #. i18n: file: > rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.rkh > #. i18n: file: > rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.rkh > #, c-format > msgid "" > "Here you can define the confidence level of the interval (95% is > typical)." > msgstr "" > > #. i18n: ectx: (Loaded from N to 1 Crosstabulation) > #: rkward/plugins/analysis/crosstab.js:51 > #: rkward/plugins/analysis/crosstab.js:58 > #, c-format > msgid "% of row" > > #. i18n: ectx: (Loaded from N to 1 Crosstabulation) > #: rkward/plugins/analysis/crosstab.js:52 > #: rkward/plugins/analysis/crosstab.js:59 > #, c-format > msgid "% of column" > > #. i18n: ectx: (Loaded from N to 1 Crosstabulation) > #: rkward/plugins/analysis/crosstab.js:53 > #: rkward/plugins/analysis/crosstab.js:60 > #, c-format > msgid "% of total" > > It is usually enough to add "xgettext:no-c-format" for such messages to be > processed right, but it is evidently not the case this time (tested). How did you test this? Modifying scripts/update_plugin_messages.py ? Cheers, Albert > > Is there any way to post-process the file to replace #, c-format with #, > no-c-format ? > > Thanks in advance for your answers. > > Best regards, > Yuri -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk ___ RKWard-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rkward-devel
Re: [rkward-devel] c-formatted strings in rkward__analysis.po
Hi, On Thursday 04 December 2014 21:39:14 Yuri Chornoivan wrote: > Due to some subtle peculiarities of xgettext processing some extracted > strings (those with '%') are now wrongly c-formatted which prevents them > from to be translated well. I see. > It is usually enough to add "xgettext:no-c-format" for such messages to be > processed right, but it is evidently not the case this time (tested). I guess that's because the extraction script just strips all comments that don't start with i18n: or translators:. > Is there any way to post-process the file to replace #, c-format with #, > no-c-format ? I've tried smartening up the extraction script to insert /* xgettext:no-c- format */ in front of the calls in question (after all comment stripping). This seems to produce the desired result. Please test. Thanks! Thomas signature.asc Description: This is a digitally signed message part. -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk___ RKWard-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rkward-devel
[rkward-devel] c-formatted strings in rkward__analysis.po
Hi, Due to some subtle peculiarities of xgettext processing some extracted strings (those with '%') are now wrongly c-formatted which prevents them from to be translated well. #. i18n: file: rkward/plugins/analysis/t_test.xml #. i18n: ectx: (t-Test) #, c-format msgid "" "Below you can specify whether one should be shown, and which confidence-" "level should be applied (95% corresponds to a 5% level of significance)." #. i18n: file: rkward/plugins/analysis/variances/F_test.rkh #. i18n: ectx: (Loaded from F test) (refers to element labelled "Confidence level") #, c-format msgid "Defines the confidence level of the interval (95% is typical)." #. i18n: file: rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.rkh #. i18n: file: rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.rkh #, c-format msgid "" "Here you can define the confidence level of the interval (95% is typical)." msgstr "" #. i18n: ectx: (Loaded from N to 1 Crosstabulation) #: rkward/plugins/analysis/crosstab.js:51 #: rkward/plugins/analysis/crosstab.js:58 #, c-format msgid "% of row" #. i18n: ectx: (Loaded from N to 1 Crosstabulation) #: rkward/plugins/analysis/crosstab.js:52 #: rkward/plugins/analysis/crosstab.js:59 #, c-format msgid "% of column" #. i18n: ectx: (Loaded from N to 1 Crosstabulation) #: rkward/plugins/analysis/crosstab.js:53 #: rkward/plugins/analysis/crosstab.js:60 #, c-format msgid "% of total" It is usually enough to add "xgettext:no-c-format" for such messages to be processed right, but it is evidently not the case this time (tested). Is there any way to post-process the file to replace #, c-format with #, no-c-format ? Thanks in advance for your answers. Best regards, Yuri -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk ___ RKWard-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rkward-devel
