This document provides a step-by-step walkthrough for translating ClearOS. By the end of this document, you will be able to translate using the online Translation System and see the results in your local ClearOS installation!
Once your translator account is active, you can go ahead and install the Developer Tools app on your ClearOS system, run:
yum install app-devel
Once installed, you can find the Developer Tools underin the menu.
To enable translator mode in ClearOS, click on in the Translations widget. Select your language, enable Translation Mode, and enable Synchronize Updates if you would like to synchronize (rsync) the translations to your ClearOS system every 5 minutes. Even though the tool (rsync) is smart about synchronizing just the changes, the synchronization will automatically expire after 12 hours.
If you are starting a brand new translation, the screen full of untranslated tags will look quite messy! See screenshot below and read on how to best clean things up.
Now you can get started with doing some translating! Here's a good place to start.
First, login to the server:
- Go to the Translate Server
- Click on Login in the top right corner and sign in.
- Click on Home in the top navigation
- Click on ClearOS under the Projects section
- Select your language
What you are seeing at this point is a list of translation files - each one represents a ClearOS app. Hopefully the base name of the file is intuitive.
To make it easier to navigate and to clean up a lot of the webconfig page layout issues, the first file that you will want to translate is base_categories_lang.php. This file contains all the categories and subcategories that you see in the menu system (Server, Gateway, Network, etc).
If you have synchronization enabled, you should see changes that you have made on the translation server appear on your ClearOS system every 5th minute of the hour (e.g. 10:05, 10:10, 10:15, etc.).
The next translation file to review is base_countries_lang.php. As you have probably already guessed, this is a list of countries and kind-of countries around the world. Most, if not all, of the translations have already been imported thanks to the work of Saša Stamenković using CLDR data.
The final part of the base app also happens to be one of the biggest to translate: there are approximately 500 generic words in the base. A lot of those standard buttons (e.g. Add, Edit, Delete) and widgets will start to look normal in webconfig after going through this translation set.
After tackling the base translations, it's a matter of going through all the other apps. We'll be adding more apps as the weeks and months go by.
If you have already translated ClearOS using the file system, please let us know via email@example.com. We can provide information on how to import those files into the Translation Server.