Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • LegacyCommandBag
  • Translator
  • View

Interfaces

  • CommandReceiverInterface
  • TranslatorInterface
  • ViewableInterface
  • ViewInterface
  • Overview
  • Namespace
  • Class
  • Deprecated

Interface TranslatorInterface

Translate strings by looking at the language catalogs provided by a module

Direct known implementers

Nethgui\View\Translator
Namespace: Nethgui\View
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
Api
Located at View/TranslatorInterface.php
Methods summary
public string
# translate( Nethgui\Module\ModuleInterface $module, string $string, array $args = array(), string $languageCode = NULL )

Translate a string

Translate a string

Parameters

$module
The module providing the language catalog(s)
$string
The string to be translated
$args
Hash of placeholders. Each key is replaced with the corresponding value. See PHP strtr()
$languageCode
The language of the returned string

Returns

string
The translated string

Api

public string
# getLanguageCode( )

Get the default language code

Get the default language code

Returns

string
ISO 639-1 language code (2 characters).

Api

Nethgui Framework API documentation generated by ApiGen