AnsweredAssumed Answered

Labels on buttons not displaying correctly

Question asked by Brecht Yperman on Dec 15, 2017
Latest reply on Dec 21, 2017 by Brecht Yperman

Hi,

 

I have built an extension module to add two buttons to for example the Accounts module. In \Extension\modules\Accounts\clients\base\views\record\ I have a .php file containing (among other code), this bit:

 

//module name
$moduleUsed = 'Accounts';

//buttons to append
$addButtons = array(
array(
'type' => 'divider',
),
array(
'type' => 'xdrecordgenbutton',
'name' => 'xperido_generate_button',
'label' => 'LBL_XPERIDO_GENERATE_RECORD_LABEL',
'acl_action' => 'view',
),
array(
'type' => 'xdrecordquickgenbutton',
'name' => 'xperido_quickgenerate_button',
'label' => 'LBL_XPERIDO_QUICKGENERATE_RECORD_LABEL',
'acl_action' => 'view',
)
);

 

In Extension\modules\Accounts\Language\ I have a php for most languages, e.g. en_uk.Accounts.php, containing translations for the labels.

<?php 
$mod_strings['LBL_XPERIDO_GENERATE_RECORD_LABEL'] = 'XperiDo Document';
$mod_strings['LBL_XPERIDO_GENERATE_RECORDLIST_LABEL'] = 'XperiDo Document';
$mod_strings['LBL_XPERIDO_QUICKGENERATE_RECORD_LABEL'] = 'XperiDo Quick Document';

 

This works for 99% of my customers, however for some it doesn't, and the label is not translated.

How do I go about debugging this issue?

 

Thanks!

Outcomes