mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
hook up traditional chinese translation to GUI, add utf8 BOM for msvc
This commit is contained in:
parent
a02cade1f2
commit
df09b0dc9b
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
MSG_HASH(
|
||||
MSG_HASH(
|
||||
MSG_COMPILER,
|
||||
"編譯器"
|
||||
)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user