Spyder: [Question] Add new locale

Created on 26 Apr 2017  路  7Comments  路  Source: spyder-ide/spyder

  • Spyder Version: 3.1.3
    Hello, I want to translate/add a new locale (Vietnamese) and cannot find any instruction to do that? Could anyone point me to somewhere to start?

Thank you.

Question

Most helpful comment

@tienhv,

  • You should learn the common github developping workflow described in https://github.com/spyder-ide/spyder/wiki/Dev%3A-Github-Workflow at first.
  • Add your language entry to spyder/config/base as @rlaverde described.
  • Generate po files from locale/*.pot by gettext tools(msginit, msgmerge etc.) in proper directories.
  • Edit po files and make mo files by poedit (or other tools).
  • comit, push, and pull request.

All 7 comments

Spyder use .po files for managing translations https://github.com/spyder-ide/spyder/tree/master/spyder/locale

Normally you will use a program like poedit, for generating po and mo files for the new language.

You also need to add the new language in spyder/config/base

@rlaverde could we take this opportunity to make some instructions with screnshots and a bit of code and links to programs needed?

@rlaverde could we take this opportunity to make some instructions with screnshots and a bit of code and links to programs needed?

in the wiki? https://github.com/spyder-ide/spyder/wiki/Contributing-to-Spyder#translating-spyder-gb-fr-es

I saw an issue about using https://www.transifex.com/ #2365 could we try it again? I think that It's relevant again because Spyder is getting new translations (Hungarian, Simple Chinese, maybe Vietnamese)

I started looking at transifex but never got around it... so I dont know. You want to give it try again?

@rlaverde if you have some time to make a simplified tutorial that would be great, but using transifex is not a priority right now, so defer that effort please

@tienhv,

  • You should learn the common github developping workflow described in https://github.com/spyder-ide/spyder/wiki/Dev%3A-Github-Workflow at first.
  • Add your language entry to spyder/config/base as @rlaverde described.
  • Generate po files from locale/*.pot by gettext tools(msginit, msgmerge etc.) in proper directories.
  • Edit po files and make mo files by poedit (or other tools).
  • comit, push, and pull request.

Thanks for detailed explanation @sohnishi!!

Was this page helpful?
0 / 5 - 0 ratings