MyMeeting currently supports 2 languages, English and Bahasa Melayu. It is developed in English but default language that's set to use after installation is Bahasa Melayu.
What you need to start translating
- Poedit
- A copy of MyMeeting
Translating steps
Extract strings to be translated
- Go to cake/console directory under MyMeeting root folder
$ cd <!MyMeeting directory>/cake/console
- Extract the strings
$ ./cake i18n extract Welcome to CakePHP v1.2.4.8284 Console --------------------------------------------------------------- App : app Path: /home/cawanpink/web/mm/bzr/dev/app --------------------------------------------------------------- I18n Shell --------------------------------------------------------------- [E]xtract POT file from sources [I]nitialize i18n database table [H]elp [Q]uit What would you like to do? (E/I/H/Q) > e What is the full path you would like to extract? Example: /home/cawanpink/web/mm/bzr/dev/myapp [Q]uit [/home/cawanpink/web/mm/bzr/dev/app] > <---- enter your own app/ folder location under MyMeeting root directory What is the full path you would like to output? Example: /home/cawanpink/web/mm/bzr/dev/app/locale [Q]uit [/home/cawanpink/web/mm/bzr/dev/app/locale] > <---- enter your own app/locale folder location under MyMeeting root directory [/home/cawanpink/web/mm/dev/app/locale] > <---- press Enter Extracting... --------------------------------------------------------------- Path: /home/cawanpink/web/mm/bzr/dev/app Output Directory: /home/cawanpink/web/mm/bzr/dev/app/locale/ --------------------------------------------------------------- Would you like to merge all translations into one file? (y/n) [y] > <---- press Enter What should we name this file? [default] > <------ press Enter ... cake will process .... Error: default.pot already exists in this location. Overwrite? (y/n/q) [n] > y <----- press Enter Done. --------------------------------------------------------------- I18n Shell --------------------------------------------------------------- [E]xtract POT file from sources [I]nitialize i18n database table [H]elp [Q]uit What would you like to do? (E/I/H/Q) > q
You will have an updated copy of default.pot generated for you in <MyMeeting directory>/app/locale. This file contains all the translatable strings.
Translate to Bahasa Melayu
1. Open up Poedit. Go to File -> Open -> select app/locale/may/LC_MESSAGES/default.po
2. All strings and current translation will appear.
3. Go to Catalog -> Update from POT file... -> select app/local/default.pot
4. New found strings and obsolete strings will be displayed as below. Click OK. This will update default.po file.
5. All translatable will appear on the left column, translated strings on the right. There are 3 sections:
- not translated strings (new found with no suggestions)
- not translated strings (with suggestions)
- translated strings
For strings that prepended with '%', please do not translate. eg: %due_date - due date should be translated to %due_date - tarikh akhir. Prepended strings are used by MyMeeting as a placeholders in email templates, to be replaced by real values when emails are generated.
Select the string you want to translate and type the translation in the white box below it.
6. When you're done, click on Save.
Send the patch
- If you want to share the translation with MyMeeting, please create a ticket. Then attach the <MyMeeting directory>/app/locale/may/LC_MESSAGES/default.po file with it
- OSCC team will review and apply the patch accordingly.
Attachments
-
screenshot_013.png
(47.8 KB) - added by nuhaa
2 months ago.
-
screenshot_015.png
(69.3 KB) - added by nuhaa
2 months ago.
