diff --git a/CHANGES.md b/CHANGES.md index 637e2eb8ad..f0fe1da1df 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,6 +13,7 @@ options. - LINUX: Add a tinyalsa audio driver. Doesn't require asoundlib, should be self-contained and lower-level. +- LOCALIZATION: Add Traditional Chinese translation - LOCALIZATION: Update French translation - LOCALIZATION: Update Italian translation - LOCALIZATION: Update Japanese translation diff --git a/Makefile.common b/Makefile.common index 4199a861f7..8e6f3c3379 100644 --- a/Makefile.common +++ b/Makefile.common @@ -273,7 +273,8 @@ OBJ += intl/msg_hash_de.o \ intl/msg_hash_pt_pt.o \ intl/msg_hash_ru.o \ intl/msg_hash_vn.o \ - intl/msg_hash_chs.o + intl/msg_hash_chs.o \ + intl/msg_hash_cht.o endif diff --git a/griffin/griffin.c b/griffin/griffin.c index 477141455b..ab73487352 100644 --- a/griffin/griffin.c +++ b/griffin/griffin.c @@ -850,6 +850,7 @@ RETROARCH #include "../intl/msg_hash_ru.c" #include "../intl/msg_hash_vn.c" #include "../intl/msg_hash_chs.c" +#include "../intl/msg_hash_cht.c" #endif #include "../intl/msg_hash_us.c" diff --git a/intl/msg_hash_cht.c b/intl/msg_hash_cht.c index 96a053155f..d04cfc834d 100644 --- a/intl/msg_hash_cht.c +++ b/intl/msg_hash_cht.c @@ -1,4 +1,4 @@ -/* RetroArch - A frontend for libretro. +/* RetroArch - A frontend for libretro. * Copyright (C) 2011-2017 - Daniel De Matteis * * RetroArch is free software: you can redistribute it and/or modify it under the terms @@ -30,7 +30,7 @@ #pragma warning( disable : 4566 ) #endif -int menu_hash_get_help_chs_enum(enum msg_hash_enums msg, char *s, size_t len) +int menu_hash_get_help_cht_enum(enum msg_hash_enums msg, char *s, size_t len) { uint32_t driver_hash = 0; settings_t *settings = config_get_ptr(); @@ -1865,11 +1865,11 @@ int menu_hash_get_help_chs_enum(enum msg_hash_enums msg, char *s, size_t len) return 0; } -const char *msg_hash_to_str_chs(enum msg_hash_enums msg) +const char *msg_hash_to_str_cht(enum msg_hash_enums msg) { switch (msg) { -#include "msg_hash_chs.h" +#include "msg_hash_cht.h" default: #if 0 diff --git a/intl/msg_hash_cht.h b/intl/msg_hash_cht.h index d70649f5f6..4a51682c8a 100644 --- a/intl/msg_hash_cht.h +++ b/intl/msg_hash_cht.h @@ -1,4 +1,4 @@ -MSG_HASH( +MSG_HASH( MSG_COMPILER, "編譯器" ) diff --git a/msg_hash.c b/msg_hash.c index f297cf3546..ae141c16ae 100644 --- a/msg_hash.c +++ b/msg_hash.c @@ -75,6 +75,9 @@ int menu_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len) case RETRO_LANGUAGE_CHINESE_SIMPLIFIED: ret = menu_hash_get_help_chs_enum(msg, s, len); break; + case RETRO_LANGUAGE_CHINESE_TRADITIONAL: + ret = menu_hash_get_help_cht_enum(msg, s, len); + break; default: break; } @@ -135,6 +138,9 @@ const char *msg_hash_to_str(enum msg_hash_enums msg) case RETRO_LANGUAGE_CHINESE_SIMPLIFIED: ret = msg_hash_to_str_chs(msg); break; + case RETRO_LANGUAGE_CHINESE_TRADITIONAL: + ret = msg_hash_to_str_cht(msg); + break; default: break; }