| Previous topic :: Next topic |
| Author |
Message |
Sai
Joined: 22 Aug 2004
Posts: 1575
Location: Chennai, India
|
| Posted: Sun Jun 04, 2006 5:20 pm Post subject: How to translate vtiger CRM 5 ? |
|
|
Follow the procedure given below to translate vtiger CRM 5 user interface from English to any international language.
Step 1:
1) Copy the following files inside the vtigercrm home directory, say if your language is Russian, copy the en_us.lang.php files to "ru_ru.lang.php" in their respective location, edit the "ru_ru.lang.php" files, and translate the label values given in these files to Russian.
List of Files to be translates:
Vendors/language/en_us.lang.php
Potentials/language/en_us.lang.php
Administration/language/en_us.lang.php
Dashboard/language/en_us.lang.php
Yahoo/language/en_us.lang.php
Help/language/en_us.lang.php
Leads/language/en_us.lang.php
Notes/language/en_us.lang.php
Invoice/language/en_us.lang.php
Portal/language/en_us.lang.php
Campaigns/language/en_us.lang.php
SalesOrder/language/en_us.lang.php
Products/language/en_us.lang.php
Activities/language/en_us.lang.php
CustomView/language/en_us.lang.php
PurchaseOrder/language/en_us.lang.php
Rss/language/en_us.lang.php
uploads/language/en_us.lang.php
Calendar/language/en_us.lang.php
Import/language/en_us.lang.php
Utilities/language/en_us.lang.php
Accounts/language/en_us.lang.php
Emails/language/en_us.lang.php
System/language/en_us.lang.php
Quotes/language/en_us.lang.php
Migration/language/en_us.lang.php
Home/language/en_us.lang.php
Reports/language/en_us.lang.php
HelpDesk/language/en_us.lang.php
Settings/language/en_us.lang.php
PriceBooks/language/en_us.lang.php
Users/language/en_us.lang.php
Faq/language/en_us.lang.php
Contacts/language/en_us.lang.php
Webmails/language/en_us.lang.php
include/language/en_us.lang.php
Step 2:
Add an entry (say for Russian 'ru_ru'=>'Russian') to the language array ($languages) in the following files:
install/4createConfigFile.php
config.php
now the array will look like:
$languages = Array('en_us'=>'US English','ru_ru'=>'Russian',);
Step 3:
Now Login to vtigerCRM (if you have already logged in, Logout and re-login), select your Language (Russian) in the Login page.
Note: The key name given in the $languages array, will be the prefix of the language files for that package. (here 'ru_ru' is the key name, therefore the Russian language files will have the name ru_ru.lang.php, the same rules holds good for other language packages also).
Step 4:
Change the character encoding:
Code: $default_charset = 'ISO-8859-1';
to
Code: $default_charset = 'UTF-8';
Follow the procedure given in KBase to install language packs:
http://www.vtiger.com/portal/general.php?action=index&fun=faq_comments&faqid=563
Cheers,
Gopal
Find and replace in all the files that has the following parameter: |
|
| Back to top |
|
kiang
Joined: 07 Jun 2005
Posts: 54
|
| Posted: Mon Jun 05, 2006 3:59 am Post subject: How to translate vtiger CRM 5 ? |
|
|
Step1: Download language tools from url:
http://vtigerforge.fosslabs.com/frs/?group_id=14
Step2: Extract file in the root of vtigerCRM installation
Step3: Modify the variables...
translate.php & translate_m.php
[code]$lang = 'zh-tw'; // Your language code in ISO-XXX
$encode = 'UTF-8'; // The encode you want to use[code]
to
[code]$lang = 'ru_ru'; // Your language code in ISO-XXX
$encode = 'UTF-8'; // The encode you want to use[code]
language_pack.php
[code]$target = 'C:/vtiger';
$lang = 'zh-tw';[/code]
to
for windows users
[code]$target = 'C:/vtiger';
$lang = 'ru_ru';[/code]
for unix-like users
[code]$target = '/tmp/vtiger';
$lang = 'ru_ru';[/code]
Step4: Change permissions ( for unix-like users ) for all language folders, ex. Webmails/language/ , to give web server write permission.
Step5: Open translate.php through browser with url like ... http://localhost/vtiger_crm/translate.php
*This step would help you translate the core of vtiger CRM
Step6: Open translate_m.php through browser with url like ... http://localhost/vtiger_crm/translate_m.php
*Choose the module you want to translate until all modules have done.
Step7: Execute language_pack.php through browser to make a package with us.
* Unix-like users could excute following command in shell to generate a language pack, too.
[code]find . | grep ru_ru | xargs tar -czf ru_ru.tar.gz[/code]
Step8: Upload the language pack here :) |
|
| Back to top |
|
kiang
Joined: 07 Jun 2005
Posts: 54
|
| Posted: Mon Jun 05, 2006 4:01 am Post subject: Re: How to translate vtiger CRM 5 ? |
|
|
Step1: Download language tools from url:
http://vtigerforge.fosslabs.com/frs/?group_id=14
Step2: Extract file in the root of vtigerCRM installation
Step3: Modify the variables...
translate.php & translate_m.php
Code: $lang = 'zh-tw'; // Your language code in ISO-XXX
$encode = 'UTF-8'; // The encode you want to use
to
Code: $lang = 'ru_ru'; // Your language code in ISO-XXX
$encode = 'UTF-8'; // The encode you want to use
language_pack.php
Code: $target = 'C:/vtiger';
$lang = 'zh-tw';
to
for windows users
Code: $target = 'C:/vtiger';
$lang = 'ru_ru';
for unix-like users
Code: $target = '/tmp/vtiger';
$lang = 'ru_ru';
Step4: Change permissions ( for unix-like users ) for all language folders, ex. Webmails/language/ , to give web server write permission.
Step5: Open translate.php through browser with url like ... http://localhost/vtiger_crm/translate.php
*This step would help you translate the core of vtiger CRM
Step6: Open translate_m.php through browser with url like ... http://localhost/vtiger_crm/translate_m.php
*Choose the module you want to translate until all modules have done.
Step7: Execute language_pack.php through browser to make a package with us.
* Unix-like users could excute following command in shell to generate a language pack, too.
Code: find . | grep ru_ru | xargs tar -czf ru_ru.tar.gz
Step8: Upload the language pack here |
|
| Back to top |
|
Sai
Joined: 22 Aug 2004
Posts: 1575
Location: Chennai, India
|
| Posted: Mon Jun 05, 2006 4:27 am Post subject: Re: How to translate vtiger CRM 5 ? |
|
|
Hi,
I have posted a manual procedure to translate vtiger. But the tool you are providing is better than the manual process.
Please let me know, is it OK if we integrate your contribution with main branch of vtiger CRM so that we can by default bundle your translation tool?
Regards,
Gopal |
|
| Back to top |
|
kiang
Joined: 07 Jun 2005
Posts: 54
|
| Posted: Mon Jun 05, 2006 4:38 am Post subject: Re: How to translate vtiger CRM 5 ? |
|
|
| Sure, it's OK. :) |
|
| Back to top |
|
kiang
Joined: 07 Jun 2005
Posts: 54
|
| Posted: Thu Jul 06, 2006 9:34 am Post subject: Re: How to translate vtiger CRM 5 ? |
|
|
I fixed some bugs and uploaded new release of language tools scripts:
https://vtigerforge.fosslabs.com/frs/download.php/49/language_tools.zip
If you had downloaded before, please re-download it. ^^|| |
|
| Back to top |
|
rasomu
Joined: 14 Jul 2005
Posts: 131
Location: Valencia, Spain
|
| Posted: Mon Jul 10, 2006 3:59 pm Post subject: Re: How to translate vtiger CRM 5 ? |
|
|
All works fine, but I can't find where it packs my language files, or if the "language_pack.php" works.
Good work. |
|
| Back to top |
|
kiang
Joined: 07 Jun 2005
Posts: 54
|
| Posted: Mon Jul 10, 2006 5:41 pm Post subject: Re: How to translate vtiger CRM 5 ? |
|
|
rasomu wrote: All works fine, but I can't find where it packs my language files, or if the "language_pack.php" works.
Good work.
Try to modify the value of '$target' & '$lang' in "language_pack.php" as you wish. :) |
|
| Back to top |
|
rasomu
Joined: 14 Jul 2005
Posts: 131
Location: Valencia, Spain
|
| Posted: Tue Jul 11, 2006 7:40 am Post subject: Re: How to translate vtiger CRM 5 ? |
|
|
I have done it but nothing happens;
$target = 'C:\Archivos de programa\xampp\htdocs\crm';
$lang = 'es_es';
I'm working in a 2003 server enviroment with last version of xampp.
What should "language_pack.php" do when I call it?
Thanks. |
|
| Back to top |
|
kiang
Joined: 07 Jun 2005
Posts: 54
|
| Posted: Wed Jul 12, 2006 12:43 am Post subject: Re: How to translate vtiger CRM 5 ? |
|
|
rasomu wrote: I have done it but nothing happens;
$target = 'C:\Archivos de programa\xampp\htdocs\crm';
$lang = 'es_es';
I'm working in a 2003 server enviroment with last version of xampp.
What should "language_pack.php" do when I call it?
Thanks.
Maybe you could use 'C:/vtiger' instead. Then open your browser and type the url like 'http://your-domain-name/vtiger/language_pack.php'. If there are no errors, you could find all language files in 'C:/vtiger'. Just compress this folder(zip?) and upload the archive here to share with us. :) |
|
| Back to top |
|
| |