Development translate

From TV-Viewer
Jump to: navigation, search

Translate TV-Viewer

TV-Viewer uses msgcat, a Tk function that provides a translation infrastructure for Tk applications. We have integrated a small command line utility that helps you to create the appropriate files. This utility is shipped with TV-Viewer greater or equal 0.8.2a1 (rev 123)
To start translating open the folder

../tv-viewer/msgs

There you'll find the mentioned utility called "translate.tcl". Execute this file and provide your language code. More informations about language codes are provided by the Library of Congress. You need to use one of the codes in the row "ISO 639-1 Code".

$ ./translate.tcl --lang=nl
creating translation file for language code "nl"
processing data files ****************************************************************************************
**************************************************************************************************************
**************************************************************************************************************
**************************************************************************************************************
**************************************************************************************************************
******************************************************************
there is no "nl" translation file available for fsdialog
consider creating one and place it into extensions/fsdialog.

finished
processed 63 files with 531 text strings
please edit "nl.msg" manually and provide translations,
when finished send this file to the developers

This command creates a file "LANGUAGE_CODE.msg". The text strings in this file have to be translated. The strings are always doubly present. The first one stays in english and is needed for identification, the second needs to be translated.

mcset nl {Edit selected station} {Edit selected station}

turns into

mcset nl {Edit selected station} {Bewerking selecteerde station}

It is very important both strings are approximately from the same length. This needs to be done for all strings. If you are finished send to the translations to us, so we can make it available for everyone. Good Luck :)


Personal tools