Add missing encoding checkers

This commit is contained in:
Alcaro 2016-06-27 22:45:40 +02:00
parent 9574a929bc
commit d431f77960
3 changed files with 20 additions and 0 deletions

View File

@ -17,6 +17,15 @@
#ifndef __INTL_FRENCH_H
#define __INTL_FRENCH_H
/* IMPORTANT:
* For non-english characters to work without proper unicode support,
* we need this file to be encoded in ISO 8859-1 (Latin1), not UTF-8.
* If you save this file as UTF-8, you'll break non-english characters
* (e.g. German "Umlauts" and Portugese diacritics).
*/
/* DO NOT REMOVE THIS. If it causes build failure, it's because you saved the file as UTF-8. Read the above comment. */
extern const char force_iso_8859_1[sizeof("àèéìòù")==6+1 ? 1 : -1];
#define RETRO_LBL_JOYPAD_B "Bouton RetroPad B"
#define RETRO_LBL_JOYPAD_Y "Bouton RetroPad Y"
#define RETRO_LBL_JOYPAD_SELECT "Bouton RetroPad Select"

View File

@ -17,6 +17,8 @@
#ifndef __INTL_RUSSIAN_H
#define __INTL_RUSSIAN_H
/* lack of force_iso_8859_1 is intentional - ISO-8859-1 does not contain the Cyrillic characters */
#define RETRO_LBL_JOYPAD_B "RetroPad, кнопка B"
#define RETRO_LBL_JOYPAD_Y "RetroPad, кнопка Y"
#define RETRO_LBL_JOYPAD_SELECT "RetroPad, кнопка Select"

View File

@ -17,6 +17,15 @@
#ifndef __INTL_SPANISH_H
#define __INTL_SPANISH_H
/* IMPORTANT:
* For non-english characters to work without proper unicode support,
* we need this file to be encoded in ISO 8859-1 (Latin1), not UTF-8.
* If you save this file as UTF-8, you'll break non-english characters
* (e.g. German "Umlauts" and Portugese diacritics).
*/
/* DO NOT REMOVE THIS. If it causes build failure, it's because you saved the file as UTF-8. Read the above comment. */
extern const char force_iso_8859_1[sizeof("àèéìòù")==6+1 ? 1 : -1];
#define RETRO_LBL_JOYPAD_B "Botón B RetroPad"
#define RETRO_LBL_JOYPAD_Y "Botón Y RetroPad"
#define RETRO_LBL_JOYPAD_SELECT "Botón Select RetroPad"