-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Conversation
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.
其實 potodo 就有提供類似功能(可以嘗試用這個指令 potodo -u "https://api.github.com/repos/python/python-docs-zh-tw/issues"
),不過重造一個我們想要的版本也沒關係~
.scripts/mark_file.sh
Outdated
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.
murmur: 雖然是我先開始的,但我覺得這邊用 shell script 爛透了XDD 有時間可以幫忙想一下有沒有更好的方案
例如 invoke 或加進 makefile 之類的
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.
好啊 我來研究怎麼新增至 makefile 好了
這個可以讓我到下個 pr 再處理嗎? 還是就一步到好XD
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.
再開其他 PR 處理~
感謝 Matt 的建議,我稍後再來進行修正、回答問題😀 |
記錄一下目前剩餘的 TODO :
|
match = re.search("(?P<dirname>[^\s`][a-zA-z-]+)/(?P<filename>[a-zA-Z0-9._-]+(.po)?)", title) | ||
if not match: | ||
continue |
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.
這邊 regex 前段我新增了 [^\s
]`,不然會有 bug
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 |
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.
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.
LGTM
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 :)