Skip to content

Commit

Permalink
Merge pull request #15 from deefrawley/tonneupdate
Browse files Browse the repository at this point in the history
Update and expand ton measurement. Update translations. Fixes #14
  • Loading branch information
deefrawley authored Nov 7, 2022
2 parents 2597fde + ebe48a1 commit f8b4c85
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 37 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Name": "General Converter",
"Description": "General weights and measures converter",
"Author": "deefrawley",
"Version": "1.1.3",
"Version": "1.1.4",
"Language": "python",
"Website": "https://github.com/deefrawley/Flow.Launcher.Plugin.GenConvert",
"IcoPath": "assets/favicon.ico",
Expand Down
Binary file modified plugin/translations/en/LC_MESSAGES/messages.mo
Binary file not shown.
53 changes: 37 additions & 16 deletions plugin/translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 1.1.0\n"
"Project-Id-Version: 1.1.3\n"
"Report-Msgid-Bugs-To: deefrawley@gmail.com\n"
"POT-Creation-Date: 2021-09-09 13:07+1000\n"
"POT-Creation-Date: 2022-11-08 09:22+1100\n"
"PO-Revision-Date: 2020-12-13 20:26+1100\n"
"Last-Translator: deefrawley <deefrawley@gmail.com>\n"
"Language: en\n"
Expand All @@ -18,31 +18,31 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"

#: plugin/ui.py:46 plugin/ui.py:100
#: plugin/ui.py:48 plugin/ui.py:108
msgid "General Converter"
msgstr "General Converter"

#: plugin/ui.py:47 plugin/ui.py:101
#: plugin/ui.py:49 plugin/ui.py:109
msgid "<Hotkey> <Amount> <Source unit> <Destination unit>"
msgstr "<Hotkey> <Amount> <Source unit> <Destination unit>"

#: plugin/ui.py:65
#: plugin/ui.py:67
msgid "Available conversions"
msgstr "Available conversions"

#: plugin/ui.py:79
#: plugin/ui.py:81
msgid "{}"
msgstr "{}"

#: plugin/ui.py:80
#: plugin/ui.py:82
msgid "Choose two different units"
msgstr "Choose two different units"

#: plugin/ui.py:85 plugin/ui.py:96
#: plugin/ui.py:87 plugin/ui.py:104
msgid "Error - {}"
msgstr "Error - {}"

#: plugin/ui.py:86
#: plugin/ui.py:88
msgid "Check documentation for accepted units"
msgstr "Check documentation for accepted units"

Expand Down Expand Up @@ -354,27 +354,48 @@ msgstr "ounces"
msgid "stone"
msgstr "stone"

#: plugin/units.py:168 plugin/units.py:169
msgid "ton"
msgstr "ton"
#: plugin/units.py:168
msgid "tonne"
msgstr "tonne"

#: plugin/units.py:169
msgid "tonnes"
msgstr "tonnes"

#: plugin/units.py:175
msgid "US ton"
msgstr "US ton"

#: plugin/units.py:176
msgid "US tons"
msgstr "US tons"

#: plugin/units.py:182
msgid "Imperial ton"
msgstr "Imperial ton"

#: plugin/units.py:183
msgid "Imperial tons"
msgstr "Imperial tons"

#: plugin/units.py:190
msgid "Celsius"
msgstr "Celsius"

#: plugin/units.py:178
#: plugin/units.py:192
msgid "Farenheit"
msgstr "Farenheit"

#: plugin/units.py:179
#: plugin/units.py:193
msgid "Kelvin"
msgstr "Kelvin"

#: plugin/utils.py:84
#: plugin/utils.py:82
msgid "To and from unit is the same"
msgstr "To and from unit is the same"

#: plugin/utils.py:112
#: plugin/utils.py:110
msgid "Problem converting {} and {}"
msgstr "Problem converting {} and {}"


