Open transl8bzimport opened 13 years ago
It seems the support for PHP files is based on assumptions that don't quite hold for these files http://tikiwiki.svn.sourceforge.net/viewvc/tikiwiki/trunk/lang/en/language.php?content-type=text%2Fplain
Yes, the converter assumes a monolingual file. However, you can mostly do the same thing. If you see the English file as the monolingual template file: http://tikiwiki.svn.sourceforge.net/viewvc/tikiwiki/trunk/lang/en/language.php?content-type=text%2Fplain
you can see the translation files as monolingual translation files, with the identifiers being valid English strings instead of numbers or symbolic values. Does that make sense? That way things should work with no change, I believe.
Version: trunk
Originally posted by Rodrigo Primo:
Hi,
I'm trying to import Tiki (http://tiki.org) language files (php arrays) into Pootle. The problem is that Tiki language files are bilingual php arrays and apparently php2po only supports monolingual php arrays.
Below is a link to one of the files I'm trying to import:
http://tikiwiki.svn.sourceforge.net/viewvc/tikiwiki/trunk/lang/pt-br/language.php?revision=34030&view=markup
Note that if you try to use this file to test it with Pootle you first have to replace "Array" with "array" in the beginning of the file (see related bug report: http://bugs.locamotion.org/show_bug.cgi?id=1911).