Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Just a little explanation on 'getTranslatedString'
#1
One of those things where, when you see it, it's so simple:

When you use getTranslatedString in for instance your Settings.php page:

PHP Code:
$menu_array['SetCredentials']['location'] = 'index.php?module=ExactOnline&action=SetCredentials';
$menu_array['SetCredentials']['image_src'] = 'modules/ExactOnline/images/setexactcredIcon.png';
$menu_array['SetCredentials']['desc'] = getTranslatedString('SetCredentials','ExactOnline');
$menu_array['SetCredentials']['label'] = getTranslatedString('SetCredentialsTitle','ExactOnline'); 

The first argument is the label in the language array, the second one is the module you want the system to look into for this language file.
Reply


Messages In This Thread
Just a little explanation on 'getTranslatedString' - Guido1982 - 12-08-2015, 11:11 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)