[Tux4kids-tuxtype-dev] Working on the Chinese version of tuxtype

Frederic Muller fred at beijinglug.org
Wed Dec 16 07:03:07 UTC 2009


Hi again!

Found out that I needed a setting.txt with the encoding for Chinese in 
order for the tuxtype.mo file to be taken into consideration. Apparently 
the setting is not saved though (next run of tuxtype reverts to 
English). Since my default language is US maybe it is normal?

Else have you considered putting the theming/localization page on a wiki 
style page on your site so "we" can all contribute and update it easily?

Thanks.

Fred

Frederic Muller wrote:
> Dear Everyone,
>
> Thanks a lot for the prompt responses, I have started to follow up on 
> the indications you gave me and I already have questions:
> I found the theming documentation, the lang.po and the po/tuxtype.pot 
> (we started from an existing po file) but they both are located in the 
> following directory which seems strange to me:
> tux4kids/branches/commonification/tuxtype/branches/gsoc-sarah/
>
> When looking at tux4kids/trunk/ I don't find any of those files. Is it 
> normal or is gsoc-sarah the active branch?
>
> I have also failed to actually see my translation at all. I assumed 
> that just adding the tuxtype.mo in local-langpack/zh_CN/LC_MESSAGES/ 
> should work (on debian/Ubuntu platform) but it's not doing anything 
> (started the application with LANG=zh_CN).
>
> Next I'll discuss about Chinese typing specificities but we're 
> actually fine teaching QWERTY since it is the keyboards in use.
>
> Thanks again.
>
> Fred
>
> David Bruce wrote:
>> Hi Frederic,
>>
>>  
>>>> We've been searching on how to solve this issues for a while. Found 2
>>>> thread on the forum and very little information on the theming. We 
>>>> already
>>>> have translated the po files for Chinese (latest version) but not 
>>>> all the
>>>> texts/menus are inside.
>>>>       
>>
>> Translations of the text in the menus are handled by GNU gettext using
>> the po file for your language.  All of the strings to be translated
>> should be in the template file, which is po/tuxtype.pot in the source
>> tree.  AFAIK, they are all in there in our current release, but please
>> let me know if something is missing.
>>
>>  
>>>> We're now looking at the scripts and words folders
>>>> but again can't find all the menus.
>>>>       
>>
>> The scripts and words (that is, the theme-specific "content") are not
>> translated by gettext, so they don't have any corresponding entries in
>> the po files.  For the word lists, you simply create text files with
>> all the desired words, one per line, with the first line being the
>> title to be displayed in the menu.  For the xml scripts, the best
>> advice is to copy one of the existing ones and edit the content as
>> needed.
>>
>> Also, you need to make a keyboard.lst file, which is our inelegant way
>> of specifying what characters are "typable" with the keyboard layout
>> for that language.
>>
>> The best advice would be to study some of the existing themes and see
>> how they work.  Go to tuxtype's theme data directory (e.g.
>> /usr/local/share/tuxtype/themes with a default "./configure; make;
>> sudo make install"), create a "chinese" directory, and add your
>> keyboard.lst and word lists below that.
>>
>>  
>>>> Where is the best place to start and can we post the po file for 
>>>> tuxtype
>>>> on this list?
>>>>       
>>
>> Yes, this list is fine - just put everything into a *.tar.gz and 
>> attach it.
>>
>> Also (*important*) - I'm not sure the recent builds of tuxtype handle
>> non-Western keyboard input correctly.  I do know that it will display
>> the text properly, but it is possible we have some bugs that will
>> interfere with the actual game.  If so, it is something critical to
>> get fixed.  I would really like any feedback you have on that.
>>
>> Also - just to be sure, our most recent release is 1.8.0
>>
>> Best,
>> David Bruce
>>
>>   
>
> _______________________________________________
> Tux4kids-tuxtype-dev mailing list
> Tux4kids-tuxtype-dev at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/tux4kids-tuxtype-dev
>



More information about the Tux4kids-tuxtype-dev mailing list