2017 © Pedro Peláez
 

contao-module translator

Multipurpose translation manager and interface

image

designs2/translator

Multipurpose translation manager and interface

  • Thursday, October 29, 2015
  • by MoniqueHahnefeld
  • Repository
  • 0 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Translator

Build Status, (*1)

The Contao Community Alliance translation library allows easy use of various translation string sources., (*2)

It ships with a collection of various translation string providers:, (*3)

  • Static values that get populated during runtime by code (StaticTranslator).
  • Adapter for Contao CMS language string arrays (LangArrayTranslator).

In addition it also provides a translator chain using which various translators can be stacked., (*4)

Usage:

It integrates into the Contao CMS providing a translator service. To use it, just get the service from the dependency container:, (*5)

<?php

/** @var ContaoCommunityAlliance\Translator\TranslatorInterface */
$translator = $GLOBALS['container']['translator'];

// Get the translation of yes from the MSC domain.
$translated = $translator->translate('yes', 'MSC');

// Sub arrays known in Contao can be accessed usng the dot as separator.
$translated = $translator->translate('title.0', 'tl_content');  

Known limitations:

  • We have no manual so far. Bummer! :/
  • We have not tested it all yet, so please give it a try yourself.

The Versions

29/10 2015

dev-master

9999999-dev http://c-c-a.org/

Multipurpose translation manager and interface

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

translation contao

04/09 2015

dev-hotfix/dependencies

dev-hotfix/dependencies http://c-c-a.org/

Multipurpose translation manager and interface

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

translation contao

01/07 2015

dev-develop

dev-develop http://c-c-a.org/

Multipurpose translation manager and interface

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

translation contao

01/07 2015

2.0.0

2.0.0.0 http://c-c-a.org/

Multipurpose translation manager and interface

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

translation contao

17/02 2015

1.0.1

1.0.1.0 http://c-c-a.org/

Multipurpose translation manager and interface

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

translation contao