Binary file modified plugin/translations/zh/LC_MESSAGES/messages.mo
Binary file not shown.
53 changes: 37 additions & 16 deletions plugin/translations/zh/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0.2\n"
"Project-Id-Version: 1.1.3\n"
"Report-Msgid-Bugs-To: deefrawley@gmail.com\n"
"POT-Creation-Date: 2021-09-09 13:07+1000\n"
"POT-Creation-Date: 2022-11-08 09:22+1100\n"
"PO-Revision-Date: 2021-06-07 15:16+1000\n"
"Last-Translator: deefrawley <deefrawley@gmail.com>\n"
"Language: zh\n"
Expand All @@ -18,31 +18,31 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"

#: plugin/ui.py:46 plugin/ui.py:100
#: plugin/ui.py:48 plugin/ui.py:108
msgid "General Converter"
msgstr "通用单位换算器"

#: plugin/ui.py:47 plugin/ui.py:101
#: plugin/ui.py:49 plugin/ui.py:109
msgid "<Hotkey> <Amount> <Source unit> <Destination unit>"
msgstr "<热键> <量> <源单元> <目的地单位>"

#: plugin/ui.py:65
#: plugin/ui.py:67
msgid "Available conversions"
msgstr "可用转换"

#: plugin/ui.py:79
#: plugin/ui.py:81
msgid "{}"
msgstr ""

#: plugin/ui.py:80
#: plugin/ui.py:82
msgid "Choose two different units"
msgstr "选择两个不同的单位"

#: plugin/ui.py:85 plugin/ui.py:96
#: plugin/ui.py:87 plugin/ui.py:104
msgid "Error - {}"
msgstr "错误 - {}"

#: plugin/ui.py:86
#: plugin/ui.py:88
msgid "Check documentation for accepted units"
msgstr "检查文档以获取正确的度量单位"

Expand Down Expand Up @@ -354,27 +354,48 @@ msgstr "盎司"
msgid "stone"
msgstr "石头"

#: plugin/units.py:168 plugin/units.py:169
msgid "ton"
msgstr "吨"
#: plugin/units.py:168
msgid "tonne"
msgstr "公吨"

#: plugin/units.py:169
msgid "tonnes"
msgstr "公吨"

#: plugin/units.py:175
msgid "US ton"
msgstr "美吨"

#: plugin/units.py:176
msgid "US tons"
msgstr "美吨"

#: plugin/units.py:182
msgid "Imperial ton"
msgstr "英制吨"

#: plugin/units.py:183
msgid "Imperial tons"
msgstr "英制吨"

#: plugin/units.py:190
msgid "Celsius"
msgstr "摄氏"

#: plugin/units.py:178
#: plugin/units.py:192
msgid "Farenheit"
msgstr "华氏度"

#: plugin/units.py:179
#: plugin/units.py:193
msgid "Kelvin"
msgstr "开尔文"

#: plugin/utils.py:84
#: plugin/utils.py:82
msgid "To and from unit is the same"
msgstr "源单元和目标单元相同"

#: plugin/utils.py:112
#: plugin/utils.py:110
msgid "Problem converting {} and {}"
msgstr "转换问题 {} 和 {}"


22 changes: 18 additions & 4 deletions plugin/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,26 @@
["lb", _("pound"), _("pounds"), "x / 0.002205", "x * 0.002205"],
["oz", _("ounce"), _("ounces"), "x / 0.035274", " 0.035274"],
["st", _("stone"), _("stone"), "x / 0.000157473", "x * 0.000157473"],
[
"t",
_("tonne"),
_("tonnes"),
"x / 0.000001",
"x * 0.000001",
],
[
"ton",
_("ton"),
_("ton"),
"x / 0.000001102310999995",
"x * 0.000001102310999995",
_("US ton"),
_("US tons"),
"x / 0.0000011023109950010196",
"x * 0.0000011023109950010196",
],
[
"tonimp",
_("Imperial ton"),
_("Imperial tons"),
"x / 0.00000098421",
"x * 0.00000098421",
],
],
"Temperature": [
Expand Down

0 comments on commit f8b4c85

Please sign in to comment.