PHP Classes

File: docs/_sources/api/I18Next/atk4/TranslatorI18NextTrait.rst.txt

Recommend this page to a friend!
  Classes of Francesco Danti  >  ATK4 i18next PHP  >  docs/_sources/api/I18Next/atk4/TranslatorI18NextTrait.rst.txt  >  Download  
File: docs/_sources/api/I18Next/atk4/TranslatorI18NextTrait.rst.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: ATK4 i18next PHP
Translate application texts like il8next-PHP
Author: By
Last change:
Date: 3 years ago
Size: 1,956 bytes


Class file image Download
.. rst-class:: phpdoctorst

.. role:: php(code)
	:language: php


.. php:namespace:: I18Next\atk4

.. php:trait:: TranslatorI18NextTrait

		`src/I18Next/atk4/TranslatorI18NextTrait.php#10 <>`_


.. php:attr:: protected static translator

		`src/I18Next/atk4/TranslatorI18NextTrait.php#13 <>`_
	:Type: :any:`\\I18Next\\TranslatorInterface <I18Next\\TranslatorInterface>` 


.. rst-class:: public

	.. php:method:: public setTranslator( $translator)
			`src/I18Next/atk4/TranslatorI18NextTrait.php#20 <>`_
			* **$translator** (:any:`I18Next\\TranslatorInterface <I18Next\\TranslatorInterface>`)  

		:Returns: :any:`\\I18Next\\TranslatorInterface <I18Next\\TranslatorInterface>` 

.. rst-class:: public

	.. php:method:: public _( $message, $parameters=null, $domain=null, $locale=null)
		.. rst-class:: phpdoc-description
			| Translates the given message\.
			`src/I18Next/atk4/TranslatorI18NextTrait.php#36 <>`_
			* **$message** (string)  The message to be translated
			* **$parameters** (array | null)  Array of parameters used to translate message
			* **$domain** (string | null)  The domain for the message or null to use the default
			* **$locale** (string | null)  The locale or null to use the default

		:Throws: :any:`\\atk4\\core\\Exception <atk4\\core\\Exception>` 
		:Returns: string The translated string

For more information send a message to info at phpclasses dot org.