What | Removed | Added |
---|---|---|
Assignee | yast2-maintainers@suse.de | varkoly@suse.com |
Peter: Example how to do this: https://github.com/shundhammer/yast-storage-ng/blob/master/src/lib/y2partitioner/clients/main.rb 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.