[Bug 801859] New: Yast-printers - unnecessary YCP format usage
https://bugzilla.novell.com/show_bug.cgi?id=801859 https://bugzilla.novell.com/show_bug.cgi?id=801859#c0 Summary: Yast-printers - unnecessary YCP format usage Classification: openSUSE Product: openSUSE 12.3 Version: RC 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: yast2-maintainers@suse.de ReportedBy: honyczek@centrum.cz QAContact: jsrain@suse.com Found By: Localization Blocker: --- i've problem with yast/cs/po/printers.cs.po, because in string "ConnectionWizardDialog help 6/7" (src/helps.ycp:590) is specified option #, ycp-format The problem is, that if I change included URL "http://en.opensuse.org/SDB:Printing_via_SMB_(Samba)_Share_or_Windows_Share" to intended Czech translation page address "https://cs.opensuse.org/SDB:Tisk_na_sd%C3%ADlen%C3%A9_tisk%C3%A1rn%C4%9B_%28..." it is considered as invalid YCP string format, because character "C" after percent-sign is for YCP format forbidden. Then if I change .po file and remove the option #, ycp-format it can be uploaded successfully probably because it is not tested for YCP format. The previous string "ConnectionWizardDialog help 5/7" (src/helps.ycp:552) doesn't contain this option, so I think there is no purpose to use it in step 6. If I understand this, the YCP format is used for percent signed variables %1 %2... to fill context-sensitive values. In the "ConnectionWizardDialog help 6/7" is no variable, so I think there isn't important the YCP format option. So, please, could you add the appropriate flag ("no-ycp-format"?) to the ycp source file? http://lists.opensuse.org/opensuse-translation/2013-01/msg00032.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c1
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c2
--- Comment #2 from Karl Eichwalder
Regarding "ycp-format" versus "no-ycp-format":
There is nothing like "ycp-format" in the yast2-printer source code source/printer/src/helps.ycp that gets installed identically as /usr/share/YaST2/include/printer/helps.ycp so that I cannot change it in yast2-printer source code.
There are no *.po files in yast2-printer source code so that I cannot change it in yast/cs/po/printers.cs.po.
The *.po files are generated by "some magic" where I do not have any knowledge how it works therefore I cannot change how the *.po files are generated.
Someone whow knows how the *.po files stuff in YaST works should have a look.
Johannes, you can add (in a comment) xgettext:no-ycp-format just before the message in your source code (= the code from where xgettext extracts these translatable strings). This feature is documented in the gettext manual: http://www.gnu.org/software/gettext/manual/gettext.html#Special-cases http://www.gnu.org/software/gettext/manual/gettext.html#PO-Files (search for ycp-format) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c3
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c4
Karl Eichwalder
What you suggest means that all authors of all YaST code must check all strings that are marked for translation _("...") whether or not a 'xgettext:no-ycp-format' comment is needed.
No, only if the translators encounter trouble. -------------------------------------------------------------------------------
sformat( _("The value is '%1'. For details see the URL http://en.opensuse.org/SDB:Printing_via_SMB_(Samba)_Share_or_Windows_Share"), value ); -------------------------------------------------------------------------------
Pseudo code: // part 1/2 string1 = sformat( _("The value is '%1'."), value ); // part 2/2 // xgettext:no-ycp-format string2 = sformat( _("For details see the URL http://en.opensuse.org/SDB:Printing_via_SMB_(Samba)_Share_or_Windows_Share"), "") string = string1 + " " + string2 ; But I admit that there could be cases more interesting (on that we could decide, if they surface). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c5
--- Comment #5 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c6
--- Comment #6 from Jan Papež
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c7
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c8
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c9
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c10
--- Comment #10 from Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=801859
https://bugzilla.novell.com/show_bug.cgi?id=801859#c11
--- Comment #11 from Jan Papež
participants (1)
-
bugzilla_noreply@novell.com