summaryrefslogtreecommitdiff
path: root/frontends/gtk
diff options
context:
space:
mode:
authorZixing Liu <liushuyu@aosc.io>2020-09-02 08:59:38 +0100
committerVincent Sanders <vince@kyllikki.org>2020-09-02 08:59:38 +0100
commit50f5e3f1a655f0ef17e31433873855770d191176 (patch)
treef56f8aeaa53e3d0663ed695ac507a20ff160cf09 /frontends/gtk
parent4d224afba38b32c9925f0f8ce7cfaf951936c6d7 (diff)
downloadnetsurf-50f5e3f1a655f0ef17e31433873855770d191176.tar.gz
netsurf-50f5e3f1a655f0ef17e31433873855770d191176.tar.bz2
Makefile: add Chinese (Simplified) translation target
Signed-off-by: Zixing Liu <liushuyu@aosc.io>
Diffstat (limited to 'frontends/gtk')
-rw-r--r--frontends/gtk/Makefile2
-rw-r--r--frontends/gtk/res/messages.gresource.xml1
-rw-r--r--frontends/gtk/res/netsurf.gresource.xml3
3 files changed, 5 insertions, 1 deletions
diff --git a/frontends/gtk/Makefile b/frontends/gtk/Makefile
index 02a5fdb73..e4929e416 100644
--- a/frontends/gtk/Makefile
+++ b/frontends/gtk/Makefile
@@ -185,7 +185,7 @@ GTK_RESOURCES_LIST := \
$(wildcard $(NSGTK_RESOURCES_DIR)/*.gtk$(NETSURF_GTK_MAJOR).ui)
# translations with more than just Messages files
-GTK_TRANSLATIONS_HTML := de en fr it ja nl
+GTK_TRANSLATIONS_HTML := de en fr it ja nl zh_CN
# destination for installed resources is the first entry in the gtk resource path
NSGTK_RESOURCES_DESTDIR := $(DESTDIR)$(word 1,$(subst :, ,$(NETSURF_GTK_RES_PATH)))
diff --git a/frontends/gtk/res/messages.gresource.xml b/frontends/gtk/res/messages.gresource.xml
index 684a10862..6da406245 100644
--- a/frontends/gtk/res/messages.gresource.xml
+++ b/frontends/gtk/res/messages.gresource.xml
@@ -6,5 +6,6 @@
<file>de/Messages</file>
<file>fr/Messages</file>
<file>it/Messages</file>
+ <file>zh_CN/Messages</file>
</gresource>
</gresources>
diff --git a/frontends/gtk/res/netsurf.gresource.xml b/frontends/gtk/res/netsurf.gresource.xml
index 0f32a4e05..272c1ade2 100644
--- a/frontends/gtk/res/netsurf.gresource.xml
+++ b/frontends/gtk/res/netsurf.gresource.xml
@@ -42,14 +42,17 @@
<file>credits.html</file>
<file>it/credits.html</file>
<file>nl/credits.html</file>
+ <file>zh_CN/credits.html</file>
<file>licence.html</file>
<file>it/licence.html</file>
<file>nl/licence.html</file>
+ <file>zh_CN/licence.html</file>
<file>welcome.html</file>
<file>de/welcome.html</file>
<file>it/welcome.html</file>
<file>ja/welcome.html</file>
<file>nl/welcome.html</file>
+ <file>zh_CN/welcome.html</file>
<file>adblock.css</file>
<file>default.css</file>
<file>internal.css</file>