2017 © Pedro Peláez
 

library translation-bundle

A translation component supporting different translation adapters -- by default, OneSky.

image

partnermarketing/translation-bundle

A translation component supporting different translation adapters -- by default, OneSky.

  • Thursday, November 26, 2015
  • by BernardoSilva
  • Repository
  • 20 Watchers
  • 0 Stars
  • 2,624 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

TranslationBundle

Build Status Scrutinizer Code Quality Code Coverage HHVM Status, (*1)

TranslationBundle is a translation component supporting supporting different translation adapters -- by default, OneSky., (*2)

The existing adapters are:, (*3)

  • OneSky

Workflow

When you're developing you should add all translation keys into a file under app/Resources/base-translations., (*4)

When you pull translations those will be placed in Symfony 2 standard directory for translations app/Resources/translations., (*5)

The directory structure should be similar to the one in base-translations directory, but all files will have an extension to the name., (*6)

e.g., (*7)

base-translations/hello_world.yml

After translation will become:, (*8)

translations/hello_world.en_GB.yml
translations/hello_world.pt_PT.yml
...

How to configure

in your parameters.yml, (*9)

parameters:
    locale: en_GB # Symfony2 locale configuration
    partnermarketing_translation.base_language: %locale%
    partnermarketing_translation.supported_languages: [%locale%, pt_PT]
    partnermarketing_translation.one_sky.project_id: 123
    partnermarketing_translation.one_sky.api_key: yourOneskyKey
    partnermarketing_translation.one_sky.api_secret: youroneskysecret

How to use

See documentation in Symfony 2., (*10)

$translator = $this->get('translator');
$translator->trans('your_key');

How to push translations

app/console partnermarketing:translations:push_base_translations

How to pull translations

This will pull all latest translations into app/Resources/translations. If base language translations were changed their values will be updated in app/Resources/base-translations., (*11)

app/console partnermarketing:translations:pull_translations

How to run tests

Since phpunit is a dependency you can run tests using:, (*12)

vendor/bin/phpunit

How to contribute

The Versions

26/11 2015

dev-master

9999999-dev https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

26/11 2015

0.8.1

0.8.1.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

19/11 2015

0.8.0

0.8.0.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

18/11 2015

0.7.0

0.7.0.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

03/11 2015

0.6.0

0.6.0.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

30/10 2015

0.5.0

0.5.0.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

01/09 2015

0.4.0

0.4.0.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

31/07 2015

0.3.0

0.3.0.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

16/06 2015

0.2.3

0.2.3.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

08/06 2015

0.2.2

0.2.2.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

08/06 2015

0.2.1

0.2.1.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

08/06 2015

0.2.0

0.2.0.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

05/06 2015

0.1.0

0.1.0.0 https://github.com/partnermarketing/PartnermarketingTranslationBundle

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

08/12 2014

0.0.3

0.0.3.0

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

The Requires

 

The Development Requires

02/12 2014

0.0.2

0.0.2.0

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

The Requires

 

The Development Requires

02/12 2014

0.0.1

0.0.1.0

A translation component supporting different translation adapters -- by default, OneSky.

  Sources   Download

The Requires

 

The Development Requires