Skip to content
/ mklocale Public

A small utility to download and combine translations

License

Notifications You must be signed in to change notification settings

akx/mklocale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mklocale

A small utility to download and combine translations.

Configuration

Mklocale is configured with YAML files.

This example is useful for Django projects, where you'd need fresher translations than are shipped with the project(s) themselves.

This would gather Finnish translations from the Transifex and Django projects and meld them into .po/.mo files in the place expected by Django's machinery.

target:
  - locale/{lang}/LC_MESSAGES/django.po
  - locale/{lang}/LC_MESSAGES/django.mo
transifex:
  - project: wagtail
    languages: fi
  - project: django
    languages: fi

Invocation

If you expect to be using Transifex, make sure to set TRANSIFEX_AUTH to your Transifex user:password string. This is necessary because Transifex does not support any sort of other authentication nor unauthenticated access to projects.

Then simply run

$ python -m mklocale my_config.yaml

and things will happen.

About

A small utility to download and combine translations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Contributors 2

  •  
  •  

Languages