From 4794632dd129272d7990a6c5d236192a29a5798f Mon Sep 17 00:00:00 2001 From: xfangfang <2553041586@qq.com> Date: Tue, 15 Jun 2021 17:25:40 +0800 Subject: [PATCH] Update Chinese Translates --- .github/workflows/build-macast.yaml | 8 +++---- .version | 2 +- i18n/zh_CN/LC_MESSAGES/macast.po | 37 +++++++++++++++++++++++++---- 3 files changed, 38 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-macast.yaml b/.github/workflows/build-macast.yaml index b36a3d96e..7ea74949f 100644 --- a/.github/workflows/build-macast.yaml +++ b/.github/workflows/build-macast.yaml @@ -43,6 +43,7 @@ jobs: # pip3 install setuptools==44.0.0 wget https://laboratory.stolendata.net/~djinn/mpv_osx/mpv-latest.tar.gz mkdir -p bin && tar --strip-components 2 -C bin -xzvf mpv-latest.tar.gz mpv.app/Contents/MacOS + msgfmt -o i18n/zh_CN/LC_MESSAGES/macast.mo i18n/zh_CN/LC_MESSAGES/macast.po python3 setup.py py2app cp -R bin dist/Macast.app/Contents/Resources/ export VERSION=`cat .version` @@ -58,10 +59,9 @@ jobs: name: ${{ env.DIST }} path: dist/${{ env.DIST }} - - name: Generate release tag + - name: Generate release body id: tag run: | - echo "::set-output name=release_tag::Macast_${VERSION}" touch release.txt echo "auto compile" >> release.txt echo "::set-output name=status::success" @@ -72,10 +72,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ steps.tag.outputs.release_tag }} + tag_name: ${{ env.VERSION }} body_path: release.txt files: dist/${{ env.DIST }} - + - name: SSH connection to Actions uses: P3TERX/ssh2actions@v1.0.0 if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh') diff --git a/.version b/.version index 3b04cfb60..be5863417 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.2 +0.3 diff --git a/i18n/zh_CN/LC_MESSAGES/macast.po b/i18n/zh_CN/LC_MESSAGES/macast.po index c40a87a72..533ada4de 100644 --- a/i18n/zh_CN/LC_MESSAGES/macast.po +++ b/i18n/zh_CN/LC_MESSAGES/macast.po @@ -5,18 +5,47 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2021-06-12 04:08+0800\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-06-15 16:36+0800\n" "PO-Revision-Date: 2021-06-12 04:23+0800\n" +"Last-Translator: \n" "Language-Team: \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: pygettext.py 1.5\n" "X-Generator: Poedit 3.0\n" -"Last-Translator: \n" "Plural-Forms: nplurals=1; plural=0;\n" -"Language: zh_CN\n" -#: Macast.py:109 +#: Macast.py:128 Macast.py:180 +msgid "pause" +msgstr "暂停" + +#: Macast.py:131 +msgid "Setting" +msgstr "设置" + +#: Macast.py:135 +msgid "Check for updates" +msgstr "检查更新" + +#: Macast.py:136 +msgid "About" +msgstr "关于" + +#: Macast.py:164 +msgid "New Update {}" +msgstr "有新版本 {}" + +#: Macast.py:168 +msgid "You're up to date." +msgstr "现在已经是最新版" + +#: Macast.py:177 +msgid "start" +msgstr "开始" + +#: Macast.py:183 msgid "quit" msgstr "退出"