GitXplorerGitXplorer
c

submit50

public
404 stars
915 forks
8 issues

Commits

List of commits on branch main.
Unverified
8ef82763a50fb5130e3d3c2c919832cd18f591a2

auto-accept honesty question when in R studio

rrongxin-liu committed 3 months ago
Unverified
146cebcb9e28cebaca8a9ade5b085fb77090e685

updated actions/github-script to version v7

rrongxin-liu committed 5 months ago
Unverified
bc515553799594e93328bad1a22cf0e587f536ec

updated workflow actions

rrongxin-liu committed 7 months ago
Unverified
5d4985b05117f8d4d4fe6ef562440327d9602ce1

handle non UTF-8 characters

rrongxin-liu committed 8 months ago
Verified
b20546a162d8b74deba056e5a19ef87697df61a9

Merge pull request #339 from cs50/rongxin-patch-1

rrongxin-liu committed 10 months ago
Unverified
d550e3d59cc3596d216c6153ec846438138e991d

alphabetized imports

rrongxin-liu committed 10 months 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>.