[mythtv] [patch] MythWeb translation method
Steven Cruysberghs
steven.cruysberghs at tiscali.be
Sat Feb 14 08:12:35 EST 2004
That is great work!!
Hereby the first additional language (Dutch)
I don't know how you handle the categories in Japanese but maybe it
would be a good idea to add a translatable string in the category
handling in /includes/programs.php?
Something like
elseif (preg_match('/\\b(?:animal|_LANG_CAT_ANIMALS)/', $category))
$this->class .= $cache[$category] = 'cat_Animals';
..but with corrected syntax :-)
Steven
Op za 14-02-2004, om 11:56 schreef Hirobumi Shimada:
> 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
>
>
> ______________________________________________________________________
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Nederlands.php
Type: application/x-php
Size: 5947 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040214/151bebd9/Nederlands.bin
More information about the mythtv-dev
mailing list