[mythtv] [patch] MythWeb translation method

Hirobumi Shimada shimada at systemcreate-inc.com
Sat Feb 14 05:56:58 EST 2004


mythweb is very useful, but currently is English only.

I made a translation method. but currently default theme only.

strings to display defined to language file in languages/{language name}.php
strings definition is used in a code.
default language definded to default_language in conf/conf.php.
it can be changed individually at mythweb(settings/mythweb/language).

for example
any.php
-------------------------------
<?php echo _LANG_HELLO?>
-------------------------------

languages/English.php
-------------------------------
<?php
define ('_LANG_HELLO', 'Hello');
?>
-------------------------------

languages/French.php
-------------------------------
<?php
define ('_LANG_HELLO', 'Bonjour');
?>
-------------------------------

how about it?

sorry my broken English. 
Hiro

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mythweb-translation.patch.gz
Type: application/x-gzip
Size: 11483 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040214/66b8e7eb/mythweb-translation.patch-0001.bin


More information about the mythtv-dev mailing list