Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read conf from file #1

Closed
MattKetmo opened this issue Dec 26, 2013 · 1 comment
Closed

Read conf from file #1

MattKetmo opened this issue Dec 26, 2013 · 1 comment

Comments

@MattKetmo
Copy link
Member

Example of configuration file

server:
    host: openl10n.local
    login: user
    password: user

project: foobar

files:
    expr: 
        - src/Acme/Bundle/*/Resources/translations/<domain>.<local>.*
        - strings/<locale>/LC_MESSAGES/<domain>.*
    exclude: messages.en.yml

options: ~

Or specify credentials in user's home directory (~/.openl10n.yml):

hosts:
    openl10n.dev:
        user: user
        password: user
        #use_ssl: true

Then only use:

server: openl10n.dev
@MattKetmo
Copy link
Member Author

Other example (inspired from http://crowdin.net/page/cli-tool)

# Server connection
server:
    hostname: openl10n.dev
    login: user
    password: user

# Project specification
project:
    name: demo
    locales: [en, fr, es] # Ignore 

# Translation files
files:
    - resources/locales/<domain>.<locale>.yml
    - messages/locales/<domain>.en.yml # if locale not specified use default one
    - 
        source: messages/<locale:en|fr>/<domain>.xml # push only locale `en` + `fr`
        dump: messages/<locale:^en>/<domain>.xml # pull all locale except `en`
        ignore: [ "countries.*.yml" ]
        languages_mapping: {'fr_FR': 'fr'}
        options: ~

# Global options (merge with each file options)
options: ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant