1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-05 09:48:42 +00:00

hook up traditional chinese translation to GUI, add utf8 BOM for msvc

This commit is contained in:
Brad Parker 2017-07-22 23:59:47 -04:00
parent a02cade1f2
commit df09b0dc9b
6 changed files with 15 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -1,4 +1,4 @@
MSG_HASH(
MSG_HASH(
MSG_COMPILER,
"編譯器"
)

View File

@ -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;
}