Skip to content

Commit

Permalink
Update Chinese Translates
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Jun 15, 2021
1 parent d21e468 commit 4794632
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-macast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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"
Expand All @@ -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/[email protected]
if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
Expand Down
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2
0.3
37 changes: 33 additions & 4 deletions i18n/zh_CN/LC_MESSAGES/macast.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 "退出"

0 comments on commit 4794632

Please sign in to comment.