Skip to content

Localization

PICCORO Lenz McKAY edited this page Apr 10, 2015 · 3 revisions

If you want to colaborate in translations there's two ways: sent throught a pull request by reading this wiki information page.

You can read also OwnCloud Documentation for more techical details.

The two modes of work, create a new locale support languaje or update a specific languaje.

Adding new locale support

Open the pot file in the template l10n directory, e.g. /roundcube/src/main/php/l10n/templates/roundcube.pot Create a new directory named as the new locale, by e.g /roundcube/src/main/php/l10n/es/ Open this file with a translate app, like Poedit, translate the keys and save it to the new locale folder, e.g /roundcube/src/main/php/l10n/es/roundcube.po

Once translater, then go to the app l10n folder and run the translation updater script:

owncloud/roundcube/src/main/php/l10n: ../../../../../scripts/l10n.pl roundcube write

Then commit your changes with a pull request.

Update already locale support (added/remove strings)

Go to the app l10n folder and run the script (WARNING: this will update all files):

owncloud/roundcube/src/main/php/l10n: ../../../../../scripts/l10n.pl roundcube read

Note take it in consideration commit in the pull, only you're related files, due all files will be touched; by e.g if your update are related to the newly created "es.php", then u must added in the git pull only this file, and does not use git add * so will upload then more files rather that related to you.

Requeriments

  1. U must have perl environment instaled in your system.

  2. U must have PO module in the perl installation. (in debian by ex. run "apt-get install liblocale-po-perl"