From b47bc7f89a34f44135ecc8f55aee65cd42cffb06 Mon Sep 17 00:00:00 2001 From: lakejason0 Date: Thu, 22 Jul 2021 15:37:20 +0800 Subject: [PATCH] Localization --- i18n/en.json | 3 ++- i18n/qqq.json | 3 ++- i18n/zh-hans.json | 3 ++- i18n/zh-hant.json | 3 ++- skin.json | 3 ++- templates/Sidebar.mustache | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 219fc61..8a46e9f 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -8,5 +8,6 @@ "skinname-lakeus": "Lakeus", "lakeus-skin-desc": "A simple skin by [https://github.com/lakejason0 Lakejason0], which is named after a character in their novels", "lakeus.css": "/* All CSS here will be loaded for users of the Lakeus skin */", - "lakeus.js": "/* All JavaScript here will be loaded for users of the Lakeus skin */" + "lakeus.js": "/* All JavaScript here will be loaded for users of the Lakeus skin */", + "lakeus-openmainmenu": "Open main menu" } diff --git a/i18n/qqq.json b/i18n/qqq.json index b69a627..8175b02 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -7,5 +7,6 @@ "skinname-lakeus": "{{name}}", "lakeus-skin-desc": "{{desc|what=skin|name=Lakeus|url=https://www.mediawiki.org/wiki/Skin:Lakeus}}", "lakeus.css": "{{optional}}", - "lakeus.js": "{{optional}}" + "lakeus.js": "{{optional}}", + "lakeus-openmainmenu": "The title and label for the sidebar menu" } diff --git a/i18n/zh-hans.json b/i18n/zh-hans.json index 1655d54..ae32281 100644 --- a/i18n/zh-hans.json +++ b/i18n/zh-hans.json @@ -7,5 +7,6 @@ "skinname-lakeus": "Lakeus", "lakeus-skin-desc": "以作者[https://github.com/lakejason0 Lakejason0]的小说角色命名的简易皮肤", "lakeus.css": "/* 这里放置的CSS将影响使用Lakeus皮肤的用户 */", - "lakeus.js": "/* 这里的任何JavaScript将为使用Lakeus皮肤的用户加载 */" + "lakeus.js": "/* 这里的任何JavaScript将为使用Lakeus皮肤的用户加载 */", + "lakeus-openmainmenu": "打开主菜单" } diff --git a/i18n/zh-hant.json b/i18n/zh-hant.json index 786d944..ffc0e72 100644 --- a/i18n/zh-hant.json +++ b/i18n/zh-hant.json @@ -8,5 +8,6 @@ "skinname-lakeus": "Lakeus", "lakeus-skin-desc": "以作者[https://github.com/lakejason0 Lakejason0]的小說角色命名的簡易外觀", "lakeus.css": "/* 此處所有的CSS都會在使用者使用Lakeus外觀時載入 */", - "lakeus.js": "/* 此處所有的JavaScript都會在使用者使用Lakeus外觀時載入 */" + "lakeus.js": "/* 此處所有的JavaScript都會在使用者使用Lakeus外觀時載入 */", + "lakeus-openmainmenu": "開啟主選單" } diff --git a/skin.json b/skin.json index 19fc463..2c703bd 100644 --- a/skin.json +++ b/skin.json @@ -28,7 +28,8 @@ "sitetitle", "search", "otherlanguages", - "tagline" + "tagline", + "lakeus-openmainmenu" ], "styles": [ "mediawiki.ui.icon", diff --git a/templates/Sidebar.mustache b/templates/Sidebar.mustache index 653c6a2..03f63c3 100644 --- a/templates/Sidebar.mustache +++ b/templates/Sidebar.mustache @@ -1,7 +1,7 @@
+ class="toggle-list__toggle sidebar__icon" title="{{msg-lakeus-openmainmenu}}">{{msg-lakeus-openmainmenu}}
{{#data-portlets-sidebar}} {{#data-portlets-first}}{{>Portlet}}{{/data-portlets-first}}