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

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

Already on GitHub?Sign in to your account

Merged
mattwang44 merged 10 commits intopython:3.12fromrockleona:tools/mark_file
Nov 30, 2023

Conversation

rockleona
Copy link
Collaborator

@rockleonarockleona commentedNov 14, 2023
edited
Loading

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 :)

@rockleonarockleona marked this pull request as ready for reviewNovember 15, 2023 10:43
Copy link
Collaborator

@mattwang44mattwang44 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"),不過重造一個我們想要的版本也沒關係~

rockleona reacted with eyes emoji
Copy link
Collaborator

@mattwang44mattwang44Nov 15, 2023
edited
Loading

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
CollaboratorAuthor

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
CollaboratorAuthor

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

mattwang44 reacted with thumbs up emoji

@rockleona
Copy link
CollaboratorAuthor

rockleona commentedNov 28, 2023
edited
Loading

記錄一下目前剩餘的 TODO :

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

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
CollaboratorAuthor

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)
ifnotmatch:
continue
match=re.search("(?P<dirname>[^\s`][a-zA-z-]+)/(?P<filename>[a-zA-Z0-9._-]+(.po)?)",title)
ifnotmatch:
continue

Copy link
CollaboratorAuthor

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

mattwang44 reacted with thumbs up emoji
Copy link
Collaborator

@mattwang44mattwang44 left a comment

Choose a reason for hiding this comment

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

LGTM

@mattwang44mattwang44 merged commit44eb265 intopython:3.12Nov 30, 2023
isabellechiu pushed a commit to isabellechiu/python-docs-zh-tw that referenced this pull requestDec 5, 2023
beccalzh pushed a commit to beccalzh/python-docs-zh-tw that referenced this pull requestSep 4, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mattwang44mattwang44mattwang44 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Develop Scripts about Translation Progress
2 participants
@rockleona@mattwang44

[8]ページ先頭

©2009-2025 Movatter.jp