The “include” language file has strings already translated when it should only have english values so they can be translated.
lines are in the file
\include\language\en_us.lang.php
$app_list_strings['marker_image_list']['days_dim'] = 'Days Dim';
$app_list_strings['marker_image_list']['days_dom'] = 'Days Dom';
$app_list_strings['marker_image_list']['days_jeu'] = 'Days Jeu';
$app_list_strings['marker_image_list']['days_jue'] = 'Days Jue';
$app_list_strings['marker_image_list']['days_lun'] = 'Days Lun';
$app_list_strings['marker_image_list']['days_mar'] = 'Days Mar';
$app_list_strings['marker_image_list']['days_mer'] = 'Days Mer';
$app_list_strings['marker_image_list']['days_mie'] = 'Days Mie';
$app_list_strings['marker_image_list']['days_qua'] = 'Days Qua';
$app_list_strings['marker_image_list']['days_qui'] = 'Days Qui';
$app_list_strings['marker_image_list']['days_sab'] = 'Days Sab';
$app_list_strings['marker_image_list']['days_sam'] = 'Days Sam';
$app_list_strings['marker_image_list']['days_seg'] = 'Days Seg';
$app_list_strings['marker_image_list']['days_sex'] = 'Days Sex';
$app_list_strings['marker_image_list']['days_ter'] = 'Days Ter';
$app_list_strings['marker_image_list']['days_ven'] = 'Days Ven';
$app_list_strings['marker_image_list']['days_vie'] = 'Days Vie';
Ordering the list we can see that there are translations for 3 languages Portuguese, French, Spanish.
How can we translate to any other language?
The list should have only english keys and values so we could translate to any other language (only the values will change, as normally)
Those strings for ‘marker_image_list’ code is used in line 134 on
modules\jjwg_Markers\vardefs.php
'marker_image' =>
array(
'required' => false,
'name' => 'marker_image',
'vname' => 'LBL_MARKER_IMAGE',
'type' => 'enum',
'massupdate' => '1',
'default' => 'company',
'comments' => '',
'help' => 'Marker Image Type',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => false,
'reportable' => true,
'len' => 100,
'size' => '20',
'options' => 'marker_image_list',
'studio' => 'visible',
'dependency' => false,
),
- I already Posted a question on JJWDesign Google Maps for SugarCRM
https://github.com/jjwdesign/JJWDesign-Google-Maps/issues/10
No reply (I assume this Git is not maintained anymore)
- I already created an issue on SuiteCRm but closed as it should be a forum topic (!)
Days Dim - requesting context for translation · Issue #2176 - https://github.com/salesagility/SuiteCRM/issues/2176
So:
This is a code that need to be refactored so translations can get picked from each language code files not form the en_US language file