GitXplorerGitXplorer
c

submit50

public
404 stars
915 forks
8 issues

Commits

List of commits on branch main.
Unverified
1487a9205ef9aca5b924fbf89f1de3a1b731f452

stringify file path

rrongxin-liu committed 10 months ago
Unverified
2d4f7dd6dc73732df6599ea44bd4c3980e8a79cc

required packaging

rrongxin-liu committed 10 months ago
Unverified
ef9b05602bc6534d94615ab62697c910f931cc43

replace pkg_resources with importlib.metadata for Python 3.12, require python>=3.8

rrongxin-liu committed 10 months ago
Unverified
3befc8f1cf4a168ea5043baf73b140fa9a6dac7f

install setuptools

rrongxin-liu committed a year ago
Unverified
1dd4a89f959e22b753e9d4c08263d9b27e69b3d8

added long description

rrongxin-liu committed 2 years ago
Unverified
6de70c7df56709c030ec791e32f8fae3ef62c867

use actions/setup-python@v4, use python 3.10

rrongxin-liu committed 2 years ago

README

The README file for this repository.

Usage

English

submit50 problem

Spanish

LANGUAGE=es submit50 problem

Internationalizing

Adding a new language

  1. First, ensure that babel is installed and that submit50 is installed in development mode:

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

     python setup.py extract_messages
    
  3. 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.)

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

  5. Finally, compile the new translations:

     python setup.py compile_catalog
    

    and test them:

     LANGUAGE=<LANG> submit50 <PROBLEM>
    

Updating an existing language

Follow the steps described in the above section, but instead of running python setup.py init_catalog -l <LANG>, run python setup.py update_catalog -l <LANG>.