2017 © Pedro Peláez
 

contao-module translator

Multipurpose translation manager and interface

image

contao-community-alliance/translator

Multipurpose translation manager and interface

  • Friday, June 8, 2018
  • by xtra
  • Repository
  • 6 Watchers
  • 1 Stars
  • 38,065 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 3 % 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

08/06 2018

dev-support/2.0.x

dev-support/2.0.x http://c-c-a.org/

Multipurpose translation manager and interface

  Sources   Download

LGPL-3.0+ LGPL-3.0-or-later

The Requires

 

The Development Requires

translation contao

11/02 2018

dev-master

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

Multipurpose translation manager and interface

  Sources   Download

LGPL-3.0+ LGPL-3.0-or-later

The Requires

 

The Development Requires

translation contao

11/02 2018

dev-develop

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

Multipurpose translation manager and interface

  Sources   Download

LGPL-3.0+ LGPL-3.0-or-later

The Requires

 

The Development Requires

translation contao

11/02 2018

2.1.1

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

Multipurpose translation manager and interface

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

translation contao

19/01 2018

2.1.0

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

Multipurpose translation manager and interface

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

translation contao

19/10 2017

dev-feature/contao4

dev-feature/contao4 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