PHP Classes

File: docs/source/api/I18Next/Locale/Translations.rst

Recommend this page to a friend!
  Classes of Francesco Danti   ATK4 i18next PHP   docs/source/api/I18Next/Locale/Translations.rst   Download  
File: docs/source/api/I18Next/Locale/Translations.rst
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: ATK4 i18next PHP
Translate application texts like il8next-PHP
Author: By
Last change: Update documentation
Date: 5 years ago
Size: 3,810 bytes
 

Contents

Class file image Download
.. rst-class:: phpdoctorst .. role:: php(code) :language: php Translations ============ .. php:namespace:: I18Next\Locale .. rst-class:: final .. php:class:: Translations :Source: `src/I18Next/Locale/Translations.php#19 <https://github.com/abbadon1334/atk4-i18next-php/blob/master/src/I18Next/Locale/Translations.php#L19>`_ :Used traits: :php:trait:`atk4\\core\\ConfigTrait` Summary ------- Methods ~~~~~~~ * :php:meth:`public load\($path, $use\_filename\_as\_namespace, $namespace\_priority\)<I18Next\\Locale\\Translations::load\(\)>` * :php:meth:`private loadSingle\($path\)<I18Next\\Locale\\Translations::loadSingle\(\)>` * :php:meth:`public useFilenameAsNamespace\($enabled\)<I18Next\\Locale\\Translations::useFilenameAsNamespace\(\)>` * :php:meth:`private setNamespacePriority\($namespace\_priority\)<I18Next\\Locale\\Translations::setNamespacePriority\(\)>` * :php:meth:`private processKeyVariation\($processorClass, $key, $value\)<I18Next\\Locale\\Translations::processKeyVariation\(\)>` * :php:meth:`private afterReadProcessForKeyCounters\(\)<I18Next\\Locale\\Translations::afterReadProcessForKeyCounters\(\)>` * :php:meth:`private afterReadProcessForKeyDeepInline\(\)<I18Next\\Locale\\Translations::afterReadProcessForKeyDeepInline\(\)>` * :php:meth:`private afterReadAddNamespaceIfNeeded\($config, $namespace\)<I18Next\\Locale\\Translations::afterReadAddNamespaceIfNeeded\(\)>` * :php:meth:`public useNamespaces\(\)<I18Next\\Locale\\Translations::useNamespaces\(\)>` * :php:meth:`public getNamespaceRanked\(\)<I18Next\\Locale\\Translations::getNamespaceRanked\(\)>` * :php:meth:`public setLoaderFormat\($format\)<I18Next\\Locale\\Translations::setLoaderFormat\(\)>` Properties ---------- .. php:attr:: protected static namespace_priority :Source: `src/I18Next/Locale/Translations.php#27 <https://github.com/abbadon1334/atk4-i18next-php/blob/master/src/I18Next/Locale/Translations.php#L27>`_ :Type: string[] .. php:attr:: protected static use_filename_as_namespace :Source: `src/I18Next/Locale/Translations.php#30 <https://github.com/abbadon1334/atk4-i18next-php/blob/master/src/I18Next/Locale/Translations.php#L30>`_ :Type: bool Methods ------- .. rst-class:: public .. php:method:: public load( $path, $use_filename_as_namespace, ...$namespace_priority) :Source: `src/I18Next/Locale/Translations.php#45 <https://github.com/abbadon1334/atk4-i18next-php/blob/master/src/I18Next/Locale/Translations.php#L45>`_ :Parameters: * **$path** (string) * **$use_filename_as_namespace** (bool) * **...$namespace_priority** (string | null) :Throws: :any:`\\atk4\\core\\Exception <atk4\\core\\Exception>` .. rst-class:: public .. php:method:: public useFilenameAsNamespace( $enabled) :Source: `src/I18Next/Locale/Translations.php#97 <https://github.com/abbadon1334/atk4-i18next-php/blob/master/src/I18Next/Locale/Translations.php#L97>`_ :Parameters: * **$enabled** (bool | null) .. rst-class:: public .. php:method:: public useNamespaces() :Source: `src/I18Next/Locale/Translations.php#197 <https://github.com/abbadon1334/atk4-i18next-php/blob/master/src/I18Next/Locale/Translations.php#L197>`_ :Returns: bool .. rst-class:: public .. php:method:: public getNamespaceRanked() :Source: `src/I18Next/Locale/Translations.php#205 <https://github.com/abbadon1334/atk4-i18next-php/blob/master/src/I18Next/Locale/Translations.php#L205>`_ :Returns: string[] .. rst-class:: public .. php:method:: public setLoaderFormat( $format) :Source: `src/I18Next/Locale/Translations.php#213 <https://github.com/abbadon1334/atk4-i18next-php/blob/master/src/I18Next/Locale/Translations.php#L213>`_ :Parameters: * **$format** (string)