I also was experimenting with gettext and poedit. Locale file consists of 353 lines so it's easier to use poedit to handle it. Normal locale file is created with script gettext_script.
Some instructions how to use it are in the script:
Code: Select all
# use 'xgettext -L shell gettext_file -o pmusic2.pot' to generate pot file
# use poedit to create and translate po file and then mo file will be created
# put pmusic2.mo to /usr/share/locale/xx/LC_MESSAGES (xx - name of your locale)
# run the script to create text translation file for pmusic with name of your locale (ex: ./gettext_file)
# you can run the script with your name as first parameter for tranlsator line. (ex: ./gettext_file rodin.s)
# and locale could be second parameter. If it is not given then it defaults to current locale (ex: ./gettext_file rodin.s ru_RU.UTF-8)
# place the file to /usr/local/pmusic/locals