Converts TikiWiki's language.php files to GNU Gettext's PO format, for easy translation and maintenance Feature » I18N & translation
Print

PO Convertor for TikiWiki

Intro

Here are two small utilities to convert between TikiWiki's language.php files and GNU gettext PO files. PO files are generally easier to translate since a number of tools are available to automate this.



PO tools use the Translate toolkit (external link) to do the complicated work and are written in Python (external link).

Moreover, the Translate project has produced Pootle (external link) — a web interface that allows anyone from the net to translate PO files. No need any more to be initiated in the black magic of PO file manipulation.

The utilities should make it easier to pick up on a stale Tikiwiki translation.

Prerequisites:

Usage

  • python tiki2po.py infile.php outfile.po # produces a PO from TikiWiki's language file
  • python po2tiki.py infile.po outfile.php # produces a TikiWiki's language file from PO
Additional docs available on the Translate Toolkit tiki2po page (external link)

Download

  • By installing the Translate Toolkit you'll get this script automatically, however, the souce is available from SVN should you want it separately: tiki2po (external link) and po2tiki (external link).

Contact

clouserw

History

filmil originally wrote a script in 2005 which clouserw rewrote to work with the Toolkit in 2008.

Contributors to this page: gezza2449 points  , clouserw17 points  , xavi3215 points  and filmil53 points  .
Page last modified on Sunday 11 October 2009 09:57:11 CEST by gezza2449 points .

History 1 File Attached

Search by Page Name

Shoutbox

sniperwork4 points : Just browsing this great site.
freeman5788 points : Just wondering if a 4.2 is close-ish?
wmike1 points : thinking about a notification while receiving a chat message ;)
rmcc444410 points : checking out the forums.
vmascello2 points : using trackers, Permission:tiki_p_create_tracker_items for users in group Registered but user with "tiki-view_tracker.php?trackerId=1" sees list of items inserted.i dont'want this. tnks

TikiWiki Tweets


Show php error messages
 
PHP (5.2.4-2ubuntu5.10) ERROR (E_WARNING):
File: lib/core/lib/Perms.php
Line: 214
Type: Invalid argument supplied for foreach()
PHP (5.2.4-2ubuntu5.10) ERROR (E_WARNING):
File: lib/core/lib/Perms.php
Line: 214
Type: Invalid argument supplied for foreach()
PHP (5.2.4-2ubuntu5.10) ERROR (E_WARNING):
File: lib/core/lib/Perms.php
Line: 214
Type: Invalid argument supplied for foreach()
PHP (5.2.4-2ubuntu5.10) ERROR (E_WARNING):
File: lib/core/lib/Perms.php
Line: 214
Type: Invalid argument supplied for foreach()
PHP (5.2.4-2ubuntu5.10) ERROR (E_WARNING):
File: lib/core/lib/Perms.php
Line: 214
Type: Invalid argument supplied for foreach()
PHP (5.2.4-2ubuntu5.10) ERROR (E_WARNING):
File: lib/core/lib/Perms.php
Line: 214
Type: Invalid argument supplied for foreach()
PHP (5.2.4-2ubuntu5.10) ERROR (E_WARNING):
File: lib/core/lib/Perms.php
Line: 214
Type: Invalid argument supplied for foreach()
PHP (5.2.4-2ubuntu5.10) ERROR (E_WARNING):
File: lib/core/lib/Perms.php
Line: 214
Type: Invalid argument supplied for foreach()
PHP (5.2.4-2ubuntu5.10) ERROR (E_WARNING):
File: lib/core/lib/Perms.php
Line: 214
Type: Invalid argument supplied for foreach()
PHP (5.2.4-2ubuntu5.10) ERROR (E_WARNING):
File: lib/core/lib/Perms.php
Line: 214
Type: Invalid argument supplied for foreach()