php-translation/transifex-adapter

dev-master 2017-01-02 12:20 UTC

This package is auto-updated.

Last update: 2024-11-25 06:54:47 UTC


README

Latest Version Build Status Code Coverage Quality Score Total Downloads

This is an PHP-translation adapter for Transifex.

Install

composer require php-translation/transifex-adapter
Symfony bundle

If you want to use the Symfony bundle you may activate it in kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Translation\PlatformAdapter\Transifex\Bridge\Symfony\TranslationAdapterTransifexBundle(),
    );
}

If you have one Transifex project per domain you may configure the bundle like this:

# /app/config/config.yml
translation_adapter_transifex:
  projects:
    my_proj:
      domains: ['messages'] 
    my_nav:
      domains: ['navigation']

This will produce a service named php_translation.adapter.transifex that could be used in the configuration for the Translation Bundle.

Documentation

Read our documentation at http://php-translation.readthedocs.io.

Contribute

Do you want to make a change? This repository is READ ONLY. Submit your pull request to php-translation/platform-adapter.