From dda01f3bfe6a9837adda5d7c2b9235ddbf90e100 Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Sat, 17 Jan 2026 14:26:34 +0100 Subject: [PATCH] chore(lang): adds Chinese that looks just a liiiiiiittle bit different --- .../client/scenes/LangSelectMenuCtrl.java | 2 +- client/src/main/resources/flag_zhc.png | Bin 0 -> 1112 bytes .../src/main/resources/locale/lang.properties | 1 + .../main/resources/locale/lang_en.properties | 1 + .../main/resources/locale/lang_nl.properties | 1 + .../main/resources/locale/lang_pl.properties | 1 + .../main/resources/locale/lang_tr.properties | 9 +++-- .../main/resources/locale/lang_zhc.properties | 38 ++++++++++++++++++ .../main/resources/locale/lang_zht.properties | 5 ++- 9 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 client/src/main/resources/flag_zhc.png create mode 100644 client/src/main/resources/locale/lang_zhc.properties diff --git a/client/src/main/java/client/scenes/LangSelectMenuCtrl.java b/client/src/main/java/client/scenes/LangSelectMenuCtrl.java index af56631..1885d6b 100644 --- a/client/src/main/java/client/scenes/LangSelectMenuCtrl.java +++ b/client/src/main/java/client/scenes/LangSelectMenuCtrl.java @@ -46,7 +46,7 @@ public class LangSelectMenuCtrl implements LocaleAware { @Override public void initializeComponents() { - langSelectMenu.getItems().setAll("en", "pl", "nl", "zht", "tok", "tr"); + langSelectMenu.getItems().setAll("en", "pl", "nl", "zht", "zhc", "tok", "tr"); langSelectMenu.setValue(manager.getLocale().getLanguage()); langSelectMenu.setConverter(new StringConverter() { @Override diff --git a/client/src/main/resources/flag_zhc.png b/client/src/main/resources/flag_zhc.png new file mode 100644 index 0000000000000000000000000000000000000000..e14c147a5757c701e991fc5de19b6752db353a24 GIT binary patch literal 1112 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=oCO|{#S9GG!XV7ZFl&wk0|N_} zr;B4q#hkY@{WD}jWscjwKYQlgnRjXBxzf5VTQUSfR&nSaUDUzGqAwQ}BET=Vgngmt z6tDMHUzUmRR|)D|;@Zn;$sxK*{9qgtuZWUIF4MBk**Rt9W&dpXy(gRc-ne`7%|DHE z&rMG6oB4C!`Pr5K-E{3@P5<;?yu`TVB#Q@oK;OYtDoNkP1ry|bH1-KB&^i3X-FMBV z7;_aRg{Z4j;} zIoUdS?y}o|EX^-e-rKBr?_Od-zG~ zvWTaN9E`V2D~=yt`}jzB?fmQ)Q+%C{z6!s$?*Bb~_3iD#T`T9ksVrT}Gu1eE)%zd(89`hHyXvY7zPz$ZTi(o) zb$|Do_|wTg@5^slPD+sV=?F6kGgY$}4z_(9y!#nnz|w;Od&8RF84LE;T{7cFHTkj2jCjTy;8^@!vp!(3`^SAHVnjgGdEd1m1w{@wPlEQ`g_S~2HW%c($z4{8C z%lGpVLV5qkltu2}WxGu~b;X{$&nA}FKAQFDT=mm^$NtWJvMkwaJ)6a4&emYX-q(B| zmo54>*Zq!!@BT~Qg(uW&9dp@Gv(e>k*YEjUQj1r_7Dn!iIOH;SQzpl|h%NciJI
sUx!|+dkqf(C3jE1TWU&+IsN4RLaefEZrkL6CEHdIhr@b~z) zT=_eqa{7bP0l+XkKZqy4E literal 0 HcmV?d00001 diff --git a/client/src/main/resources/locale/lang.properties b/client/src/main/resources/locale/lang.properties index 966b89e..59f8bb1 100644 --- a/client/src/main/resources/locale/lang.properties +++ b/client/src/main/resources/locale/lang.properties @@ -44,3 +44,4 @@ lang.pl.display=Polish lang.tok.display=toki pona lang.tr.display=T\u00FCrk\u00E7e lang.zht.display=中文(台灣) +lang.zhc.display=中文(中国大陆) diff --git a/client/src/main/resources/locale/lang_en.properties b/client/src/main/resources/locale/lang_en.properties index 2bd11ae..bf41079 100644 --- a/client/src/main/resources/locale/lang_en.properties +++ b/client/src/main/resources/locale/lang_en.properties @@ -46,3 +46,4 @@ lang.pl.display=Polish lang.tok.display=toki pona lang.tr.display=T\u00FCrk\u00E7e lang.zht.display=中文(台灣) +lang.zhc.display=中文(中国大陆) diff --git a/client/src/main/resources/locale/lang_nl.properties b/client/src/main/resources/locale/lang_nl.properties index 79295ee..f944251 100644 --- a/client/src/main/resources/locale/lang_nl.properties +++ b/client/src/main/resources/locale/lang_nl.properties @@ -45,3 +45,4 @@ lang.pl.display=Pools lang.tok.display=toki pona lang.tr.display=T\u00FCrk\u00E7e lang.zht.display=中文(台灣) +lang.zhc.display=中文(中国大陆) diff --git a/client/src/main/resources/locale/lang_pl.properties b/client/src/main/resources/locale/lang_pl.properties index de7c244..28695ad 100644 --- a/client/src/main/resources/locale/lang_pl.properties +++ b/client/src/main/resources/locale/lang_pl.properties @@ -46,3 +46,4 @@ lang.pl.display=Polski lang.tok.display=toki pona lang.tr.display=T\u00FCrk\u00E7e lang.zht.display=中文(台灣) +lang.zhc.display=中文(中国大陆) diff --git a/client/src/main/resources/locale/lang_tr.properties b/client/src/main/resources/locale/lang_tr.properties index 4fa8ada..4af12b8 100644 --- a/client/src/main/resources/locale/lang_tr.properties +++ b/client/src/main/resources/locale/lang_tr.properties @@ -40,7 +40,10 @@ menu.label.selected-langs=Diller menu.shopping.title=Al??veri? listesi -lang.en.display=\u0130ngilizce -lang.nl.display=Hollandaca -lang.pl.display=Leh\u00E7e +lang.en.display=English +lang.nl.display=Nederlands +lang.pl.display=Polski +lang.tok.display=toki pona lang.tr.display=T\u00FCrk\u00E7e +lang.zht.display=中文(台灣) +lang.zhc.display=中文(中国大陆) diff --git a/client/src/main/resources/locale/lang_zhc.properties b/client/src/main/resources/locale/lang_zhc.properties new file mode 100644 index 0000000..646ce54 --- /dev/null +++ b/client/src/main/resources/locale/lang_zhc.properties @@ -0,0 +1,38 @@ +add.ingredient.title=添加配料 +add.recipe.title=创建食谱 +add.step.title=添加步骤 + +add.ingredient.label=配料 +add.recipe.label=食谱名称 +add.step.label=步骤 + +button.ok=确认 +button.cancel=取消 + +menu.label.recipes=食谱 +menu.label.ingredients=配料 +menu.label.preparation=准备步骤 + +menu.button.add.recipe=创建食谱 +menu.button.add.ingredient=添加配料 +menu.button.add.step=添加步骤 + +menu.button.remove.recipe=清除食谱 +menu.button.remove.ingredient=清除配料 +menu.button.remove.step=清除步骤 + +menu.button.edit=编辑 +menu.button.clone=复制 +menu.button.print=打印食谱 + +menu.search=搜索 + +menu.label.selected-langs=语言 + +lang.en.display=English +lang.nl.display=Nederlands +lang.pl.display=Polski +lang.tok.display=toki pona +lang.tr.display=T\u00FCrk\u00E7e +lang.zht.display=中文(台灣) +lang.zhc.display=中文(中国大陆) diff --git a/client/src/main/resources/locale/lang_zht.properties b/client/src/main/resources/locale/lang_zht.properties index 6b604b9..fe5c3fb 100644 --- a/client/src/main/resources/locale/lang_zht.properties +++ b/client/src/main/resources/locale/lang_zht.properties @@ -32,4 +32,7 @@ menu.label.selected-langs=語言 lang.en.display=English lang.nl.display=Nederlands lang.pl.display=Polski -lang.zht.display=中文(台灣) \ No newline at end of file +lang.tok.display=toki pona +lang.tr.display=T\u00FCrk\u00E7e +lang.zht.display=中文(台灣) +lang.zhc.display=中文(中国大陆)