Class WsLocalize
WsLocalize Translates strings in application to specific language. Create language text file in "lang" directory. Language file is in JSON format. For example: create "lang/hr.txt" file for croatian translations, with example content:
{
'message string':'prva poruka',
'message string2':'druga poruka'
}
Example usage:
// this will display "prva poruka" if browser language is set to croatian echo WsLocalize::msg('message string');
Located at WsLocalize.class.php
public static
|
|
public static
string
|