Download the PHP package theredcorner/trctranslate without Composer
On this page you can find all versions of the php package theredcorner/trctranslate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download theredcorner/trctranslate
More information about theredcorner/trctranslate
Files in theredcorner/trctranslate
Download theredcorner/trctranslate
More information about theredcorner/trctranslate
Files in theredcorner/trctranslate
Vendor theredcorner
Package trctranslate
Short Description Use the ‘t’ function to output translations.
License MIT
Package trctranslate
Short Description Use the ‘t’ function to output translations.
License MIT
Please rate this library. Is it a good library?
Informations about the package trctranslate
TRCTranslate plugin for Craft CMS 3.x
Use the t()
Twig function to output I18n
like strings.
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require the-red-corner/trctranslate
- In the Control Panel, go to Settings → Plugins and click the “Install” button for TRCTranslate.
Configuring TRCTranslate
- Add a section with the handle
translations
. - Add a field with the handle
key
to thetranslations
section. You also have to include thetitle
field for this section.
Using TRCTranslate
Use the following syntax to display a translated string in your templates:
{{ t('footer.address.phoneNumber') }}
footer.address.phoneNumber
is the key of the translation entry.
Brought to you by The Red Corner
All versions of trctranslate with dependencies
PHP Build Version
Package Version
Requires
craftcms/cms Version
^3.0.0-RC1
The package theredcorner/trctranslate contains the following files
Loading the files please wait ....