Add localization resources.
This commit is contained in:
19
Resources/Lokalize/0_getstrings.sh
Executable file
19
Resources/Lokalize/0_getstrings.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
if [ ! -x 0_getstrings.sh ]
|
||||
then
|
||||
echo "Wrong working directory. Please cd to the directory containing this script."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
APPNAME=POD7
|
||||
SRC=../../
|
||||
DOMAIN=fr
|
||||
DEST=$DOMAIN/$APPNAME.po
|
||||
[ ! -d $DOMAIN ] && mkdir $DOMAIN
|
||||
[ -f $DEST ] && JOIN="-j"
|
||||
[ -f $DEST ] && cp $DEST $DEST.bak-$(date +%F-%T)
|
||||
|
||||
xgettext --keyword=_ -d $DOMAIN $JOIN -o $DEST --c++ --from-code=UTF-8 $(find $SRC -maxdepth 1 -type f -name "*.cpp")
|
||||
#xgettext --keyword=_ -d $DOMAIN -j -o $DEST --c++ --from-code=UTF-8 $(find $SRC -maxdepth 1 -type f -name "*.h")
|
||||
|
||||
exit 0
|
||||
16
Resources/Lokalize/2_makemo.sh
Executable file
16
Resources/Lokalize/2_makemo.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
if [ ! -x 2_makemo.sh ]
|
||||
then
|
||||
echo "Wrong working directory. Please cd to the directory containing this script."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
APPNAME=POD7
|
||||
DOMAIN=fr
|
||||
|
||||
msgfmt $DOMAIN/$APPNAME.po -o $DOMAIN/$APPNAME.mo
|
||||
|
||||
# cp $DOMAIN/$APPNAME.mo /usr/local/share/locale/$DOMAIN/LC_MESSAGES/
|
||||
|
||||
exit 0
|
||||
|
||||
55
Resources/Lokalize/fr/POD7.po
Normal file
55
Resources/Lokalize/fr/POD7.po
Normal file
@@ -0,0 +1,55 @@
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Saleem EDAH-TALLY <set@nmset.info>, 2022.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-10-16 16:17+0200\n"
|
||||
"PO-Revision-Date: 2022-10-16 16:22+0200\n"
|
||||
"Last-Translator: Saleem EDAH-TALLY <set@nmset.info>\n"
|
||||
"Language-Team: French <>\n"
|
||||
"Language: fr_FR\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"X-Generator: Lokalize 22.08.2\n"
|
||||
|
||||
#: ../../main.cpp:49 ../../main.cpp:157
|
||||
msgid "Can't initialize HID library."
|
||||
msgstr "Ne peut initialiser la bibliothèque HID."
|
||||
|
||||
#: ../../main.cpp:57
|
||||
msgid "No hidraw devices found."
|
||||
msgstr "Aucun périphérique hidraw détecté."
|
||||
|
||||
#: ../../main.cpp:94
|
||||
msgid "Print help messages."
|
||||
msgstr "Afficher l'aide."
|
||||
|
||||
#: ../../main.cpp:102
|
||||
msgid "hidraw pedal device file (/dev/<file>)."
|
||||
msgstr "Périphérique hidraw détecté (/dev/<file>)."
|
||||
|
||||
#: ../../main.cpp:104
|
||||
msgid "Show some messages on stdout, namely, signaled pedal codes."
|
||||
msgstr ""
|
||||
"Affichage plus verbeux, en particulier, des codes emis par les pédales."
|
||||
|
||||
#: ../../main.cpp:129 ../../main.cpp:135
|
||||
msgid "Error : "
|
||||
msgstr "Erreur : "
|
||||
|
||||
#: ../../main.cpp:163
|
||||
msgid "Can't open "
|
||||
msgstr "Ne peur ouvrir "
|
||||
|
||||
#: ../../main.cpp:201
|
||||
msgid "Application exit."
|
||||
msgstr "Fin d'application."
|
||||
|
||||
#: ../../main.cpp:103
|
||||
msgid "List hidraw devices."
|
||||
msgstr "Énumérer les périphériques hidraw."
|
||||
5
Resources/Lokalize/index.lokalize
Normal file
5
Resources/Lokalize/index.lokalize
Normal file
@@ -0,0 +1,5 @@
|
||||
[General]
|
||||
LangCode=fr_FR
|
||||
MailingList=
|
||||
ProjectID=POD7-Lokalize
|
||||
TargetLangCode=fr_FR
|
||||
Reference in New Issue
Block a user