PHP Classes

File: docs/_sources/api/atk4/core/TranslatableTrait.rst.txt

Recommend this page to a friend!
  Classes of Francesco Danti  >  ATK4 i18next PHP  >  docs/_sources/api/atk4/core/TranslatableTrait.rst.txt  >  Download  
File: docs/_sources/api/atk4/core/TranslatableTrait.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: 2,051 bytes


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

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


.. php:namespace:: atk4\core

.. php:trait:: TranslatableTrait

	.. rst-class:: phpdoc-description
		| If a class use this trait, string can be translated calling method translate\.
		`vendor/atk4/core/src/TranslatableTrait.php#8 <>`_


.. php:attr:: public static _translatableTrait

	.. rst-class:: phpdoc-description
		| Check this property to see if trait is present in the object\.
		`vendor/atk4/core/src/TranslatableTrait.php#15 <>`_
	:Type: bool 


.. rst-class:: public

	.. php:method:: public _( $message, $parameters=null, $domain=null, $locale=null)
		.. rst-class:: phpdoc-description
			| Translates the given message\.
			`vendor/atk4/core/src/TranslatableTrait.php#27 <>`_
			* **$message** (string)  The message to be translated
			* **$parameters** (array)  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

		:Returns: string The translated string

.. rst-class:: protected

	.. php:method:: protected processMessage( $message, $parameters=null)
			`vendor/atk4/core/src/TranslatableTrait.php#45 <>`_

.. rst-class:: protected

	.. php:method:: protected processMessagePlural( $message, $parameters=null)
			`vendor/atk4/core/src/TranslatableTrait.php#50 <>`_

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