1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/opensondage_ynh.git synced 2024-09-03 19:46:28 +02:00

fix localization problem

This commit is contained in:
zamentur 2014-06-19 22:14:56 +02:00
parent 95dd07d7ea
commit 5fba874b70
8 changed files with 68 additions and 69 deletions

View file

@ -79,7 +79,7 @@ const LOGOLETTRE = '<chemin relatif suivi du nom du fichier du logo pour la lett
// Nom et emplacement du fichier image contenant le titre
//const IMAGE_TITRE', '<chemin relatif suivi du nom du fichier image du titre>';
const IMAGE_TITRE = 'images/logo.png';
const IMAGE_TITRE = './images/logo.png';
// Activation des URL propre (true pour activer, false sinon)
const URL_PROPRE = false;

View file

@ -47,7 +47,7 @@ sudo sed -i "s/yunoadmin/$admin/g" $final_path/variables.php
sudo sed -i "s/I18NTOCHANGE/$language/g" $final_path/variables.php
sudo sed -i "s@yunourl@$domain$path@g" $final_path/variables.php
sudo sed -i "s@yunodomain@$domain@g" $final_path/variables.php
sudo sed -i "s/yunoinfolegal/$legal/g" $final_path/variables.php
sudo sed -i "s°yunoinfolegal°$legal°g" $final_path/variables.php
# Create log file
touch $final_path/admin/logs_studs.txt
@ -84,7 +84,7 @@ sudo chmod 644 $finalphpini
# Reload Nginx and regenerate SSOwat conf
sudo service php5-fpm restart
sudo apt-get install php-fpdf
sudo yunohost app addaccess opensondage -u $admin
sudo cp ../conf/nginx.conf-public /etc/nginx/conf.d/$domain.d/opensondage.conf
sudo service nginx reload

View file

@ -21,7 +21,7 @@ sudo sed -i "s/yunoadmin/$admin/g" $final_path/variables.php
sudo sed -i "s/I18NTOCHANGE/$language/g" $final_path/variables.php
sudo sed -i "s@yunourl@$domain$path@g" $final_path/variables.php
sudo sed -i "s@yunodomain@$domain@g" $final_path/variables.php
sudo sed -i "s/yunoinfolegal/$legal/g" $final_path/variables.php
sudo sed -i "s°yunoinfolegal°$legal°g" $final_path/variables.php
@ -59,7 +59,7 @@ sudo sed -i "s/yunoadmin/$admin/g" $final_path/variables.php
sudo sed -i "s/I18NTOCHANGE/$language/g" $final_path/variables.php
sudo sed -i "s@yunourl@$domain$path@g" $final_path/variables.php
sudo sed -i "s@yunodomain@$domain@g" $final_path/variables.php
sudo sed -i "s/yunoinfolegal/$legal/g" $final_path/variables.php
sudo sed -i "s°yunoinfolegal°$legal°g" $final_path/variables.php
# Create log file
touch admin/logs_studs.txt

View file

