Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add scripts that helps inserting Google-translated content into .po file#378

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
josix merged 7 commits intopython:3.11frommattwang44:googletrans-utils
Mar 1, 2023

Conversation

mattwang44
Copy link
Collaborator

@mattwang44mattwang44 commentedJan 14, 2023
edited
Loading

[WHY]

As a translator, I'd like to have machine-translated content as the base that I can revise, which significantly reduces the translation effort.

[HOW]

Major

  • Add.scripts directory, which is expected to be where all translation toolkits lie in. Poetry is set up here.
  • Implement script that sends all untranslated entries of the target .po file to Google translation, and inserts translated content into the .po file.

One can run the script with:

.scripts/google_translate.sh library/csv.po

Minor

  • Revise the existingfrom_cn.sh script and move it into.scripts.

One can run the script with:

.scripts/from_cn.sh library/csv.po

josix reacted with thumbs up emoji
Copy link
Member

@ezio-melottiezio-melotti left a comment

Choose a reason for hiding this comment

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

Probably out of the scope of this PR, but eventually I think it might be useful to have a separatetranslation-tools repo where to put tools that can be shared by different translation projects.
If the tools are in a separate repo, it is also not necessary to create a hidden dir that is not easily discoverable (using_scripts might be a better option, unless it interferes with something).

josix and mattwang44 reacted with thumbs up emoji
Copy link
Collaborator

@josixjosix left a comment

Choose a reason for hiding this comment

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

I think we could merge it first, and create another PR for making batch procedure.

@josixjosix merged commita975c17 intopython:3.11Mar 1, 2023
@mattwang44mattwang44 deleted the googletrans-utils branchMarch 11, 2024 05:04
beccalzh pushed a commit to beccalzh/python-docs-zh-tw that referenced this pull requestSep 4, 2024
feat: add scripts that helps inserting Google-translated content into .po file
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ezio-melottiezio-melottiezio-melotti left review comments

@josixjosixjosix approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@mattwang44@josix@ezio-melotti

[8]ページ先頭

©2009-2025 Movatter.jp