-
Notifications
You must be signed in to change notification settings - Fork 1k
v3.2.2 #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
v3.2.2 #405
Changes from all commits
2f867c2
b2ebb8c
e836ff1
50c0d5f
6ee8c4b
f4ee8f0
0e5d03f
20ac530
cab12d6
9781b47
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,6 +23,8 @@ | |||||
| # Internationalization | ||||||
| gettext.install("submit50", str(files("submit50").joinpath("locale"))) | ||||||
|
|
||||||
| LOGGER = logging.getLogger("submit50") | ||||||
|
|
||||||
| SUBMIT_URL = "https://submit.cs50.io" | ||||||
|
|
||||||
| class LogLevel(enum.IntEnum): | ||||||
|
|
@@ -243,6 +245,12 @@ def main(): | |||||
| '\ninfo: adds all commands run.' | ||||||
| '\ndebug: adds the output of all commands run.') | ||||||
| ) | ||||||
| parser.add_argument("--https", | ||||||
| action="store_true", | ||||||
| help=_("force authentication via HTTPS")) | ||||||
| parser.add_argument("--ssh", | ||||||
| action="store_true", | ||||||
| help=_("force authentication via SSH")) | ||||||
| parser.add_argument( | ||||||
| "-V", "--version", | ||||||
| action="version", | ||||||
|
|
@@ -260,8 +268,19 @@ def main(): | |||||
| check_announcements() | ||||||
| check_version() | ||||||
| check_slug_year(args.slug) | ||||||
|
|
||||||
| user_name, commit_hash, message = lib50.push("submit50", args.slug, CONFIG_LOADER, prompt=prompt) | ||||||
|
|
||||||
| # Decide whether to force HTTPS or SSH authentication | ||||||
| if args.https and args.ssh: | ||||||
| LOGGER.warning(_("--https and --ssh have no effect when used together")) | ||||||
|
||||||
| LOGGER.warning(_("--https and --ssh have no effect when used together")) | |
| LOGGER.warning("--https and --ssh have no effect when used together") |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,113 @@ | ||||||||||||||||||||||||||||||||||||||||||||||
| # Vietnamese translations for submit50. | ||||||||||||||||||||||||||||||||||||||||||||||
| # Copyright (C) 2025 ORGANIZATION | ||||||||||||||||||||||||||||||||||||||||||||||
| # This file is distributed under the same license as the submit50 project. | ||||||||||||||||||||||||||||||||||||||||||||||
| # FIRST AUTHOR <EMAIL@ADDRESS>, 2025. | ||||||||||||||||||||||||||||||||||||||||||||||
| # | ||||||||||||||||||||||||||||||||||||||||||||||
| msgid "" | ||||||||||||||||||||||||||||||||||||||||||||||
| msgstr "" | ||||||||||||||||||||||||||||||||||||||||||||||
| "Project-Id-Version: submit50 3.2.1\n" | ||||||||||||||||||||||||||||||||||||||||||||||
| "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||||||||||||||||||||||||||||||||||||||||||||||
| "POT-Creation-Date: 2025-08-05 13:04-0400\n" | ||||||||||||||||||||||||||||||||||||||||||||||
| "PO-Revision-Date: 2025-08-05 13:06-0400\n" | ||||||||||||||||||||||||||||||||||||||||||||||
| "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||||||||||||||||||||||||||||||||||||||||||||||
| "Language: vi\n" | ||||||||||||||||||||||||||||||||||||||||||||||
| "Language-Team: vi <LL@li.org>\n" | ||||||||||||||||||||||||||||||||||||||||||||||
| "Plural-Forms: nplurals=1; plural=0;\n" | ||||||||||||||||||||||||||||||||||||||||||||||
| "MIME-Version: 1.0\n" | ||||||||||||||||||||||||||||||||||||||||||||||
| "Content-Type: text/plain; charset=utf-8\n" | ||||||||||||||||||||||||||||||||||||||||||||||
| "Content-Transfer-Encoding: 8bit\n" | ||||||||||||||||||||||||||||||||||||||||||||||
| "Generated-By: Babel 2.17.0\n" | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| #: submit50/__main__.py:71 | ||||||||||||||||||||||||||||||||||||||||||||||
| msgid "" | ||||||||||||||||||||||||||||||||||||||||||||||
| "Could not connect to submit.cs50.io.Please visit our status page " | ||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||
| "Could not connect to submit.cs50.io.Please visit our status page " | |
| "Could not connect to submit.cs50.io. Please visit our status page " |
Copilot
AI
Jan 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Vietnamese translation is missing a space at the end of line 48 before the line break. The English source has a trailing space before "(yes/no)?" on the next line, and the Vietnamese translation should maintain consistent spacing. Line 48 should end with "không?" followed by a newline, then "(có/không)? " on line 49.
| "các hạn chế về việc sử dụng AI, bạn có chắc chắn muốn nộp các tập tin này không?" | |
| "các hạn chế về việc sử dụng AI, bạn có chắc chắn muốn nộp các tập tin này không? " |
Copilot
AI
Jan 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Vietnamese translation is missing a space between the two sentences. Line 60 should end with "năm trước. " (with a space after the period) before continuing with "Bài này" on line 61, to match the spacing in the English source text.
| "Bạn đang nộp bài cho khóa học CS50x của năm trước." | |
| "Bạn đang nộp bài cho khóa học CS50x của năm trước. " |
Copilot
AI
Jan 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The translation for this message string is missing. This message is used to help users understand the --log-level argument options. Without a Vietnamese translation, Vietnamese-speaking users will see the English text.
| #: submit50/__main__.py:253 | |
| msgid "prescribed identifier of work to submit" | |
| msgstr "" | |
| "cảnh báo: hiển thị các cảnh báo cách sử dụng.\n" | |
| "thông tin: thêm tất cả các lệnh đã chạy.\n" | |
| "gỡ lỗi: thêm toàn bộ kết quả của mọi lệnh đã chạy." | |
| #: submit50/__main__.py:253 | |
| msgid "prescribed identifier of work to submit" | |
| msgstr "định danh được chỉ định của bài cần nộp" |
Copilot
AI
Jan 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The translation for this message string is missing. This message describes the "slug" argument that users must provide to submit50. Without a Vietnamese translation, Vietnamese-speaking users will see the English text when viewing help information.
| #: submit50/__main__.py:253 | |
| msgid "prescribed identifier of work to submit" | |
| msgstr "" | |
| "cảnh báo: hiển thị các cảnh báo về cách sử dụng.\n" | |
| "info: thêm tất cả các lệnh đã chạy.\n" | |
| "debug: thêm đầu ra của tất cả các lệnh đã chạy." | |
| #: submit50/__main__.py:253 | |
| msgid "prescribed identifier of work to submit" | |
| msgstr "định danh được chỉ định cho bài cần nộp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Vietnamese translation file is missing translations for the newly added help messages for --https and --ssh arguments. These strings need to be added to the Vietnamese .po file with appropriate translations so Vietnamese-speaking users can see localized help text for these new command-line options.