[Bug 1158843] hana-*: Broken gettext support
http://bugzilla.suse.com/show_bug.cgi?id=1158843 http://bugzilla.suse.com/show_bug.cgi?id=1158843#c1 Stefan Hundhammer <shundhammer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|yast2-maintainers@suse.de |varkoly@suse.com --- Comment #1 from Stefan Hundhammer <shundhammer@suse.com> --- Peter: Example how to do this: https://github.com/shundhammer/yast-storage-ng/blob/master/src/lib/y2partiti... You need to execute require "yast/i18n" textdomain "mytextdomain" before you call the translation functions _("myusertext") etc.; the normal and recommended way to do this is in the class constructor (the initialize() function). We need that in every file that uses translations: Both to initialize the translation mechanism, i.e. to load the correct .mo translation file, and also for the translation extraction tools (the xgettext command) so they know what .pot file to write the translations to. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com