Cosmetics changes : remove ending lines spaces

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3012 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-08-31 07:20:24 +00:00
parent 94099866f6
commit a04d3a4f4a
35 changed files with 208 additions and 210 deletions

View File

@@ -23,7 +23,7 @@ class language
/** Language cache directory */
public $cacheDir = "data/locale";
/** Choose the best language in the browser list and which is available in
/** Choose the best language in the browser list and which is available in
locale path
@param string|null $repLocale Directory where are stored the translations
@param string|null $languageCode The coding langugage of the soft
@@ -89,7 +89,7 @@ class language
foreach ($arrAccept as $value)
{
// Regarde si un repertoire existe avec la language proposee.
// Recherche insensible à la casse, retourne le nom du fichier avec la
// Recherche insensible à la casse, retourne le nom du fichier avec la
// casse
$val2 = strtolower ($value);
foreach ($arrLanguageAvailable as $val)
@@ -141,7 +141,7 @@ class language
return $_COOKIE[$cookieName];
return FALSE;
}
/** Set the cookie with a TTL of one month
@param string $cookieName The name of the cookie
@param string $languageCode Language to store
@@ -275,7 +275,7 @@ class language
$codeset = "UTF8"; // SANS TIRET ET EN MAJSUCULES!!!
// -> Le répertoire de données doit être fr_FR.UTF8
putenv ('LANG='.$languageCode.'.'.$codeset);
putenv ('LANGUAGE='.$languageCode.'.'.$codeset);
putenv ('LANGUAGE='.$languageCode.'.'.$codeset);
$GLOBALS["domframework"]["lang"] = $languageCode;
bind_textdomain_codeset ($package, "utf-8");
bindtextdomain ($package, $repLocale);
@@ -338,7 +338,7 @@ class language
case "fr_FR": return dgettext("domframework", "French");
case "en_US": return dgettext("domframework", "English (US)");
case "en_GB": return dgettext("domframework", "English (GB)");
default:
default:
throw new Exception ("No language available for '$languageCode'", 500);
}
}