Commit 5a4d57d9 authored by David's avatar David

Intégration traduction TR + petite coquille titre

parent f9fdb372
......@@ -84,7 +84,7 @@ $country = @geoip_country_code_by_name(get_ip());
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title>[CalcPvAutonome] <?= _('Caculate/size photovoltaic stand-alone (autonomous) set') ?></title>
<title>[CalcPvAutonome] <?= _('Calculate/size photovoltaic stand-alone (autonomous) set') ?></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link href="./lib/style.css" media="screen" rel="stylesheet" type="text/css" />
<meta http-equiv="Pragma" content="no-cache">
......@@ -130,7 +130,7 @@ $country = @geoip_country_code_by_name(get_ip());
|| $_SERVER['HTTP_HOST'] == 'conso.calcpv.net'
|| $_SERVER['HTTP_HOST'] == 'calconso.zici.fr'
|| $_SERVER['HTTP_HOST'] == 'calcconso.zici.fr') {
echo '<h1>'._('Caculate daily electric needs').'</h1>';
echo '<h1>'._('Calculate daily electric needs').'</h1>';
@include_once('./header.php');
echo _('<p>Go to the <a href="https://crwd.in/calcpvautonome" target="_blank">colaborative translation platform</a> to help us translate this free software.</p>');
include('./CalcConsommation.php');
......@@ -139,7 +139,7 @@ $country = @geoip_country_code_by_name(get_ip());
include('./Modeles.php');
$footer=false;
} else {
echo '<h1>'._('Caculate/size photovoltaic stand-alone (autonomous) set').'</h1>';
echo '<h1>'._('Calculate/size photovoltaic stand-alone (autonomous) set').'</h1>';
@include_once('./header.php');
echo _('<p>Go to the <a href="https://crwd.in/calcpvautonome" target="_blank">colaborative translation platform</a> to help us translate this free software.</p>');
include('./CalcPvAutonome.php');
......
......@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: calcpvautonome\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-16 11:45+0100\n"
"PO-Revision-Date: 2018-02-16 06:20-0500\n"
"POT-Creation-Date: 2018-02-16 14:36+0100\n"
"PO-Revision-Date: 2018-02-16 08:47-0500\n"
"Last-Translator: kepon85 <david@mercereau.info>\n"
"Language-Team: Afar\n"
"Language: aa_ER\n"
......@@ -1254,39 +1254,39 @@ msgstr "crwdns896:0crwdne896:0"
msgid "I already support CalcPvAutonomous"
msgstr "crwdns897:0crwdne897:0"
#: index.php:82 index.php:130
msgid "Caculate/size photovoltaic stand-alone (autonomous) set"
msgstr "crwdns566:0crwdne566:0"
#: index.php:87 index.php:142
msgid "Calculate/size photovoltaic stand-alone (autonomous) set"
msgstr "crwdns905:0crwdne905:0"
#: index.php:121
msgid "Caculate daily electric needs"
msgstr "crwdns567:0crwdne567:0"
#: index.php:133
msgid "Calculate daily electric needs"
msgstr "crwdns906:0crwdne906:0"
#: index.php:123 index.php:132 index.php:154
#: index.php:135 index.php:144 index.php:166
msgid "<p>Go to the <a href=\"https://crwd.in/calcpvautonome\" target=\"_blank\">colaborative translation platform</a> to help us translate this free software.</p>"
msgstr "crwdns898:0crwdne898:0"
#: index.php:140
#: index.php:152
msgid "Thanks to"
msgstr "crwdns568:0crwdne568:0"
#: index.php:152
#: index.php:164
msgid "for this <a target=\"_blank\" href=\"https://crwd.in/calcpvautonome\">translation</a>"
msgstr "crwdns899:0crwdne899:0"
#: index.php:155
#: index.php:167
msgid "By"
msgstr "crwdns570:0crwdne570:0"
#: index.php:155
#: index.php:167
msgid "Git repository"
msgstr "crwdns571:0crwdne571:0"
#: index.php:156
#: index.php:168
msgid "version"
msgstr "crwdns572:0crwdne572:0"
#: index.php:156
#: index.php:168
msgid "is an open software licensed <a href=\"https://en.wikipedia.org/wiki/Beerware\">Beerware</a>"
msgstr "crwdns573:0crwdne573:0"
......
......@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: calcpvautonome\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-16 11:45+0100\n"
"PO-Revision-Date: 2018-02-16 05:58-0500\n"
"POT-Creation-Date: 2018-02-16 14:36+0100\n"
"PO-Revision-Date: 2018-02-16 08:47-0500\n"
"Last-Translator: kepon85 <david@mercereau.info>\n"
"Language-Team: French\n"
"Language: fr_FR\n"
......@@ -1254,39 +1254,39 @@ msgstr "Non merci, je souhaite seulement lancer le calcul"
msgid "I already support CalcPvAutonomous"
msgstr "Je soutiens déjà CalcPvAutonome"
#: index.php:82 index.php:130
msgid "Caculate/size photovoltaic stand-alone (autonomous) set"
#: index.php:87 index.php:142
msgid "Calculate/size photovoltaic stand-alone (autonomous) set"
msgstr "Calculer/dimensionner son installation photovoltaïque isolée (autonome)"
#: index.php:121
msgid "Caculate daily electric needs"
#: index.php:133
msgid "Calculate daily electric needs"
msgstr "Calculer ces besoins électriques journaliers"
#: index.php:123 index.php:132 index.php:154
#: index.php:135 index.php:144 index.php:166
msgid "<p>Go to the <a href=\"https://crwd.in/calcpvautonome\" target=\"_blank\">colaborative translation platform</a> to help us translate this free software.</p>"
msgstr "<p>Rendez-vous sur la <a href=\"https://crwd.in/calcpvautonome\" target=\"_blank\">plateforme collaborative de traduction</a> pour nous aider à traduire ce logiciel.</p>"
#: index.php:140
#: index.php:152
msgid "Thanks to"
msgstr "Merci à"
#: index.php:152
#: index.php:164
msgid "for this <a target=\"_blank\" href=\"https://crwd.in/calcpvautonome\">translation</a>"
msgstr "pour cette <a target=\"_blank\" href=\"https://crwd.in/calcpvautonome\">translation</a>"
#: index.php:155
#: index.php:167
msgid "By"
msgstr "Par"
#: index.php:155
#: index.php:167
msgid "Git repository"
msgstr "Dépôt Git"
#: index.php:156
#: index.php:168
msgid "version"
msgstr "version"
#: index.php:156
#: index.php:168
msgid "is an open software licensed <a href=\"https://en.wikipedia.org/wiki/Beerware\">Beerware</a>"
msgstr "est un logiciel libre sous licence <a href=\"https://fr.wikipedia.org/wiki/Beerware\">Beerware</a>"
......
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-16 11:45+0100\n"
"POT-Creation-Date: 2018-02-16 14:36+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -1423,44 +1423,44 @@ msgstr ""
msgid "I already support CalcPvAutonomous"
msgstr ""
#: index.php:82 index.php:130
msgid "Caculate/size photovoltaic stand-alone (autonomous) set"
#: index.php:87 index.php:142
msgid "Calculate/size photovoltaic stand-alone (autonomous) set"
msgstr ""
#: index.php:121
msgid "Caculate daily electric needs"
#: index.php:133
msgid "Calculate daily electric needs"
msgstr ""
#: index.php:123 index.php:132 index.php:154
#: index.php:135 index.php:144 index.php:166
msgid ""
"<p>Go to the <a href=\"https://crwd.in/calcpvautonome\" target=\"_blank"
"\">colaborative translation platform</a> to help us translate this free "
"software.</p>"
msgstr ""
#: index.php:140
#: index.php:152
msgid "Thanks to"
msgstr ""
#: index.php:152
#: index.php:164
msgid ""
"for this <a target=\"_blank\" href=\"https://crwd.in/calcpvautonome"
"\">translation</a>"
msgstr ""
#: index.php:155
#: index.php:167
msgid "By"
msgstr ""
#: index.php:155
#: index.php:167
msgid "Git repository"
msgstr ""
#: index.php:156
#: index.php:168
msgid "version"
msgstr ""
#: index.php:156
#: index.php:168
msgid ""
"is an open software licensed <a href=\"https://en.wikipedia.org/wiki/Beerware"
"\">Beerware</a>"
......
This diff is collapsed.
......@@ -6,11 +6,27 @@ Modification source traduction
vérifier la fin des fichiers mergé (le commenté), c'est ce qui n'est plus dans le .pot
https://maxime.sh/2012/06/utilisation-pratique-de-gettext-avec-php/
Intégrer une traduction
// build and download depuis crowdin
mkdir /tmp/crowndin
mv calcpvautonome.zip /tmp/crowndin/
unzip calcpvautonome.zip
cp fr/v4.0/messages-fr.po ~/root@michel.zici.fr/var/www/clients/client3/web46/web/dev/lang/fr_FR/LC_MESSAGES/
cp tr/v4.0/messages-tr.po ~/root@michel.zici.fr/var/www/clients/client3/web46/web/dev/lang/tr_TR/LC_MESSAGES/
cp nl/v4.0/messages-nl.po ~/root@michel.zici.fr/var/www/clients/client3/web46/web/dev/lang/nl_NL/LC_MESSAGES/
cp aa/v4.0/messages-aa.po ~/root@michel.zici.fr/var/www/clients/client3/web46/web/dev/lang/aa_ER/LC_MESSAGES/
Mettre à jour les .mo à partir du .po
// Depuis le serveur :
cd /var/www/calcpv.net/web/dev
msgfmt lang/fr_FR/LC_MESSAGES/messages-fr.po -o lang/fr_FR/LC_MESSAGES/messages.mo
msgfmt lang/tr_TR/LC_MESSAGES/messages-tr.po -o lang/tr_TR/LC_MESSAGES/messages.mo
msgfmt lang/nl_NL/LC_MESSAGES/messages-nl.po -o lang/nl_NL/LC_MESSAGES/messages.mo
msgfmt lang/aa_ER/LC_MESSAGES/messages-aa.po -o lang/aa_ER/LC_MESSAGES/messages.mo
/etc/init.d/php7.0-fpm restart
Ajout d'une langue :
vérifier sa présence sur le système : locale -a
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment