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

(Esperanto) Add stub Esperanto language hooks

This commit is contained in:
twinaphex 2015-06-26 11:16:02 +02:00
parent e879d2de25
commit 81f09f8378
6 changed files with 52 additions and 0 deletions

View File

@ -343,6 +343,7 @@ ifeq ($(HAVE_MENU_COMMON), 1)
menu/menu_hash.o \
menu/intl/menu_hash_de.o \
menu/intl/menu_hash_es.o \
menu/intl/menu_hash_eo.o \
menu/intl/menu_hash_fr.o \
menu/intl/menu_hash_it.o \
menu/intl/menu_hash_nl.o \

View File

@ -755,6 +755,7 @@ MENU
#include "../menu/intl/menu_hash_de.c"
#include "../menu/intl/menu_hash_es.c"
#include "../menu/intl/menu_hash_eo.c"
#include "../menu/intl/menu_hash_fr.c"
#include "../menu/intl/menu_hash_it.c"
#include "../menu/intl/menu_hash_nl.c"

View File

@ -242,6 +242,7 @@ enum retro_language
RETRO_LANGUAGE_KOREAN = 9,
RETRO_LANGUAGE_CHINESE_TRADITIONAL = 10,
RETRO_LANGUAGE_CHINESE_SIMPLIFIED = 11,
RETRO_LANGUAGE_ESPERANTO = 12,
RETRO_LANGUAGE_LAST,
/* Ensure sizeof(enum) == sizeof(int) */

42
menu/intl/menu_hash_eo.c Normal file
View File

@ -0,0 +1,42 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2015 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <string.h>
#include "../menu_hash.h"
const char *menu_hash_to_str_eo(uint32_t hash)
{
switch (hash)
{
default:
break;
}
return "null";
}
int menu_hash_get_help_eo(uint32_t hash, char *s, size_t len)
{
switch (hash)
{
default:
return -1;
}
return 0;
}

View File

@ -50,6 +50,8 @@ const char *menu_hash_to_str(uint32_t hash)
case RETRO_LANGUAGE_DUTCH:
ret = menu_hash_to_str_nl(hash);
break;
case RETRO_LANGUAGE_ESPERANTO:
ret = menu_hash_to_str_eo(hash);
default:
break;
}
@ -88,6 +90,8 @@ int menu_hash_get_help(uint32_t hash, char *s, size_t len)
case RETRO_LANGUAGE_DUTCH:
ret = menu_hash_get_help_nl(hash, s, len);
break;
case RETRO_LANGUAGE_ESPERANTO:
ret = menu_hash_get_help_eo(hash, s, len);
default:
break;
}

View File

@ -952,6 +952,9 @@ int menu_hash_get_help_nl(uint32_t hash, char *s, size_t len);
const char *menu_hash_to_str_pt(uint32_t hash);
int menu_hash_get_help_pt(uint32_t hash, char *s, size_t len);
const char *menu_hash_to_str_eo(uint32_t hash);
int menu_hash_get_help_eo(uint32_t hash, char *s, size_t len);
const char *menu_hash_to_str_us(uint32_t hash);
int menu_hash_get_help_us(uint32_t hash, char *s, size_t len);