forked from Aloshi/EmulationStation
-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
- Loading branch information
1 parent
9d793db
commit 6a2324b
Showing
10 changed files
with
148 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.slo | ||
*.lo | ||
*.o | ||
*.mo | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef _LOCALE_H_ | ||
#define _LOCALE_H_ | ||
|
||
#include <libintl.h> | ||
|
||
#define _(A) gettext(A) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
add_custom_target (i18n ALL COMMENT "Building i18n messages.") | ||
file (GLOB es_PO_FILES ${dir}/locale/lang/*) | ||
set(es_POT ${dir}/locale/emulationstation.pot) | ||
# update the pot | ||
MESSAGE("Building the pot file") | ||
add_custom_command (TARGET i18n COMMAND find "${dir}/es-app" "${dir}/es-core" -name "*.cpp" -o -name "*.h" | ${XGETTEXT_EXECUTABLE} -f - -o ${es_POT} --no-location --keyword=_) | ||
|
||
foreach (es_PO_INPUT ${es_PO_FILES}) | ||
get_filename_component (es_PO_LANG ${es_PO_INPUT} NAME_WE) | ||
MESSAGE("LANG = ${es_PO_LANG}") | ||
set (es_MO_OUTPUT ${es_PO_INPUT}/LC_MESSAGES/emulationstation.mo) | ||
# update the po from the pot | ||
add_custom_command (TARGET i18n COMMAND basename ${es_PO_INPUT} && ${MSGMERGE_EXECUTABLE} -U --no-fuzzy-matching ${es_PO_INPUT}/LC_MESSAGES/emulationstation.po ${es_POT}) | ||
# compile the po to mo | ||
add_custom_command (TARGET i18n COMMAND ${MSGFMT_EXECUTABLE} -o ${es_MO_OUTPUT} ${es_PO_INPUT}/LC_MESSAGES/emulationstation.po --statistics) | ||
install (FILES ${es_MO_OUTPUT} DESTINATION share/locale/${es_PO_LANG}/LC_MESSAGES RENAME emulationstation.mo) | ||
endforeach (es_PO_INPUT ${es_PO_FILES}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
(cd lang && | ||
for POLANG in * | ||
do | ||
POFILE="./${POLANG}/LC_MESSAGES/emulationstation.po" | ||
echo -n "${POLANG}: " | ||
LANG=C msgfmt "${POFILE}" -o - --statistics > /dev/null | ||
done | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-05-12 22:26+0200\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=CHARSET\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" | ||
|
||
#, c-format | ||
msgid "%i GAME AVAILABLE" | ||
msgid_plural "%i GAMES AVAILABLE" | ||
msgstr[0] "" | ||
msgstr[1] "" | ||
|
||
msgid "Loading..." | ||
msgstr "" | ||
|
||
msgid "Loading system config..." | ||
msgstr "" | ||
|
||
msgid "QUIT" | ||
msgstr "" | ||
|
||
msgid "Done." | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: emulationstation\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-05-12 22:25+0200\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: POEditor.com\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#, c-format | ||
msgid "%i GAME AVAILABLE" | ||
msgid_plural "%i GAMES AVAILABLE" | ||
msgstr[0] "%i JEU DISPONIBLE" | ||
msgstr[1] "%i JEUX DISPONIBLES" | ||
|
||
msgid "Loading..." | ||
msgstr "Chargement..." | ||
|
||
msgid "Loading system config..." | ||
msgstr "Chargement de la configuration système" | ||
|
||
msgid "QUIT" | ||
msgstr "QUITTER" | ||
|
||
msgid "Done." | ||
msgstr "Terminé." |