Overview

Classes

  • Ws_logged_inModel
  • Ws_permissionsModel
  • Ws_role_permModel
  • Ws_rolesModel
  • Ws_user_roleModel
  • Ws_userModel
  • WsAuth
  • WsauthController
  • WsChart
  • WsConfig
  • WsController
  • WsDatabase
  • WsForm
  • WsImage
  • WsLocalize
  • WsModel
  • WsModelForm
  • WsModelGridView
  • WsUrl

Functions

  • __autoload
  • callHook
  • WsErrorHandler
  • Overview
  • Class

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
Methods summary
public static
# msg( $str )
public static string
# getLang( )

get current language

get current language

Returns

string
$lang
API documentation generated by ApiGen