diff --git a/appimage.yml b/appimage.yml index afe8be6..38d594c 100644 --- a/appimage.yml +++ b/appimage.yml @@ -15,9 +15,6 @@ script: - cp -rf ../../build/usr/* usr/ - cp usr/share/icons/io.github.coslyk.bingle.png . - cp usr/share/applications/io.github.coslyk.bingle.desktop . - - cd usr/share/locale - - ln -s zh-CN zh_CN - - cd ../../.. - rm -rf usr/share/man - rm -rf usr/share/doc diff --git a/po/LINGUAS b/po/LINGUAS index a1532d8..2c28678 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -1 +1 @@ -zh-CN \ No newline at end of file +zh_CN \ No newline at end of file diff --git a/po/io.github.coslyk.bingle.pot b/po/io.github.coslyk.bingle.pot index ad4f931..65aae44 100644 --- a/po/io.github.coslyk.bingle.pot +++ b/po/io.github.coslyk.bingle.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: io.github.coslyk.bingle\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-07-25 18:32+0200\n" +"POT-Creation-Date: 2020-07-26 14:47+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,14 +38,10 @@ msgstr "" msgid "Save" msgstr "" -#: src/ImageViewer.vala:43 src/ImageViewer.vala:50 +#: src/ImageViewer.vala:43 src/ImageViewer.vala:50 src/ImageViewer.vala:117 msgid " - saved" msgstr "" -#: src/ImageViewer.vala:117 -msgid "- saved" -msgstr "" - #: src/MainWindow.vala:28 msgid "Online" msgstr "" diff --git a/po/zh-CN.mo b/po/zh-CN.mo deleted file mode 100644 index 210c006..0000000 Binary files a/po/zh-CN.mo and /dev/null differ diff --git a/po/zh_CN.mo b/po/zh_CN.mo new file mode 100644 index 0000000..425c644 Binary files /dev/null and b/po/zh_CN.mo differ diff --git a/po/zh-CN.po b/po/zh_CN.po similarity index 78% rename from po/zh-CN.po rename to po/zh_CN.po index 3b28a03..8b0ce99 100644 --- a/po/zh-CN.po +++ b/po/zh_CN.po @@ -1,4 +1,4 @@ -# Language zh-CN translations for io.github.coslyk.bingle package. +# Chinese translations for io.github.coslyk.bingle package. # Copyright (C) 2020 THE io.github.coslyk.bingle'S COPYRIGHT HOLDER # This file is distributed under the same license as the io.github.coslyk.bingle package. # Automatically generated, 2020. @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: io.github.coslyk.bingle\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-07-25 18:32+0200\n" -"PO-Revision-Date: 2020-07-25 18:32+0200\n" +"POT-Creation-Date: 2020-07-26 14:47+0200\n" +"PO-Revision-Date: 2020-07-26 14:48+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: zh_CN\n" @@ -38,14 +38,10 @@ msgstr "使用" msgid "Save" msgstr "保存" -#: src/ImageViewer.vala:43 src/ImageViewer.vala:50 +#: src/ImageViewer.vala:43 src/ImageViewer.vala:50 src/ImageViewer.vala:117 msgid " - saved" msgstr " - 已保存" -#: src/ImageViewer.vala:117 -msgid "- saved" -msgstr "- 已保存" - #: src/MainWindow.vala:28 msgid "Online" msgstr "在线" diff --git a/src/ImageViewer.vala b/src/ImageViewer.vala index 66ff2a5..bb12aae 100644 --- a/src/ImageViewer.vala +++ b/src/ImageViewer.vala @@ -114,7 +114,7 @@ namespace Bingle { // Set subtitle int img_width = _full_pixbuf.width; int img_height = _full_pixbuf.height; - headerbar.subtitle = @"$(img_width)x$(img_height)" + _("- saved"); + headerbar.subtitle = @"$(img_width)x$(img_height)" + _(" - saved"); } catch (Error e) { warning ("%s\n", e.message);