Closed PercyP closed 8 years ago
@PercyP try this: module Vtiger
@vovpff
thanks for response. The bits I am looking to change don't appear in that vtiger language file section. Basically I want to change the language in the invoice module (and elsewhere it may appear) see image:
But its proving impossible to track down :(
for search the line in a file where label is located on linux shell, use this command from the root of yeti:
grep -inR 'label to find' languages/en_us/*
-i case insensitive -n line number -R recursive
eg. find the tax Label:
grep -inR 'Tax Mode' languages/en_us/*
result:
languages/en_us/Vtiger.php:529: 'LBL_TAX_MODE' => 'Tax Mode',
(file location: line number: line text)
change the word in bold on file languages/en_us/Vtiger.php at line 529 (don't forget the quotes and the comma at the end) and save the file. Same operation for other language traduction, but change the folder where you search:
eg for Polish (pl_pl):
grep -inR 'label to find' languages/pl_pl/*
@PercyP let's check lines for taxes and discounts:
\languages\en_us\Vtiger.php (8 hits)
Line 340: 'LBL_INDIVIDUAL' => 'Individual',
Line 340: 'LBL_INDIVIDUAL' => 'Individual',
Line 984: 'LBL_INDIVIDUAL_DISCOUNTS' => 'Individual',
Line 984: 'LBL_INDIVIDUAL_DISCOUNTS' => 'Individual',
Line 1004: 'LBL_INDIVIDUAL_TAX' => 'Individual',
Line 1004: 'LBL_INDIVIDUAL_TAX' => 'Individual',
Line 1050: 'individual' => 'Individual',
Line 1050: 'individual' => 'Individual',
\languages\en_us\Vtiger.php (27 hits)
Line 328: 'LBL_GROUP_TAX' => 'Group Tax',
Line 328: 'LBL_GROUP_TAX' => 'Group Tax',
Line 856: 'LBL_TOTAL_DISCOUNT' => 'Group discount',
Line 943: 'LBL_CV_GROUP_MINE' => 'Mine',
Line 944: 'LBL_CV_GROUP_SYSTEM' => 'System',
Line 945: 'LBL_CV_GROUP_OTHERS' => 'Shared',
Line 946: 'LBL_CV_GROUP_PENDING' => 'Pending',
Line 954: 'Support Group' => 'Support Group',
Line 954: 'Support Group' => 'Support Group',
Line 955: 'Marketing Group' => 'Marketing Group',
Line 955: 'Marketing Group' => 'Marketing Group',
Line 983: 'LBL_GROUP_DISCOUNTS' => 'Group',
Line 983: 'LBL_GROUP_DISCOUNTS' => 'Group',
Line 1005: 'LBL_GROUP_TAXS' => 'Group',
Line 1005: 'LBL_GROUP_TAXS' => 'Group',
Line 1049: 'group' => 'Group',
Line 1049: 'group' => 'Group',
Line 1069: 'Groups' => 'Groups',
Line 1069: 'Groups' => 'Groups',
Line 1244: 'JS_SELECT_RECORDS_TO_MERGE_FROM_SAME_GROUP' => 'You have to select the records in the same groups for merging',
Line 1244: 'JS_SELECT_RECORDS_TO_MERGE_FROM_SAME_GROUP' => 'You have to select the records in the same groups for merging',
@nic86 @vovpff
thanks both. I have actually changed all of those, but they don't have an effect on those strings in the dropdown boxes. I assumed they may be picklists but they don't even appear in the picklist manager.
Can I ask, if you changed those values in your system do they change on the front end (within invoices)?
Percy
if you mean the label of picklist "Group" and "Individual" they are in the file languages/en_us/Vtiger.php line 326: 'LBL_GROUP' => 'Group', line 340: 'LBL_INDIVIDUAL' => 'Individual',
reload the web service after change the file
@nic86
aha! thank you all. When I go in to the Language section to edit the file within the Yetiforce it does not display all the language strings in there. I event tried searching for them but came back as zero. Now when I go to the file on my server /languages/vtiger.php I can see the extra strings I need to change. I have now made those last 2 changes you pointed me to and it worked :)
Once again thanks
@PercyP
latest dev. version!
hi
Issue
I am trying to change the language strings for the tax labels of Global, Individual etc. and have gone through the language files but cannot find where this is. I have also gone through the fields on the MySql database. I did manage to change the string in the Vtiger language file, but this has no effect on the picklist in the Invoice creation form (at bottom where it asks you to select tax mode.
Are these language strings in another file that is not so obvious?
Kind regards
Percy