Thousands and decimal separators are now language dependant
This commit is contained in:
@@ -17,6 +17,8 @@ $Source$
|
||||
language dependant.
|
||||
* tbl_properties.inc.php3, line 235: removed an unnecessary php closing
|
||||
tag.
|
||||
* lib.inc.php3, lines 946-950; db_details.php3, lines 96 & 118; language
|
||||
files: thousands and decimal separators are now language dependant.
|
||||
|
||||
2001-07-06 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
* users_details.php3: fixed many little scripting bugs.
|
||||
|
@@ -93,7 +93,7 @@ else if (MYSQL_MAJOR_VERSION>=3.23 && isset($tbl_cache)){
|
||||
<td><a href="sql.php3<?php echo $query;?>&sql_query=<?php echo urlencode("DELETE FROM $table");?>&zero_rows=<?php echo urlencode($strTable." ".$table." ".$strHasBeenEmptied);?>"><?php echo $strEmpty; ?></a></td>
|
||||
<?php
|
||||
if (isset($sts_data["Rows"])){
|
||||
echo "<td align=right>".number_format($sts_data["Rows"],0,',','.')."</td>\n";
|
||||
echo "<td align=right>".number_format($sts_data["Rows"], 0, $number_decimal_separator, $number_thousands_separator)."</td>\n";
|
||||
$tblsize=$sts_data["Data_length"]+$sts_data["Index_length"];
|
||||
$sum_size+=$tblsize;
|
||||
$sum_entries+=$sts_data["Rows"];
|
||||
@@ -115,7 +115,7 @@ else if (MYSQL_MAJOR_VERSION>=3.23 && isset($tbl_cache)){
|
||||
if (!empty($strSum)) echo $strSum;
|
||||
echo "</td>\n";
|
||||
list ($sum_formated,$unit)=format_byte_down($sum_size,3,1);
|
||||
echo "<td align=right>".number_format($sum_entries,0,',','.')."</td>\n";
|
||||
echo "<td align=right>".number_format($sum_entries, 0, $number_decimal_separator, $number_thousands_separator)."</td>\n";
|
||||
echo "<td align=right>$sum_formated $unit</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "Acesso Negado";
|
||||
$strAction = "A<EFBFBD><EFBFBD>es";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "windows-1251";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
$strAction = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "Access denegat";
|
||||
$strAction = "Acció";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "big5";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "<EFBFBD>X<EFBFBD>ݳQ<EFBFBD>ڵ<EFBFBD>";
|
||||
$strAction = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ާ@";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "gb2312";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "<EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>ܾ<EFBFBD>";
|
||||
$strAction = "ִ<EFBFBD>в<EFBFBD><EFBFBD><EFBFBD>";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-2";
|
||||
$left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "P<EFBFBD><EFBFBD>stup odep<65>en";
|
||||
$strAction = "Akce";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "windows-1250";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "P<EFBFBD><EFBFBD>stup odep<65>en";
|
||||
$strAction = "Akce";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "Adgang Nægtet";
|
||||
$strAction = "Handling";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "Toegang geweigerd ";
|
||||
$strAction = "Aktie";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "Access denied";
|
||||
$strAction = "Action";
|
||||
@@ -251,7 +253,7 @@ $strUsage = "Usage";
|
||||
$strUser = "User";
|
||||
$strUserEmpty = "The user name is empty!";
|
||||
$strUserName = "User name";
|
||||
$strUsers = "Users and privileges";
|
||||
$strUsers = "Users";
|
||||
$strUseTables = ""; //to translate, but its not in use ...
|
||||
|
||||
$strValue = "Value";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = " ";
|
||||
$number_decimal_separator = ",";
|
||||
|
||||
$strAccessDenied = "Acc<EFBFBD>s refus<75>";
|
||||
$strAction = "Action";
|
||||
@@ -13,8 +15,8 @@ $strAddNewField = "Ajouter un champ";
|
||||
$strAddPriv = "Ajouter un privil<69>ge";
|
||||
$strAddPrivMessage = "Vous avez ajout<75> un privil<69>ge";
|
||||
$strAddSearchConditions = "Crit<EFBFBD>res de recherche (pour l'<27>nonc<6E> \"where\"):";
|
||||
$strAddUser = "Ajouter un utilisateur";
|
||||
$strAddUserMessage = "Vous avez ajout<75> un utilisateur";
|
||||
$strAddUser = "Ajouter un usager";
|
||||
$strAddUserMessage = "Vous avez ajout<75> un usager";
|
||||
$strAfter = "Apr<EFBFBD>s";
|
||||
$strAll = "Tout";
|
||||
$strAlterOrderBy = "<b>Ordonner</b> la table par";
|
||||
@@ -26,7 +28,7 @@ $strAnyColumn = "Toute colonne";
|
||||
$strAnyDatabase = "Toute base de donn<6E>es";
|
||||
$strAnyHost = "Tout serveur";
|
||||
$strAnyTable = "Toute table";
|
||||
$strAnyUser = "Tout utilisateur";
|
||||
$strAnyUser = "Tout usager";
|
||||
$strAPrimaryKey = "Une cl<63> primaire a <20>t<EFBFBD> ajout<75>e sur";
|
||||
$strAscending = "Croissant";
|
||||
$strAtBeginningOfTable = "En d<>but de Table";
|
||||
@@ -70,7 +72,7 @@ $strDelete = "Effacer";
|
||||
$strDeleted = "L'enregistrement a <20>t<EFBFBD> effac<61>";
|
||||
$strDeleteFailed = "L'effacement a <20>chou<6F>";
|
||||
$strDeletePassword = "Effacer le mot de passe";
|
||||
$strDeleteUserMessage = "Vous avez effac<61> l'utilisateur";
|
||||
$strDeleteUserMessage = "Vous avez effac<61> l'usager";
|
||||
$strDelPassMessage = "Vous avez effac<61> le mot de passe de ";
|
||||
$strDescending = "D<EFBFBD>croissant";
|
||||
$strDisableMagicQuotes = "<b>Attention:</b> Vous avez positionn<6E> magic_quotes_gpc dans la configuration de PHP. Cette version de PhpMyAdmin ne peut fonctionner correctement avec. Veuillez vous r<>f<EFBFBD>rer au paragraphe traitant de la configration dans la documentation de PHP pour positionner cette variable <20> off.";
|
||||
@@ -155,7 +157,7 @@ $strNoRights = "Vous n'
|
||||
$strNoTablesFound = "Aucune table n'a <20>t<EFBFBD> trouv<75>e dans cette base.";
|
||||
$strNotNumber = "Ce n'est pas un nombre !";
|
||||
$strNotValidNumber = " n'est pas un nombre valide !";
|
||||
$strNoUsersFound = "Il n'y a aucun utilisateur";
|
||||
$strNoUsersFound = "Il n'y a aucun usager";
|
||||
$strNull = "Null";
|
||||
$strNumberIndexes = " Nombre d'index sp<73>ciaux ";
|
||||
|
||||
@@ -251,10 +253,10 @@ $strUpdatePassword = "Changer le mot de passe";
|
||||
$strUpdatePrivMessage = "Vous avez modifi<66> les privil<69>ges pour";
|
||||
$strUpdateQuery = "Mise-<2D>-jour de la requ<71>te";
|
||||
$strUsage = "Espace";
|
||||
$strUser = "Utilisateur";
|
||||
$strUserEmpty = "Le nom d'utilisateur est vide";
|
||||
$strUserName = "Nom d'utilisateur";
|
||||
$strUsers = "Utilisateurs et privil<69>ges";
|
||||
$strUser = "Usager";
|
||||
$strUserEmpty = "Le nom d'usager est vide";
|
||||
$strUserName = "Nom d'usager";
|
||||
$strUsers = "Usagers";
|
||||
$strUseTables = "Utiliser les tables";
|
||||
|
||||
$strValue = "Valeur";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "Zugriff verweigert.";
|
||||
$strAction = "Aktion";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "Accesso negato";
|
||||
$strAction = "Azione";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "euc-jp";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><EFBFBD>ݤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
$strAction = "<EFBFBD>¹<EFBFBD>";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "ks_c_5601-1987";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>źεǾ<CEB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.";
|
||||
$strAction = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "Ingen tilgang";
|
||||
$strAction = "Handling";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-2";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "Brak dost<73>pu";
|
||||
$strAction = "Dzia<EFBFBD>anie";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "Acesso Negado";
|
||||
$strAction = "A<EFBFBD><EFBFBD>es";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "koi8-r";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
$strAction = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "windows-1251";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
$strAction = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "Acceso denegado ";
|
||||
$strAction = "Acción";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "iso-8859-1";
|
||||
$left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "<EFBFBD>tkommst nekad";
|
||||
$strAction = "Handling";
|
||||
|
@@ -4,6 +4,8 @@
|
||||
$charset = "tis-620";
|
||||
$left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
|
||||
$strAccessDenied = "<EFBFBD><EFBFBD><EFBFBD>حҵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҹ";#Access denied";
|
||||
$strAction = "<EFBFBD><EFBFBD>зӡ<EFBFBD><EFBFBD>";
|
||||
|
@@ -943,9 +943,12 @@ function format_byte_down($value,$limes=6,$comma=0){
|
||||
$value=round($value/(1024/$dh))/$dh;
|
||||
$unit="KB";
|
||||
}
|
||||
if ($unit!="Byte") $returnvalue=number_format($value,$comma,',','.');
|
||||
else $returnvalue=number_format($value,0,',','.');
|
||||
return array($returnvalue,$unit);
|
||||
if ($unit!="Byte") {
|
||||
$return_value = number_format($value, $comma, $GLOBALS['number_decimal_separator'], $GLOBALS['number_thousands_separator']);
|
||||
} else {
|
||||
$return_value = number_format($value, 0, $GLOBALS['number_decimal_separator'], $GLOBALS['number_thousands_separator']);
|
||||
}
|
||||
return array($return_value, $unit);
|
||||
}
|
||||
|
||||
// to support special characters in db names: Lem9, 2001-06-27
|
||||
|
Reference in New Issue
Block a user