2006/12/4, Robin Elfrink <elfrink@introweb.nl>:

Hi,


I wrote a small thingy to help in translating RoundCube. This is not
intended to be added to RoundCube, just a little helpful tool.

Place the attached translate.php in ./program/localization, and point
your browser to
'<your-RC-URL>/program/localization/translate.php?language=<your-language>'
.

Example in my case:

http://eddy.introweb.nl/roundcubemail/program/localization/translate.php?language=nl_NL


The output is copy&pasteable to the files labels.inc and messages.inc,
and untranslated labels and messages will show in red.



Robin


array('en_US'=>$labels), 'messages'=>array('en_US'=>$messages)); $labels = array(); $messages = array(); if (file_exists($_GET['language'] . '/labelsinc')) { include_once($_GET['language'] . '/labels.inc'); $translations['labels'][$_GET['language']] = $labels; echo '

' . $_GET['language'] . '/labels.inc' . '

'; echo "<?php
\n"; echo "\$labels = array();
\n"; foreach ($translations['labels']['en_US'] as $label=>$content) { if (isset($translations['labels'][$_GET['language']][$label])) echo "\$labels['" . $label . "'] = '" . $translations['labels'][$_GET['language']][$label] . "';
\n"; else echo "\$labels['" . $label . "'] = '" . $content . "';
\n"; } echo "?>
\n"; } if (file_exists($_GET['language'] . '/messages.inc')) { include_once($_GET['language'] . '/messages.inc'); $translations['messages'][$_GET['language']] = $messages; echo '

' . $_GET['language'] . '/messages.inc' . '

'; echo "<?php
\n"; echo "\$messages = array();
\n"; foreach ($translations['messages']['en_US'] as $message=>$content) { if (isset($translations['messages'][$_GET['language']][$message])) echo "\$messages['" . $message . "'] = '" . $translations['messages'][$_GET['language']][$message] . "';
\n"; else echo "\$messages['" . $message . "'] = '" . $content . "';
\n"; } echo "?>
\n"; } } else { echo 'Directory ' . $_GET['language'] . ' not found.'; } ?>

Hello

My version of translation tool http://loru.mine.nu/roundcube/
You can comment it in here or @ http://roundcubeforum.net/forum/index.php?topic=56.0

Cheers,
Üllar