Skip to content
/ submit50 Public

This is submit50, CS50's command-line tool for submitting problems.

License

Notifications You must be signed in to change notification settings

cs50/submit50

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Kareem Zidane
Apr 22, 2019
65a7672 · Apr 22, 2019
Sep 18, 2017
Sep 18, 2017
Jun 29, 2017
Aug 1, 2017
Apr 22, 2019
Jan 17, 2019

Repository files navigation

Build Status

Usage

English

submit50 problem

Spanish

LANGUAGE=es submit50 problem

Internationalizing

Creating PO for language XX

xgettext submit50.py
sed -i -e '1,6d' messages.po
sed -i -e '3,10d' messages.po
sed -i 's/CHARSET/UTF-8/' messages.po
vim messages.po # translate strings to XX
msgfmt messages.po
mkdir -p locale/XX/LC_MESSAGES
mv messages.mo messages.po locale/XX/LC_MESSAGES/

Updating PO for language XX

Source: https://stackoverflow.com/a/7497395

echo "" > messages.po
find . -type f -iname "*.py" | xgettext -j -f -
msgmerge -N locale/XX/LC_MESSAGES/messages.po messages.po > new.po
mv -f new.po messages.po
msgfmt messages.po
mv -f messages.mo messages.po locale/XX/LC_MESSAGES/

Contributing

pip install -e .

TODO

References