Skip to content

Commit

Permalink
translate game name
Browse files Browse the repository at this point in the history
  • Loading branch information
solosky committed Nov 20, 2024
1 parent e43b955 commit 9a6c75e
Show file tree
Hide file tree
Showing 17 changed files with 1,010 additions and 941 deletions.
11 changes: 6 additions & 5 deletions fw/application/src/app/game/scene/game_scene_game_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "tiny_invaders.h"
#include "tiny_lander.h"
#include "tiny_tris.h"
#include "i18n/language.h"

#define ICON_FOLDER 0xe1d6
#define ICON_FILE 0xe1ed
Expand Down Expand Up @@ -47,11 +48,11 @@ static int game_scene_game_list_list_item_cmp(const mui_list_item_t *p_item_a, c

static void game_scene_game_list_reload_folders(app_game_t *app) {
mui_list_view_clear_items(app->p_list_view);
mui_list_view_add_item(app->p_list_view, ICON_HOME, ">>主菜单<<", (void *)-1);
mui_list_view_add_item(app->p_list_view, ICON_FILE, "Tiny Lander", tiny_lander_run);
mui_list_view_add_item(app->p_list_view, ICON_FILE, "Tiny Invaders", tiny_invaders_run);
mui_list_view_add_item(app->p_list_view, ICON_FILE, "Tiny Arkanoid", tiny_arkanoid_run);
mui_list_view_add_item(app->p_list_view, ICON_FILE, "Tiny Tris", tiny_tris_run);
mui_list_view_add_item(app->p_list_view, ICON_HOME, _T(MAIN_MENU), (void *)-1);
mui_list_view_add_item(app->p_list_view, ICON_FILE, _T(APP_GAME_TINY_LANDER), tiny_lander_run);
mui_list_view_add_item(app->p_list_view, ICON_FILE, _T(APP_GAME_TINY_INVADERS) , tiny_invaders_run);
mui_list_view_add_item(app->p_list_view, ICON_FILE, _T(APP_GAME_TINY_ARKANOID), tiny_arkanoid_run);
mui_list_view_add_item(app->p_list_view, ICON_FILE, _T(APP_GAME_TINY_TRIS), tiny_tris_run);
}

void game_scene_game_list_on_enter(void *user_data) {
Expand Down
4 changes: 4 additions & 0 deletions fw/application/src/i18n/de_DE.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_de_DE[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "Kartentyp geändert. \nKartendaten zurücksetzen?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "",
[_L_APP_GAME] = "",
[_L_APP_GAME_TINY_ARKANOID] = "",
[_L_APP_GAME_TINY_INVADERS] = "",
[_L_APP_GAME_TINY_LANDER] = "",
[_L_APP_GAME_TINY_TRIS] = "",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/en_US.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_en_US[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "Card type changed. \nFactory card data?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "Default Card",
[_L_APP_GAME] = "Game",
[_L_APP_GAME_TINY_ARKANOID] = "Arkanoid",
[_L_APP_GAME_TINY_INVADERS] = "Invaders",
[_L_APP_GAME_TINY_LANDER] = "Lander",
[_L_APP_GAME_TINY_TRIS] = "Tris",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/es_ES.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_es_ES[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "Tipo tarjeta modificado\n¿Inicializar tarjeta?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "",
[_L_APP_GAME] = "",
[_L_APP_GAME_TINY_ARKANOID] = "",
[_L_APP_GAME_TINY_INVADERS] = "",
[_L_APP_GAME_TINY_LANDER] = "",
[_L_APP_GAME_TINY_TRIS] = "",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/fr_FR.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_fr_FR[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "Le Type de Carte a Été Modifié. \nRéinitialiser les Données de la Carte?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "",
[_L_APP_GAME] = "",
[_L_APP_GAME_TINY_ARKANOID] = "",
[_L_APP_GAME_TINY_INVADERS] = "",
[_L_APP_GAME_TINY_LANDER] = "",
[_L_APP_GAME_TINY_TRIS] = "",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/hu_HU.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_hu_HU[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "A kártya típusa megváltozott.\nGyári kártyaadatok?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "",
[_L_APP_GAME] = "",
[_L_APP_GAME_TINY_ARKANOID] = "",
[_L_APP_GAME_TINY_INVADERS] = "",
[_L_APP_GAME_TINY_LANDER] = "",
[_L_APP_GAME_TINY_TRIS] = "",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/it_IT.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_it_IT[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "Tipo di carta modificato\nInizializzare carta?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "",
[_L_APP_GAME] = "",
[_L_APP_GAME_TINY_ARKANOID] = "",
[_L_APP_GAME_TINY_INVADERS] = "",
[_L_APP_GAME_TINY_LANDER] = "",
[_L_APP_GAME_TINY_TRIS] = "",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/ja_JP.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_ja_JP[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "カードの種類が変更されました。\nカードデータを初期化しますか?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "",
[_L_APP_GAME] = "",
[_L_APP_GAME_TINY_ARKANOID] = "",
[_L_APP_GAME_TINY_INVADERS] = "",
[_L_APP_GAME_TINY_LANDER] = "",
[_L_APP_GAME_TINY_TRIS] = "",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/nl_NL.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_nl_NL[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "Kaarttype gewijzigd. \nGegevens terugzetten naar standaard?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "",
[_L_APP_GAME] = "",
[_L_APP_GAME_TINY_ARKANOID] = "",
[_L_APP_GAME_TINY_INVADERS] = "",
[_L_APP_GAME_TINY_LANDER] = "",
[_L_APP_GAME_TINY_TRIS] = "",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/pt_BR.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_pt_BR[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "O tipo de cartão foi alterado. \nRedefinir dados do cartão?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "",
[_L_APP_GAME] = "",
[_L_APP_GAME_TINY_ARKANOID] = "",
[_L_APP_GAME_TINY_INVADERS] = "",
[_L_APP_GAME_TINY_LANDER] = "",
[_L_APP_GAME_TINY_TRIS] = "",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/pt_PT.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_pt_PT[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "Tipo de cartão alterado. \nFormatar cartão?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "",
[_L_APP_GAME] = "",
[_L_APP_GAME_TINY_ARKANOID] = "",
[_L_APP_GAME_TINY_INVADERS] = "",
[_L_APP_GAME_TINY_LANDER] = "",
[_L_APP_GAME_TINY_TRIS] = "",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/ru_RU.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_ru_RU[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "Тип карты изменен.\nСбросить данные карты?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "По умолчанию",
[_L_APP_GAME] = "",
[_L_APP_GAME_TINY_ARKANOID] = "",
[_L_APP_GAME_TINY_INVADERS] = "",
[_L_APP_GAME_TINY_LANDER] = "",
[_L_APP_GAME_TINY_TRIS] = "",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/string_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ typedef enum {
_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM,
_L_APP_CHAMELEON_CARD_DEFAULT_CARD,
_L_APP_GAME,
_L_APP_GAME_TINY_ARKANOID,
_L_APP_GAME_TINY_INVADERS,
_L_APP_GAME_TINY_LANDER,
_L_APP_GAME_TINY_TRIS,
_L_COUNT,
} L_StringID;
#endif
4 changes: 4 additions & 0 deletions fw/application/src/i18n/zh_Hans.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_zh_Hans[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "卡类型已修改\n重置卡数据?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "默认卡片",
[_L_APP_GAME] = "游戏",
[_L_APP_GAME_TINY_ARKANOID] = "打砖块",
[_L_APP_GAME_TINY_INVADERS] = "入侵者",
[_L_APP_GAME_TINY_LANDER] = "星球着陆",
[_L_APP_GAME_TINY_TRIS] = "俄罗斯方块",
};
4 changes: 4 additions & 0 deletions fw/application/src/i18n/zh_TW.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ const char * const lang_zh_TW[_L_COUNT] = {
[_L_APP_CHAMELEON_CARD_TYPE_FACTORY_DATA_CONFRIM] = "卡類型已修改\n重置卡數據?",
[_L_APP_CHAMELEON_CARD_DEFAULT_CARD] = "默认卡片",
[_L_APP_GAME] = "游戏",
[_L_APP_GAME_TINY_ARKANOID] = "打磚塊",
[_L_APP_GAME_TINY_INVADERS] = "入侵者",
[_L_APP_GAME_TINY_LANDER] = "星球著陸",
[_L_APP_GAME_TINY_TRIS] = "俄羅斯方塊",
};
Loading

0 comments on commit 9a6c75e

Please sign in to comment.