CMC for PHP
  • Namespace
  • Class
  • Tree

Namespaces

  • cmc
    • core
      • ui
    • db
      • mysqli
    • error
    • ui
      • widgets
  • PHP

Classes

  • cache
  • request
  • translation

Interfaces

  • IClonable
  • ISerializable

CMC for PHP is a web framework for PHP.
Copyright (c) 2014 by Calmarsoft company http://calmarsoft.com (FRANCE). All rights reserved.
Project information available here.

Class translation

Handles direct translation data

Namespace: cmc\core
Copyright: Copyright (c) Calmarsoft company (FRANCE) (http://calmarsoft.com)
License: GNU General Public License version 3
Version: 0.9
Link: CMC Project
Located at core/translation.php

Methods summary

public
# addData( mixed $data )
public string
# getText( string $key )

finds a localized string from a key

finds a localized string from a key

returns the input key if no entry was found

Parameters

$key
string
the item key

Returns

string
the localized string
public
# fmtText( mixed $key, mixed $args )
public string
# getLangName( )

returns the current language

returns the current language

Returns

string
the current language
public
# updateLocale( )

updates the PHP locale from the current language

updates the PHP locale from the current language

public
# __construct( string $lang )

initializes language and locale object from the givent language string

initializes language and locale object from the givent language string

Parameters

$lang
string
language code

Magic methods summary

CMC for PHP API documentation generated by ApiGen 2.8.0