2017 © Pedro Peláez
 

streams-addon translations-module

Dynamic translations module for Pyrocms V3

image

keevitaja/translations-module

Dynamic translations module for Pyrocms V3

  • Tuesday, March 21, 2017
  • by keevitaja
  • Repository
  • 1 Watchers
  • 2 Stars
  • 57 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Dynamic translations for PyroCMS V3

This module provides fast dynamic translations with the help of Laravel Translator., (*1)

Translation items are stored in the database, but are loaded once at the boot level. Just a few extra queries and thats it., (*2)

Installation

composer require keevitaja/translations-module dev-master, (*3)

Next in PyroCMS control panel (admin section) navigate to addons/modules and install the module., (*4)

Now you should have Translations menu item., (*5)

Usage

To start using the module, you must first create a new Bundle. It is like a translations group. Next create a new Translatable. Each Translatable must have a Bundle., (*6)

Bundles Translatables, (*7)

In your twig templates you can use the trans twig method:, (*8)

{{ trans('pages.test', {'name': 'Britney Spears'}) }}

In the example above pages is the bundle slug and test is the translatable slug., (*9)

For backend usage see Laravels docs:, (*10)

https://laravel.com/docs/master/localization, (*11)

What else?

Pyro rocks!, (*12)

The Versions

21/03 2017

dev-master

9999999-dev https://github.com/keevitaja/translations-module

Dynamic translations module for Pyrocms V3

  Sources   Download

MIT

by Tanel Tammik

21/03 2017

v0.0.1

0.0.1.0 https://github.com/keevitaja/translations-module

Dynamic translations module for Pyrocms V3

  Sources   Download

MIT

by Tanel Tammik