Skip to content

Add a Script to List Translate Progress by File and Show the Assignee #706

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

Merged
merged 10 commits into from
Nov 30, 2023

Conversation

rockleona
Copy link
Collaborator

@rockleona rockleona commented Nov 14, 2023

resolve #701

I've add a python code file in .script/mark_file/main.py, and will add a shell script later.

Any suggestion is welcome, and looking forward with any comments :)

@rockleona rockleona marked this pull request as ready for review November 15, 2023 10:43
Copy link
Collaborator

@mattwang44 mattwang44 left a comment

Choose a reason for hiding this comment

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

其實 potodo 就有提供類似功能(可以嘗試用這個指令 potodo -u "https://api.github.com/repos/python/python-docs-zh-tw/issues"),不過重造一個我們想要的版本也沒關係~

Copy link
Collaborator

@mattwang44 mattwang44 Nov 15, 2023

Choose a reason for hiding this comment

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

murmur: 雖然是我先開始的,但我覺得這邊用 shell script 爛透了XDD 有時間可以幫忙想一下有沒有更好的方案
例如 invoke 或加進 makefile 之類的

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

好啊 我來研究怎麼新增至 makefile 好了
這個可以讓我到下個 pr 再處理嗎? 還是就一步到好XD

Copy link
Collaborator

Choose a reason for hiding this comment

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

再開其他 PR 處理~

@rockleona
Copy link
Collaborator Author

感謝 Matt 的建議,我稍後再來進行修正、回答問題😀

@rockleona
Copy link
Collaborator Author

rockleona commented Nov 28, 2023

記錄一下目前剩餘的 TODO :

  1. Integrate Shell Script to Makefile
  2. Apply regex for Better Pattern Matching When Fetching Issue Title

@rockleona rockleona requested a review from mattwang44 November 28, 2023 17:03
Comment on lines +77 to +79
match = re.search("(?P<dirname>[^\s`][a-zA-z-]+)/(?P<filename>[a-zA-Z0-9._-]+(.po)?)", title)
if not match:
continue
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

這邊 regex 前段我新增了 [^\s]`,不然會有 bug

Suggested change
match = re.search("(?P<dirname>[^\s`][a-zA-z-]+)/(?P<filename>[a-zA-Z0-9._-]+(.po)?)", title)
if not match:
continue
match = re.search("(?P<dirname>[^\s`][a-zA-z-]+)/(?P<filename>[a-zA-Z0-9._-]+(.po)?)", title)
if not match:
continue

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Previous would be like this

image

@rockleona rockleona requested a review from mattwang44 November 29, 2023 06:05
Copy link
Collaborator

@mattwang44 mattwang44 left a comment

Choose a reason for hiding this comment

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

LGTM

@mattwang44 mattwang44 merged commit 44eb265 into python:3.12 Nov 30, 2023
isabellechiu pushed a commit to isabellechiu/python-docs-zh-tw that referenced this pull request Dec 5, 2023
beccalzh pushed a commit to beccalzh/python-docs-zh-tw that referenced this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Develop Scripts about Translation Progress
2 participants