Giter VIP home page Giter VIP logo

openedx-i18n's Introduction

Open edX i18n

This project contains dumps of the translation/localization files from Transifex for the Open edX project. It allows you to download internationalization (i18n) files without a Transifex account.

The content of this project is of little use in itself. In particular, it is used in Tutor to package i18n files into the Open edX Docker image.

When required, .po files were manually patched to fix compilation issues.

Requirements

Configuration

You will need a Transifex API token to download new translation strings. First, obtain a token in your Transifex account: https://www.transifex.com/user/settings/api/

Then, add the token to the transifexrc file in this repository:

[https://www.transifex.com]
rest_hostname = https://rest.api.transifex.com
token = your-token

This configuration file will automatically be bind-mounted in the Docker container at runtime.

Usage

If you are feeling really confident, you can try to update translations in one go:

make all

Note that you will need a Transifex API token to download translations.

It is quite likely that the downloaded transifex files will contain errors. After downloading the translation files (make download), you will then have to detect the errors by running:

make validate

You will then have to fix the errors manually in each file. It is recommended to also fix them in Transifex.

After all errors have been fixed, you may resume the processing:

make compile

License

This code and all translation files are licensed under the terms of the AGPL.

openedx-i18n's People

Contributors

codewithemad avatar e0d avatar feanil avatar jmbowman avatar omarithawi avatar regisb avatar sarina avatar stvstnfrd avatar timmc-edx avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

openedx-i18n's Issues

How to modify Django.po

hello regisb!
Sometimes, I need to modify the contents of a file, such as djang.po, but i didn't find the way.
Can you give some advice to solve this problem?
thank you!
And sorry for my terrible English.

Add Portuguese Brazilian to suported Langs

Hello!
Could you add support for Portuguese language Brazil (pt-br) to get latest strings from transifex?

These can include .js files translation too?

thanks in advance

Farsi

Plz add Farsi /persian to the supported languages .

Update po and mo in sv language

Hey would I be possible to update the po and mo in Swedish (sv) lang with the latest strings I have translated from trans?
Ive tried to do the steps in the readme but only get this below!
Thanks in advance

emilorberg@AirsomtlhorEmil openedx-i18n % make download
docker run --rm -it -v /Users/emilorberg/Downloads/openedx-i18n/edx-platform/locale/:/openedx/edx-platform/conf/locale/ -v /Users/emilorberg/Downloads/openedx-i18n/transifexrc:/openedx/.transifexrc openedx-i18n i18n_tool transifex --config=conf/locale/config-extra.yaml pull
Pulling conf/locale/config.yaml:locales from Transifex...

# Resource o:open-edx:p:edx-platform:r:django-partial
 SUCCESS  Project 'edx-platform' fetched                                                                                                                     
Downloading translation files
 SUCCESS  Resource django-partial fetched                                                                                                                    
 SUCCESS  Target languages fetched                                                                                                                           
 WARNING  Skipping download translation for resource 'o:open-edx:p:edx-platform:r:django-partial - sv'                                                       

# Resource o:open-edx:p:edx-platform:r:djangojs-studio
 SUCCESS  Project 'edx-platform' fetched                                                                                                                     
Downloading translation files
 SUCCESS  Resource djangojs-studio fetched                                                                                                                   
 SUCCESS  Target languages fetched                                                                                                                           
 WARNING  Skipping download translation for resource 'o:open-edx:p:edx-platform:r:djangojs-studio - sv'                                                      

# Resource o:open-edx:p:edx-platform:r:wiki
 SUCCESS  Project 'edx-platform' fetched                                                                                                                     
Downloading translation files
 SUCCESS  Resource wiki fetched                                                                                                                              
 SUCCESS  Target languages fetched                                                                                                                           
 WARNING  Skipping download translation for resource 'o:open-edx:p:edx-platform:r:wiki - sv'                                                                 

# Resource o:open-edx:p:open-edx-releases:r:release-olive
 SUCCESS  Project 'open-edx-releases' fetched                                                                                                                
Downloading translation files
 SUCCESS  Resource release-olive fetched                                                                                                                     
 WARNING  User defined language 'sv' doesn't belong to project 'o:open-edx:p:open-edx-releases'                                                              
  ERROR   No target languages found                                                                                                                          

# Resource o:open-edx:p:edx-platform:r:mako-studio
 SUCCESS  Project 'edx-platform' fetched                                                                                                                     
Downloading translation files
 SUCCESS  Resource mako-studio fetched                                                                                                                       
 SUCCESS  Target languages fetched                                                                                                                           
 WARNING  Skipping download translation for resource 'o:open-edx:p:edx-platform:r:mako-studio - sv'                                                          

# Resource o:open-edx:p:edx-platform:r:underscore
 SUCCESS  Project 'edx-platform' fetched                                                                                                                     
Downloading translation files
 SUCCESS  Resource underscore fetched                                                                                                                        
 SUCCESS  Target languages fetched                                                                                                                           
 WARNING  Skipping download translation for resource 'o:open-edx:p:edx-platform:r:underscore - sv'                                                           

# Resource o:open-edx:p:edx-platform:r:underscore-studio
 SUCCESS  Project 'edx-platform' fetched                                                                                                                     
Downloading translation files
 SUCCESS  Resource underscore-studio fetched                                                                                                                 
 SUCCESS  Target languages fetched                                                                                                                           
 WARNING  Skipping download translation for resource 'o:open-edx:p:edx-platform:r:underscore-studio - sv'                                                    

# Resource o:open-edx:p:edx-platform:r:django-studio
 SUCCESS  Project 'edx-platform' fetched                                                                                                                     
Downloading translation files
 SUCCESS  Resource django-studio fetched                                                                                                                     
 SUCCESS  Target languages fetched                                                                                                                           
 WARNING  Skipping download translation for resource 'o:open-edx:p:edx-platform:r:django-studio - sv'                                                        

# Resource o:open-edx:p:edx-platform:r:djangojs-account-settings-view
 SUCCESS  Project 'edx-platform' fetched                                                                                                                     
Downloading translation files
 SUCCESS  Resource djangojs-account-settings-view fetched                                                                                                    
 SUCCESS  Target languages fetched                                                                                                                           
 WARNING  Skipping download translation for resource 'o:open-edx:p:edx-platform:r:djangojs-account-settings-view - sv'                                       

# Resource o:open-edx:p:edx-platform:r:djangojs-partial
 SUCCESS  Project 'edx-platform' fetched                                                                                                                     
Downloading translation files
 SUCCESS  Resource djangojs-partial fetched                                                                                                                  
 SUCCESS  Target languages fetched                                                                                                                           
 WARNING  Skipping download translation for resource 'o:open-edx:p:edx-platform:r:djangojs-partial - sv'                                                     

# Resource o:open-edx:p:edx-platform:r:edx_proctoring_proctortrack
 SUCCESS  Project 'edx-platform' fetched                                                                                                                     
Downloading translation files
 SUCCESS  Resource edx_proctoring_proctortrack fetched                                                                                                       
 SUCCESS  Target languages fetched                                                                                                                           
 WARNING  Skipping download translation for resource 'o:open-edx:p:edx-platform:r:edx_proctoring_proctortrack - sv'                                          

# Resource o:open-edx:p:edx-platform:r:mako
 SUCCESS  Project 'edx-platform' fetched                                                                                                                     
Downloading translation files
 SUCCESS  Resource mako fetched                                                                                                                              
 SUCCESS  Target languages fetched                                                                                                                           
 WARNING  Skipping download translation for resource 'o:open-edx:p:edx-platform:r:mako - sv'                                                                 

# Resource o:open-edx:p:open-edx-releases:r:release-olive-js
 SUCCESS  Project 'open-edx-releases' fetched                                                                                                                
Downloading translation files
 SUCCESS  Resource release-olive-js fetched                                                                                                                  
 WARNING  User defined language 'sv' doesn't belong to project 'o:open-edx:p:open-edx-releases'                                                              
  ERROR   No target languages found

Persian Language Support

Hi everyone
our translation team at edSpirit did one hell of a job and translated the entire Persian Language (fa_IR). the language state is 100% translated and reviewed.
I've added fa_IR code to the locales list in the config-extra.yaml and django.po, django.mo, djangojs.po, and djangojs.mo files in the edx-platform/locale/fa_IR/LC_MESSAGES/ directory.
you can find it here, in this PR.

New Languages

@regisb I just noticed that Italian, Arabic, and Portuguese Languages are also in really good shape.

Arabic: 84.31% reviewed 98.18% translated
Italian: 99.22% reviewed 99.35% translated
Portuguese 88.07% reviewed 97.63% translated
I added them in this PR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.