check50 icon indicating copy to clipboard operation
check50 copied to clipboard

internationalize

Open dmalan opened this issue 8 years ago • 4 comments

dmalan avatar Jul 22 '17 19:07 dmalan

The infrastructure now exists, however, the translations still need to be done.

cmlsharp avatar Jul 18 '18 15:07 cmlsharp

To expand upon the above, these are the new instructions for adding translations:

  1. mkdir check50/locale

  2. First, ensure that babel is installed and that check50 is installed in development mode:

     pip install babel
     pip install -e .
    
  3. Generate the translation template:

     python setup.py extract_messages
    
  4. Generate the .po file for the desired language:

     python setup.py init_catalog -l <LANG>
    

    where <LANG> is the code of the language you want to translate (e.g., es for Spanish, en for English, etc.)

  5. Then, add the translations to the newly created submit50/locale/<LANG>/LC_MESSAGES/submit50.po

  6. Finally, compile the new translations:

     python setup.py compile_catalog
    

cmlsharp avatar Aug 14 '18 02:08 cmlsharp

Also, we'll want to have travis build the translations just lib50 does: https://github.com/cs50/lib50/blob/6b94953569791f4ab6b896f8b3e2e42ef64a4edc/.travis.yml#L8

cmlsharp avatar Aug 14 '18 02:08 cmlsharp

Any update on this? I am interested to help translate check50 into Indonesian. If ok, I will start according to @crossroads1112 directions.

putradimas avatar Oct 16 '19 18:10 putradimas