PHP Classes

File: docs/md/I18Next-TranslatorStatic.md

Recommend this page to a friend!
  Classes of Francesco Danti   ATK4 i18next PHP   docs/md/I18Next-TranslatorStatic.md   Download  
File: docs/md/I18Next-TranslatorStatic.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: ATK4 i18next PHP
Translate application texts like il8next-PHP
Author: By
Last change: Update documentation
Date: 5 years ago
Size: 2,052 bytes
 

Contents

Class file image Download

I18Next\TranslatorStatic

  • Class name: TranslatorStatic
  • Namespace: I18Next

Properties

$translator

private \I18Next\Translator $translator

  • Visibility: private
  • This property is static.

Methods

instance

mixed I18Next\TranslatorStatic::instance()

  • Visibility: public
  • This method is static.

setTranslationsPath

mixed I18Next\TranslatorStatic::setTranslationsPath(string path)

  • Visibility: public
  • This method is static.

Arguments

  • path string

setNamespacePriority

mixed I18Next\TranslatorStatic::setNamespacePriority(mixed namespace_priority)

  • Visibility: public
  • This method is static.

Arguments

  • namespace_priority mixed

useFilenameAsNamespace

mixed I18Next\TranslatorStatic::useFilenameAsNamespace(bool|null enabled)

  • Visibility: public
  • This method is static.

Arguments

  • enabled bool|null

setLanguagePrimary

mixed I18Next\TranslatorStatic::setLanguagePrimary(string language_code)

  • Visibility: public
  • This method is static.

Arguments

  • language_code string

addLanguage

mixed I18Next\TranslatorStatic::addLanguage(string code)

  • Visibility: public
  • This method is static.

Arguments

  • code string

setLanguageFallback

mixed I18Next\TranslatorStatic::setLanguageFallback(string fallback_code)

  • Visibility: public
  • This method is static.

Arguments

  • fallback_code string

_

string I18Next\TranslatorStatic::_(string key, array|null parameters, string|null context, string|null locale)

  • Visibility: public
  • This method is static.

Arguments

  • key string
  • parameters array|null
  • context string|null
  • locale string|null

register

mixed I18Next\TranslatorStatic::register()

Register global function _.

  • Visibility: public
  • This method is static.