CoreBOSBB
Just a little explanation on 'getTranslatedString' - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Modules/Extension Support (https://discussions.corebos.org/forumdisplay.php?fid=9)
+--- Thread: Just a little explanation on 'getTranslatedString' (/showthread.php?tid=212)



Just a little explanation on 'getTranslatedString' - Guido1982 - 12-08-2015

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.