Added basic i18n

This commit is contained in:
2026-03-10 15:18:34 +08:00
parent 093a8745ac
commit 7d1de5f781
25 changed files with 660 additions and 105 deletions

View File

@@ -0,0 +1,6 @@
package resources
import "embed"
//go:embed */*.json
var FS embed.FS

View File

@@ -0,0 +1,60 @@
#. extracted from ./resources/src/messages.json
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-10 15:02+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Translate Toolkit 3.19.3\n"
#: .DS.KMB.ETA.DEPARTED
msgid "%s (Leaved?)"
msgstr "%s (走左了?)"
#: .DS.KMB.NEAREST_STOPS
msgid "KMB: Showing nearest bus stops under %s"
msgstr "九巴:%s 範圍內車站"
#: .DS.KMB.NO_NEAREST_STOPS
msgid ""
"KMB: Unable to find stations under %s. Listing nearest %d stations instead:"
msgstr "%s 範圍內找不到九巴站,最近 %d 個站為:"
#: .DS.MTR.NEAREST_STOPS
msgid "MTR: Showing nearest bus stops under %s"
msgstr "%s 範圍內港鐵巴士車站"
#: .DS.MTR.NO_NEAREST_STOPS
msgid ""
"MTR Bus: Unable to find stations under %s. Listing nearest %d stations "
"instead:"
msgstr "%s 範圍內找不到港鐵巴士站,最近 %d 個站為:"
#: .DS.MTR.NO_SCHEDULES
msgid "Schedules are empty...perhaps Out of Service Time?"
msgstr "沒有行程(收左工了?)"
#: .NO_RESULTS
msgid "No Results"
msgstr "找不到結果"
#: .UNITS.KM
msgid "%.1f km"
msgstr "%.1f 公里"
#: .UNITS.METER
msgid "%.0f m"
msgstr "%.0f 米"
#: .UNITS.MILE
msgid "%.1f mi"
msgstr "%.1f 英哩"
#: .UNITS.MINUTE
msgid "%.0f min"
msgstr "%.0f 分"

View File

@@ -0,0 +1,61 @@
#. extracted from ./resources/src/messages.json
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-10 15:02+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Translate Toolkit 3.19.3\n"
#: .DS.KMB.ETA.DEPARTED
msgid "%s (Leaved?)"
msgstr ""
#: .DS.KMB.NEAREST_STOPS
msgid "KMB: Showing nearest bus stops under %s"
msgstr ""
#: .DS.KMB.NO_NEAREST_STOPS
msgid ""
"KMB: Unable to find stations under %s. Listing nearest %d stations instead:"
msgstr ""
#: .DS.MTR.NEAREST_STOPS
msgid "MTR: Showing nearest bus stops under %s"
msgstr ""
#: .DS.MTR.NO_NEAREST_STOPS
msgid ""
"MTR Bus: Unable to find stations under %s. Listing nearest %d stations "
"instead:"
msgstr ""
#: .DS.MTR.NO_SCHEDULES
msgid "Schedules are empty...perhaps Out of Service Time?"
msgstr ""
#: .NO_RESULTS
msgid "No Results"
msgstr ""
#: .UNITS.KM
msgid "%.1f km"
msgstr ""
#: .UNITS.METER
msgid "%.0f m"
msgstr ""
#: .UNITS.MILE
msgid "%.1f mi"
msgstr ""
#: .UNITS.MINUTE
msgid "%.0f min"
msgstr ""