forked from cs50/submit50
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
91 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[compile_catalog] | ||
domain = submit50 | ||
directory = submit50/locale/ | ||
|
||
[extract_messages] | ||
keywords = _ gettext ngettext | ||
width = 100 | ||
output_file = submit50/locale/submit50.pot | ||
|
||
[update_catalog] | ||
input_file = submit50/locale/submit50.pot | ||
domain = submit50 | ||
output_dir = submit50/locale/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
from setuptools import setup | ||
|
||
import glob | ||
import os | ||
import subprocess | ||
|
||
def create_mo_files(): | ||
po_pattern = "locale/*/LC_MESSAGES/*.po" | ||
for prefix in glob.glob(po_pattern): | ||
for _,_,files in os.walk(prefix): | ||
for file in files: | ||
po_file = Path(prefix) / po_file | ||
mo_file = po_file.parent / po_file.stem + ".mo" | ||
subprocess.call(["msgfmt", "-o", mo_file, po_file]) | ||
|
||
create_mo_files() | ||
|
||
setup( | ||
author="CS50", | ||
author_email="[email protected]", | ||
|
@@ -24,16 +9,17 @@ def create_mo_files(): | |
"Topic :: Education", | ||
"Topic :: Utilities" | ||
], | ||
description="This is submit50, with which you can submit solutions to \ | ||
problems for CS50.", | ||
install_requires=["requests", "termcolor", "push50"], | ||
cmdclass=cmdclass, | ||
message_extractors = { | ||
'submit50': [('**.py', 'python', None),], | ||
}, | ||
description="This is submit50, CS50's internal library for using GitHub as data storage.", | ||
install_requires=["babel", "push50", "requests", "termcolor"], | ||
keywords=["submit", "submit50"], | ||
name="submit50", | ||
python_requires=">= 3.6", | ||
packages=["submit50"], | ||
entry_points={ | ||
"console_scripts": ["submit50=submit50.__main__:main"] | ||
}, | ||
url="https://github.com/cs50/submit50", | ||
version="3.0.0", | ||
include_package_data=True, | ||
version="1.0.0", | ||
include_package_data=True | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Translations template for submit50. | ||
# Copyright (C) 2018 ORGANIZATION | ||
# This file is distributed under the same license as the submit50 project. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2018. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: submit50 1.0.0\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||
"POT-Creation-Date: 2018-07-13 12:31-0400\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: Babel 2.6.0\n" | ||
|
||
#: submit50/__main__.py:40 | ||
msgid "You have an unknown version of submit50. Email [email protected]!" | ||
msgstr "" | ||
|
||
#: submit50/__main__.py:67 | ||
msgid "Files that will be submitted:" | ||
msgstr "" | ||
|
||
#: submit50/__main__.py:71 | ||
msgid "No files in this directory are expected for submission." | ||
msgstr "" | ||
|
||
#: submit50/__main__.py:75 | ||
msgid "Files that won't be submitted:" | ||
msgstr "" | ||
|
||
#: submit50/__main__.py:82 | ||
msgid "" | ||
"Keeping in mind the course's policy on academic honesty, are you sure you want to submit these " | ||
"files (yes/no)? " | ||
msgstr "" | ||
|
||
#: submit50/__main__.py:99 | ||
msgid "Sorry, something's wrong! Let [email protected] know!" | ||
msgstr "" | ||
|
||
#: submit50/__main__.py:104 | ||
msgid "Submission cancelled." | ||
msgstr "" | ||
|
||
#: submit50/__main__.py:110 | ||
msgid "logout of submit50" | ||
msgstr "" | ||
|
||
#: submit50/__main__.py:117 | ||
msgid "failed to logout" | ||
msgstr "" | ||
|
||
#: submit50/__main__.py:119 | ||
msgid "logged out successfully" | ||
msgstr "" | ||
|
||
#: submit50/__main__.py:130 | ||
msgid "show commands being executed" | ||
msgstr "" | ||
|
||
#: submit50/__main__.py:132 | ||
msgid "prescribed identifier of work to submit" | ||
msgstr "" | ||
|