Skip to content

v3.2.2 - #405

Open
rongxin-liu wants to merge 14 commits into
mainfrom
develop
Open

v3.2.2#405
rongxin-liu wants to merge 14 commits into
mainfrom
develop

Conversation

@rongxin-liu

@rongxin-liurongxin-liu commented Aug 7, 2025

Copy link
Copy Markdown
Contributor
  • International Language Support

CopilotAI review requested due to automatic review settings January 22, 2026 07:22

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Vietnamese language support and introduces new authentication options (--https and --ssh) for submit50 version 3.2.2.

Changes:

  • Added Vietnamese translation files (.po and .mo) with translations for existing user-facing messages
  • Added --https and --ssh command-line arguments to allow users to force specific authentication methods
  • Updated version from 3.2.1 to 3.2.2
  • Modernized GitHub Actions workflow syntax

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 7 comments.

Show a summary per file
FileDescription
submit50/locale/vi/LC_MESSAGES/submit50.poVietnamese translation file with translations for user-facing messages; contains some incomplete translations
submit50/locale/vi/LC_MESSAGES/submit50.moCompiled Vietnamese translation file (binary format)
submit50/main.pyAdded LOGGER constant, --https/--ssh arguments, and authentication method selection logic
setup.pyVersion bump from 3.2.1 to 3.2.2
.github/workflows/main.ymlUpdated deprecated GitHub Actions syntax for setting output variables

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadsubmit50/locale/vi/LC_MESSAGES/submit50.po Outdated
Comment threadsubmit50/locale/vi/LC_MESSAGES/submit50.po Outdated
Comment threadsubmit50/locale/vi/LC_MESSAGES/submit50.po Outdated
Comment threadsubmit50/locale/vi/LC_MESSAGES/submit50.po
Comment threadsubmit50/locale/vi/LC_MESSAGES/submit50.po
Comment threadsubmit50/__main__.py
Comment threadsubmit50/__main__.py Outdated
lib50.push() only accepts auth_method from 3.1.2 onward, but the pin
admitted 3.0.x-3.1.1, which made every submission fail with a TypeError
for users whose lib50 pip had no reason to upgrade.
Also: raise an actionable error when a forced --ssh login fails (lib50
raises a bare ConnectionError there), skip the localized yes-regex under
RSTUDIO instead of matching a hard-coded "yes" against it, surface the
both-flags warning via cprint like other warnings, and fix the missing
space in the submit.cs50.io error text.
Translate the --https/--ssh help, --log-level help, slug help, the
combined-flag warning and the new SSH failure message; restore the
missing spaces where multi-line msgstr fragments were joined; accept
ASCII "co" as an affirmative; distinguish "User aborted submission."
from "Submission cancelled."; recompile the committed .mo.
CI previously only ran `submit50 --help`, so a lib50 API mismatch could
ship to PyPI unnoticed. The new tests wire each --https/--ssh flag
combination through main() to lib50.push, check the forced-SSH error
path, and verify every _() string is translated and the committed .mo
matches its .po. The workflow runs them against both the newest lib50
and the floor declared in setup.py.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@rongxin-liu@bxngyn@ivanharvard