Mise à jour des localisations

-spanish, german, french
This commit is contained in:
2024-12-13 06:42:00 +01:00
parent f056c8a9a0
commit 3ee1a9eaf6
9 changed files with 2660 additions and 1063 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: sur-le-sentier.fr\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-12 10:09+0100\n"
"PO-Revision-Date: 2024-12-12 10:11+0100\n"
"POT-Creation-Date: 2024-12-12 16:31+0100\n"
"PO-Revision-Date: 2024-12-12 16:32+0100\n"
"Last-Translator: Bruno <bruno@clicclac.info>\n"
"Language-Team: French <bruno@clicclac.info>\n"
"Language: fr\n"
@@ -130,6 +130,35 @@ msgstr "Etat: "
msgid " logged in"
msgstr " connecté"
#: admin.php:45 view_bdd.php:119 view_bdd.php:173 view_bdd2.php:298
#: view_bdd2.php:324
msgid "Edit"
msgstr "Editer"
#: admin.php:46
msgid "Insert"
msgstr "Insérer"
#: admin.php:47
msgid "Modify"
msgstr "Modifier"
#: admin.php:48
msgid "View (Ajax)"
msgstr "Voir (Ajax)"
#: admin.php:49
msgid "View"
msgstr "Voir"
#: admin.php:50
msgid "Clean"
msgstr "Nettoyer"
#: admin.php:56 view_bdd.php:234 view_bdd2.php:432
msgid "Log out"
msgstr "Déconnexion"
#: avif/picture.php:18 delete_bdd.php:117 edit_bdd.php:49 modify_bdd.php:157
#: requests.php:14 view_bdd.php:55 view_bdd2.php:98
msgid "View photos in Sqlite base"
@@ -307,7 +336,7 @@ msgstr "Exposition manuelle"
msgid "Program"
msgstr "Programme"
#: clean_bdd.php:425
#: clean_bdd.php:425 translator.php:28 translator_gettext.php:16
msgid "Aperture Priority"
msgstr "Priorité ouverture"
@@ -818,6 +847,10 @@ msgstr "ISO"
msgid "speed"
msgstr "vitesse"
#: translator.php:26
msgid "String"
msgstr "Chaîne"
#: vegas/index.php:106
msgid "<span class=\"green\">Latest</span> images..."
msgstr "<span class=\"green\">Dernières</span> images..."
@@ -886,10 +919,6 @@ msgstr ""
msgid "is it hard"
msgstr ""
#: view_bdd.php:119 view_bdd.php:173 view_bdd2.php:298 view_bdd2.php:324
msgid "Edit"
msgstr "Editer"
#: view_bdd.php:121 view_bdd.php:175 view_bdd2.php:300 view_bdd2.php:326
msgid "Suppress"
msgstr "Supprimer"
@@ -921,10 +950,6 @@ msgstr "Programme"
msgid "WB"
msgstr "Balance des blancs"
#: view_bdd.php:234 view_bdd2.php:432
msgid "Log out"
msgstr "Déconnexion"
#: view_bdd2.php:197
#, php-format
msgid "%d image found with the following query:"

View File

@@ -220,7 +220,7 @@ function localize($domain) {
echo "langue: " . $langue . "<br>";
*/
putenv('LC_ALL=' . $langue);
putenv('LC_ALL=' . $langue); // $langue = fr_FR.utf8
$loc = setlocale(LC_ALL, $langue);
bindtextdomain($domain, $root . '/Locale/nocache'); // by-pass gettext() cache. Now the cache is forced to flush every time.
@@ -230,4 +230,24 @@ function localize($domain) {
$nation = array('fr_FR' => gettext('French'), 'en_US' => gettext('English') , 'de_DE' => gettext('German'), 'es_ES' => gettext('Spanish') );
}
function motranslator($domain) {
require('vendor/autoload.php');
// Create loader object
$loader = new PhpMyAdmin\MoTranslator\Loader();
// Set locale
//$loader->setlocale('fr');
$loader->setlocale('fr_FR.utf8');
// Set default text domain
$loader->textdomain('sentier');
// Set path where to look for a domain
//$loader->bindtextdomain('sentier', __DIR__ . '/data/locale/');
$loader->bindtextdomain('sentier', __DIR__ . '/Locale/');
}
?>