2017 © Pedro Peláez
 

bundle translations-apibundle

Client API for https://www.tradukoj.com

image

jlaso/translations-apibundle

Client API for https://www.tradukoj.com

  • Wednesday, January 13, 2016
  • by jlaso
  • Repository
  • 1 Watchers
  • 7 Stars
  • 434 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Overview

This bundle permits API comunication with https://www.tradukoj.com, (*2)

In order to install this bundle you need to pay attention with requiremens:, (*3)

php > 5.3.7
php-lzf extension must be installed (try sudo pecl install lzf)

Installation

Checkout a copy of the code:, (*4)

// in composer.json
"require": {
    // ...
    "jlaso/translations-apibundle": "*"
    // ...
},

Then register the bundle with your kernel:, (*5)

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new JLaso\TranslationsApiBundle\TranslationsApiBundle(),
    // Excel Bundle
    new Liuggio\ExcelBundle\LiuggioExcelBundle(),
    // ...
);

Configuration

// in app/config/parameters.yml
###############################
##   TRANSLATIONS API REST   ##
###############################
jlaso_translations_api_access:
    project_id: 1 # the number that correspond to the project created
    key:  1234  # the key that systems assigns
    secret: 1234  # the password that you choose when init project in server
    url: http://www.tradukoj.com/app.php/api/


// in app/config/config.yml
translations_api:
    default_locale: %locale%
    managed_locales: ['es', 'en', 'fr', 'ca']  # the languages you want

and remember to enable translator in framework key
framework:
    translator:      { fallback: %locale% }

Usage

first schema:update to init database with SCM table:, (*6)

app/console doctrine:schema:update --force --env=dev

now, fill the local database with the content of your translations/catalog.locale.yml files, (*7)

app/console jlaso:translations:dump

and next upload your messages form local database to remote server, (*8)

app/console jlaso:translations:sync --upload-first=yes
when you use the bundle first time is necessary the use the upload-first option in order to generate the remote db

Examples

For synchronize local translations with server (remote) translations:, (*9)

app/console jlaso:translations:sync [--cache-clear] [--backup-files]

In the view, (*10)

Currently only be used yaml files in src/Company/bbbBundle/Resource/translations/messages.xx.yml
with xx as locale, and bbb as bundle name,
same for translations resources of app located at app/Resources/messages.xx.yml

The Versions

13/01 2016

dev-master

9999999-dev https://github.com/jlaso/translations-apibundle

Client API for https://www.tradukoj.com

  Sources   Download

MIT

The Requires

  • liuggio/excelbundle ~2.0
  • php >=5.3.7

 

api translations symfony tradukoj

11/05 2015

dev-develop

dev-develop https://github.com/jlaso/translations-apibundle

Client API for https://www.tradukoj.com

  Sources   Download

MIT

The Requires

  • php >=5.3.7
  • liuggio/excelbundle ~2.0

 

api translations symfony tradukoj

09/01 2015

dev-feature/internal-admin

dev-feature/internal-admin https://github.com/jlaso/translations-apibundle

Client API for https://www.tradukoj.com

  Sources   Download

MIT

The Requires

 

api translations symfony tradukoj

24/12 2014

dev-feature/new-non-lzf-mode

dev-feature/new-non-lzf-mode https://github.com/jlaso/translations-apibundle

Client API for https://www.tradukoj.com

  Sources   Download

MIT

The Requires

  • php >=5.3.7
  • liuggio/excelbundle ~2.0

 

api translations symfony tradukoj

16/08 2014

dev-feature/discover-and-push-command

dev-feature/discover-and-push-command https://github.com/jlaso/translations-apibundle

Client API for https://www.tradukoj.com

  Sources   Download

MIT

The Requires

  • php >=5.3.7
  • liuggio/excelbundle ~2.0

 

api translations symfony tradukoj

16/08 2014

1.3

1.3.0.0 https://github.com/jlaso/translations-apibundle

Client API for https://www.tradukoj.com

  Sources   Download

MIT

The Requires

  • php >=5.3.7
  • liuggio/excelbundle ~2.0

 

api translations symfony tradukoj

25/01 2014

1.0.0

1.0.0.0 https://bitbucket.org/jlaso/translations-apibundle

Client API for translations.com.es

  Sources   Download

propietary

The Requires

  • php >=5.3.0
  • ext-lzf *

 

api translations