From 3328675b448fa06c1e729be49e210cce79e0c8a2 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Apr 2018 14:51:12 +0200 Subject: [PATCH] Clarify which Chinese translation we have Chinese has several writing systems so we need to be clear which one our translation covers. The one we currently have is for Traditional Chinese so make sure it uses the matching language tag. --- app/locale/{zh.json => zh_TW.json} | 0 app/ui.js | 2 +- po/Makefile | 2 +- po/{zh.po => zh_TW.po} | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename app/locale/{zh.json => zh_TW.json} (100%) rename po/{zh.po => zh_TW.po} (100%) diff --git a/app/locale/zh.json b/app/locale/zh_TW.json similarity index 100% rename from app/locale/zh.json rename to app/locale/zh_TW.json diff --git a/app/ui.js b/app/ui.js index 4e301d4e..5fe9c729 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1651,7 +1651,7 @@ var UI = { }; // Set up translations -var LINGUAS = ["de", "el", "es", "nl", "pl", "sv", "tr", "zh"]; +var LINGUAS = ["de", "el", "es", "nl", "pl", "sv", "tr", "zh_TW"]; l10n.setup(LINGUAS); if (l10n.language !== "en" && l10n.dictionary === undefined) { WebUtil.fetchJSON('app/locale/' + l10n.language + '.json', function (translations) { diff --git a/po/Makefile b/po/Makefile index 9af7bf15..1c713c32 100644 --- a/po/Makefile +++ b/po/Makefile @@ -1,7 +1,7 @@ all: .PHONY: update-po update-js update-pot -LINGUAS := de el es nl pl sv tr zh +LINGUAS := de el es nl pl sv tr zh_TW VERSION := $(shell grep '"version"' ../package.json | cut -d '"' -f 4) diff --git a/po/zh.po b/po/zh_TW.po similarity index 100% rename from po/zh.po rename to po/zh_TW.po