Overview

Namespaces

  • Composer
    • Autoload
  • Geekwright
    • RegDom
  • League
    • OAuth2
      • Client
        • Provider
  • None
  • Xmf
    • Database
    • Jwt
    • Key
    • Module
      • Helper

Classes

  • Assert
  • Debug
  • FilterInput
  • Highlighter
  • IPAddress
  • Language
  • Metagen
  • Random
  • Request
  • StopWords
  • Yaml
  • Overview
  • Namespace
  • Class
  • Tree

Class Language

Language

Namespace: Xmf
Package: Xmf
Category: Xmf\Language
Copyright: 2011-2016 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: trabis lusopoemas@gmail.com
Link: http://xoops.org
Located at lass/libraries/vendor/xoops/xmf/src/Xmf/Language.php
Methods summary
public static string
# translate( string $string, string $domain = null )

Attempt a translation of a simple string

Attempt a translation of a simple string

Parameters

$string
string to translate
$domain
language domain

Returns

string
translated string
public static boolean
# load( string $name, string $domain = '', string $language = null )

load - load a language file

load - load a language file

Parameters

$name
name of the language file
$domain
domain or module supplying language file
$language
language folder name

Returns

boolean
true if loaded, otherwise false
protected static boolean
# loadFile( string $filename )

Load a file

Load a file

Parameters

$filename
filename to load

Returns

boolean
true if file exists and was loaded

Throws

InvalidArgumentException
API documentation generated by ApiGen