2017 © Pedro Peláez
 

library simple-translator

Simple implementation of \Nette\Localization\ITranslator interface. Just print the key as is. Usefull when you have no time for managing gettext translation but want translatable application in the future.

image

nedryse/simple-translator

Simple implementation of \Nette\Localization\ITranslator interface. Just print the key as is. Usefull when you have no time for managing gettext translation but want translatable application in the future.

  • Wednesday, November 23, 2016
  • by zeleznypa
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3,140 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

nedryse/simple-translator (cc)

Pavel Železný (2bfree), 2014 (pavelzelezny.cz), (*1)

Requirements

Nette Framework 2.4.0 or higher, (*2)

Documentation

Simple implementation of \Nette\Localization\ITranslator interface. Just print the key as is. Usefull when you have no time for managing gettext translation but want translatable application in the future., (*3)

Instalation

Prefered way to install is by Composer, (*4)

composer require nedryse/simple-translator:~1.1

Or by manualy adding into the composer.json, (*5)

{
    "require":{
        "nedryse/simple-translator": "~1.1"
    }
}

Setup

Add following code into the config.neon, (*6)

common:
    extensions:
        translator: Nedryse\Nette\Localization\SimpleTranslatorExtension

Usage

In Latte templates of presenters and components you can use standard tlanslator macro, (*7)

{_'Translatable text'}
{_'We have %d translatable text', $count}
{_'Field %s have to be translated', $fieldName}
{_'Field %s with %d letter have to be translated', $fieldName, $count}

The Versions

23/11 2016

dev-master

9999999-dev https://github.com/nedryse/simple-translator

Simple implementation of \Nette\Localization\ITranslator interface. Just print the key as is. Usefull when you have no time for managing gettext translation but want translatable application in the future.

  Sources   Download

WTFPL

The Requires

 

The Development Requires

translator nette latte dry nedryse

23/11 2016

v1.1.0

1.1.0.0 https://github.com/nedryse/simple-translator

Simple implementation of \Nette\Localization\ITranslator interface. Just print the key as is. Usefull when you have no time for managing gettext translation but want translatable application in the future.

  Sources   Download

WTFPL

The Requires

 

The Development Requires

translator nette latte dry nedryse

25/12 2014

v1.0.0

1.0.0.0 https://github.com/nedryse/simple-translator

Simple implementation of \Nette\Localization\ITranslator interface. Just print the key as is. Usefull when you have no time for managing gettext translation but want translatable application in the future.

  Sources   Download

WTFPL

The Requires

 

The Development Requires

translator nette latte dry nedryse