@ -83,11 +83,11 @@ function bandeau_tete()
{
if ( IMAGE_TITRE ) {
echo '<div class="bandeau"><a href="/" title="Accueil '.NOMAPPLICATION.'"><img src="' . IMAGE_TITRE. '" title="Accueil '.NOMAPPLICATION.'" alt="'.NOMAPPLICATION.'"></a></div>'."\n";
echo '<div class="bandeau"><a href="./" title="Accueil '.NOMAPPLICATION.'"><img src="' . IMAGE_TITRE. '" title="Accueil '.NOMAPPLICATION.'" alt="'.NOMAPPLICATION.'"></a></div>'."\n";
} else {
echo '<div class="bandeau"><a href="/" title="Accueil '.NOMAPPLICATION.'">'.NOMAPPLICATION.'</a></div>'."\n";
echo '<div class="bandeau"><a href="./" title="Accueil '.NOMAPPLICATION.'">'.NOMAPPLICATION.'</a></div>'."\n";
} ;
@ -168,11 +168,11 @@ function bandeau_pied()
//echo '<div class="bandeaupied">'. _("Universit&eacute; de Strasbourg. Creation: Guilhem BORGHESI. 2008-2009") .'</div>'."\n";
echo '<div class="separateur">&nbsp;</div>';
echo '<div class="sousbandeau">' .
'<a class="button small gray" href="/">'. _("Home") .'</a>' .
'<a class="button small gray" href="./">'. _("Home") .'</a>' .
'<a class="button small gray" href="' . getUrlSondage('aqg259dth55iuhwm').'">'. _("Example") .'</a>' .
'<a class="button small gray" href="/contacts.php" target="_new">'. _("Contact") .'</a>' .
'<a class="button small gray" href="./contacts.php" target="_new">'. _("Contact") .'</a>' .
//'<a href="/sources/sources.php">'. _("Sources") .'</a>' . //not implemented
'<a class="button small gray" href="/apropos.php">'. _("About") .'</a>' .
'<a class="button small gray" href="./apropos.php">'. _("About") .'</a>' .
//'<a class="button small gray" href="/admin/index.php">'. _("Admin") .'</a>' .
'<span class="sousbandeau sousbandeaulangue">' .
liste_lang() . '</span>'.
@ -187,11 +187,11 @@ function bandeau_pied_mobile()
'<div class="bandeaupiedmobile">'. _("Universit&eacute; de Strasbourg. Creation: Guilhem BORGHESI. 2008-2009") .'</div>'."\n";*/
echo '<div class="separateur">&nbsp;</div>';
echo '<div class="sousbandeau">' .
'<a class="button small gray" href="/">'. _("Home") .'</a>' .
'<a class="button small gray" href="./">'. _("Home") .'</a>' .
'<a class="button small gray" href="' . getUrlSondage('aqg259dth55iuhwm').'">'. _("Example") .'</a>' .
'<a class="button small gray" href="/contacts.php" target="_new">'. _("Contact") .'</a>' .
'<a class="button small gray" href="./contacts.php" target="_new">'. _("Contact") .'</a>' .
//'<a href="/sources/sources.php">'. _("Sources") .'</a>' . //not implemented
'<a class="button small gray" href="/apropos.php">'. _("About") .'</a>' .
'<a class="button small gray" href="./apropos.php">'. _("About") .'</a>' .
//'<a class="button small gray" href="/admin/index.php">'. _("Admin") .'</a>' .
'<span class="sousbandeau sousbandeaulangue">' .
liste_lang() . '</span>'.

View file

@ -82,11 +82,11 @@ function bandeau_tete()
{
if ( IMAGE_TITRE ) {
echo '<div class="bandeau"><a href="/" title="Accueil '.NOMAPPLICATION.'"><img src="' . IMAGE_TITRE. '" title="Accueil '.NOMAPPLICATION.'" alt="'.NOMAPPLICATION.'"></a></div>'."\n";
echo '<div class="bandeau"><a href="./" title="Accueil '.NOMAPPLICATION.'"><img src="' . IMAGE_TITRE. '" title="Accueil '.NOMAPPLICATION.'" alt="'.NOMAPPLICATION.'"></a></div>'."\n";
} else {
echo '<div class="bandeau"><a href="/" title="Accueil '.NOMAPPLICATION.'">'.NOMAPPLICATION.'</a></div>'."\n";
echo '<div class="bandeau"><a href="./" title="Accueil '.NOMAPPLICATION.'">'.NOMAPPLICATION.'</a></div>'."\n";
} ;
@ -169,7 +169,7 @@ function bandeau_pied()
echo '<div class="sousbandeau">' .
'<a class="button small gray" href="./">'. _("Home") .'</a>' .
'<a class="button small gray" href="' . getUrlSondage('aqg259dth55iuhwm').'">'. _("Example") .'</a>' .
'<a class="button small gray" href="http://contact.framasoft.org" target="_new">'. _("Contact") .'</a>' .
'<a class="button small gray" href="./contacts.php" target="_new">'. _("Contact") .'</a>' .
//'<a href="sources/sources.php">'. _("Sources") .'</a>' . //not implemented
'<a class="button small gray" href="apropos.php">'. _("About") .'</a>' .
//'<a class="button small gray" href="admin/index.php">'. _("Admin") .'</a>' .
@ -188,7 +188,7 @@ function bandeau_pied_mobile()
echo '<div class="sousbandeau">' .
'<a class="button small gray" href="./">'. _("Home") .'</a>' .
'<a class="button small gray" href="' . getUrlSondage('aqg259dth55iuhwm').'">'. _("Example") .'</a>' .
'<a class="button small gray" href="http://contact.framasoft.org" target="_new">'. _("Contact") .'</a>' .
'<a class="button small gray" href="./contacts.php" target="_new">'. _("Contact") .'</a>' .
//'<a href="sources/sources.php">'. _("Sources") .'</a>' . //not implemented
'<a class="button small gray" href="apropos.php">'. _("About") .'</a>' .
//'<a class="button small gray" href="admin/index.php">'. _("Admin") .'</a>' .

View file

@ -9,14 +9,13 @@ if (isset($_GET['lang']) && is_string($_GET['lang']) && in_array($_GET['lang'],
$mlocale = LANGUE ;
}
$locale = $mlocale . '.utf8';
putenv('LANGUAGE=');
setlocale(LC_ALL, $locale);
$locale = $mlocale . '.UTF-8';
putenv('LANGUAGE='.'C.UTF-8');
setlocale(LC_ALL, 'C.UTF-8');
setlocale(LC_TIME, $locale);
setlocale(LC_MESSAGES, $locale);
setlocale(LC_MESSAGES, 'C.UTF-8');
$domain = 'Studs';
bindtextdomain($domain, 'locale');
bindtextdomain($domain, 'locale/'.$mlocale);
bind_textdomain_codeset($domain, 'UTF-8');
textdomain($domain);

View file

@ -798,71 +798,71 @@ msgstr "Voir le sondage"
msgid "Change the poll"
msgstr "Modifier le sondage"
#~ msgid "Enter a name!"
#~ msgstr "Vous n'avez pas saisi de nom !"
~ msgid "Enter a name!"
~ msgstr "Vous n'avez pas saisi de nom !"
#~ msgid "monday"
#~ msgstr "lundi"
~ msgid "monday"
~ msgstr "lundi"
#~ msgid "tuesday"
#~ msgstr "mardi"
~ msgid "tuesday"
~ msgstr "mardi"
#~ msgid "wednesday"
#~ msgstr "mercredi"
~ msgid "wednesday"
~ msgstr "mercredi"
#~ msgid "thursday"
#~ msgstr "jeudi"
~ msgid "thursday"
~ msgstr "jeudi"
#~ msgid "friday"
#~ msgstr "vendredi"
~ msgid "friday"
~ msgstr "vendredi"
#~ msgid "saturday"
#~ msgstr "samedi"
~ msgid "saturday"
~ msgstr "samedi"
#~ msgid "sunday"
#~ msgstr "dimanche"
~ msgid "sunday"
~ msgstr "dimanche"
#~ msgid "january"
#~ msgstr "janvier"
~ msgid "january"
~ msgstr "janvier"
#~ msgid "february"
#~ msgstr "f&eacute;vrier"
~ msgid "february"
~ msgstr "f&eacute;vrier"
#~ msgid "march"
#~ msgstr "mars"
~ msgid "march"
~ msgstr "mars"
#~ msgid "april"
#~ msgstr "avril"
~ msgid "april"
~ msgstr "avril"
#~ msgid "may"
#~ msgstr "mai"
~ msgid "may"
~ msgstr "mai"
#~ msgid "june"
#~ msgstr "juin"
~ msgid "june"
~ msgstr "juin"
#~ msgid "july"
#~ msgstr "juillet"
~ msgid "july"
~ msgstr "juillet"
#~ msgid "august"
#~ msgstr "ao&ucirc;t"
~ msgid "august"
~ msgstr "ao&ucirc;t"
#~ msgid "september"
#~ msgstr "septembre"
~ msgid "september"
~ msgstr "septembre"
#~ msgid "october"
#~ msgstr "octobre"
~ msgid "october"
~ msgstr "octobre"
#~ msgid "november"
#~ msgstr "novembre"
~ msgid "november"
~ msgstr "novembre"
#~ msgid "december"
#~ msgstr "d&eacute;cembre"
~ msgid "december"
~ msgstr "d&eacute;cembre"
#~ msgid "Sources"
#~ msgstr "Sources"
~ msgid "Sources"
~ msgstr "Sources"
#~ msgid "Back"
#~ msgstr "Retour"
~ msgid "Back"
~ msgstr "Retour"
#~ msgid ""
#~ "Here are the <a href=\"http://sourcesup.cru.fr/frs/?"

View file

@ -72,14 +72,14 @@ const BASE_TYPE = '<type de BDD>';
const LANGUE = 'fr_FR';
// Nom et emplacement du logo
const LOGOBANDEAU = 'images/logo.png';
const LOGOBANDEAU = './images/logo.png';
// Nom et emplacement du logo de la lettre générée en PDF
const LOGOLETTRE = '<chemin relatif suivi du nom du fichier du logo pour la lettre>';
// Nom et emplacement du fichier image contenant le titre
//const IMAGE_TITRE', '<chemin relatif suivi du nom du fichier image du titre>';
const IMAGE_TITRE = 'images/logo.png';
const IMAGE_TITRE = './images/logo.png';
// Activation des URL propre (true pour activer, false sinon)
const URL_PROPRE = false;