This is not a full tutorial, its just a first draft so people can start using translations.
It will require some more edits!
Repeat after me: creating a language package its a hard task and it will take lots of time!
[size=6]PART A - Download all SUITECRM files from Transifex site at once:[/size]
- Use Transifex “TX” client to download your files.
(the non translated lines will be filled with English ones)
To install and setup the TX client tool (Its a command line tool), see:
- 1- How to start a local Transifex project - https://sites.google.com/site/transjoomla/transifex-tutorials/start-local-project
[li]2- Downloading files with .TX client - https://sites.google.com/site/transjoomla/transifex-tutorials/downloading-files-with-tx-client
[/li]
[/ul]
Note: For step 1 you should use my config file for the TX client: https://dl.dropboxusercontent.com/u/441710/Transifex/SuiteCRM.ini
[size=6]PART B - Edit some files:[/size]
After downloading you need to edit these 3 files (pt_PT is for portuguse, your language code will be different)
- \include\language\pt_PT.lang.php
- \modules\ModuleBuilder\language\pt_PT.lang.php
- \install\language\pt_PT.lang.php
WHY and WHAT?
Because there are strings with duplicated names on the same SUITECRM language file and transifex would have cleared them.
I had to change the original string names so they are not ignored.
On those 3 files you need to remove some extra text I added to the key part on some string names.
The text to be removed goes from “_tx1” to “_tx18” (you can do a search and reply… I use PSPad Editor on Windows for a full replace at once)!
So:
‘Home_tx1’
Will ended as:
‘Home’
[size=6]PART C - [/size]
Duplicate (and rename) some additional files not available to translation from Transifex.
(Later I will make a list of them, they are few!)
[size=6]PART D - Manifest to install[/size]
You need to create a manifest for the language pack.
Its a long file to post here. Please take a look into some other language packs already created!
(We need a wiki!!)
[size=6]PART E - External files:[/size]
For a full language pack you also need to include extra files for external applications[/size]
- Those translations will be included in the INCLUDE and JSCALENDAR folders
Languages are available to download at:
1- \include\phpmailer\language
PHPMailer/language at master - https://github.com/PHPMailer/PHPMailer/tree/master/language
2- \include\HTMLPurifier\standalone\HTMLPurifier\Language\messages
HTML Purifier - Translations: www.transifex.com/projects/p/htmlpurifier/
3- \include\javascript\tiny_mce
TinyMCE localization - www.transifex.com/projects/p/tinymce/
Download translations: www.tinymce.com/i18n/index.php
4- \include\javascript\yui3\build\datatype\lang
YUI Library - http://yuilibrary.com
- IMPORTANT: The YUI library is no longer actively maintained
5- \jscalendar\lang
Download: Languages are already included in the zip to download: http://sourceforge.net/projects/jscalendar/files/jscalendar/
6- \modules\AOS_PDF_Templates\PDF_Lib
Hyphenator - https://code.google.com/p/hyphenator/
(its the download for the patterns files)
[size=6]PART F - ZIP[/size]
Zip your files and install language!
Note: please test with a test user, not the main admin!