-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Petter Videbrink wrote:
>> Duncan Webb wrote:
>>>> Sorry for the last mail that was all most unreadable.
>>>>
>>>> Hello
>>>> I'm using Debian etch.
>>>> A while ago I upgraded freevo from 1.6.3 to 1.7.2 using source
> packages.
>>>> Now I get an error message, suggesting to shut down freevo, when i
>>>> select music or movie or picture menu in main menu. TV and headlines
>>>> work.
>>>>
>>>> I don't know how to get it to work again. Some help would be
>>>> appreciated.
>>> Looks like one of the translations is not up-to-date, which language
> are
>>> you using?
>>>
>>>> line 149, in main_menu
>>>>     menutitle = _('%s Main Menu') % title
>>>> TypeError: not all arguments converted during string formatting
> 
> I reinstalled Kaa and Freevo, and now the menu work fine.
> 
>> My guess is that you are using "sv" as your language?
> 
> Your guess is right.
> 
>> Attached is a new po file with as many of the python formats that I
>> could quickly find corrected. The problem is that this translation has
>> not been updated for quite a while and when building the new i18n po
>> files gettext guesses the values incorrectly.
>>
>> If you like you can update the translation and send it in :)
> 
>> See http://freevo.sourceforge.net/cgi-bin/doc/Contributing on how to
>> update and install this file
> 
> Thanks for the hint, I will try to update the Swedish translation, (it
> is a bit annoying with mixed languages).

Ideally you get a version of freevo from svn, you don't have to install
it, and then you update the i18n/sv/LC_MESSAGES/freevo.po file with the
translations. It is pretty clear from the freevo.po file what to do. It
will take a while as the source is quite large. The only thing to watch
out for is the python format strings eg:

#: plugins/idlebar/diskfree.py:87
#, python-format
msgid "%iGB"
msgstr ""

The contents of msgstr can be blank in which case the string is not
translated. If msgid has a %s, %d, %i etc then this must match so with a
msgstr "GBytes" would crash freevo.

You can test the translations from the command line by doing this:
LANGUAGE=sv_SE gettext -d freevo -s Title
or
export LC_ALL=sv_SE
export TEXTDOMAIN=freevo
gettext -s "Description"

> How do I install the freevo.po file? The link above only seems to be
> valid for the svn version, I don't seem to have autogen.sh.  

If you want to run the commands by hand then you can do this too. The
freevo.po file is the source and the freevo.mo file is the compiled
version of the freevo.po version. The basic command is msgfmt -o
freevo.mo freevo.po

- From the freevo source directory you need to run:
msgfmt -o i18n/sv/LC_MESSAGES/freevo.mo i18n/sv/LC_MESSAGES/freevo.po
cp -p i18n/sv/LC_MESSAGES/freevo.mo i18n/sv/LC_MESSAGES/freevo.po \
/usr/share/locale/sv/LC_MESSAGES

HTH
Duncan

Maybe I should add this to the wiki :)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGhn+2Ni6l+Xvys44RAp4mAJ9zB/orjMAzwTk0Qca5eSit8U6rMgCfSSlV
jiYk5zWTx2jUexwEqCSxCb0=
=o5wj
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to