Size units are now language dependant
This commit is contained in:
@@ -23,7 +23,7 @@ $Source$
|
||||
commited some cosmetic changes.
|
||||
* lib.inc.php3, lines 706 & 946-950; db_details.php3, lines 96 & 118;
|
||||
language files: thousands and decimal separators are now language
|
||||
dependant.
|
||||
dependant, size units also.
|
||||
* tbl_dump.php3, lines 78: Added a '#' before 'No tables found' so the
|
||||
generated dump file may be imported later even if there is no table.
|
||||
* db_printview.php3, line 29: Cosmetic change in column case name.
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "Acesso Negado";
|
||||
$strAction = "A<EFBFBD><EFBFBD>es";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
$strAction = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "Access denegat";
|
||||
$strAction = "Acció";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "<EFBFBD>X<EFBFBD>ݳQ<EFBFBD>ڵ<EFBFBD>";
|
||||
$strAction = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ާ@";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "<EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>ܾ<EFBFBD>";
|
||||
$strAction = "ִ<EFBFBD>в<EFBFBD><EFBFBD><EFBFBD>";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "P<EFBFBD><EFBFBD>stup odep<65>en";
|
||||
$strAction = "Akce";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "P<EFBFBD><EFBFBD>stup odep<65>en";
|
||||
$strAction = "Akce";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "Adgang Nægtet";
|
||||
$strAction = "Handling";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "Toegang geweigerd ";
|
||||
$strAction = "Aktie";
|
||||
|
@@ -6,6 +6,8 @@ $left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
|
||||
$strAccessDenied = "Access denied";
|
||||
$strAction = "Action";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = " ";
|
||||
$number_decimal_separator = ",";
|
||||
$byteUnits = array("Octets", "Ko", "Mo", "Go");
|
||||
|
||||
$strAccessDenied = "Acc<EFBFBD>s refus<75>";
|
||||
$strAction = "Action";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "Zugriff verweigert.";
|
||||
$strAction = "Aktion";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "Accesso negato";
|
||||
$strAction = "Azione";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><EFBFBD>ݤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
$strAction = "<EFBFBD>¹<EFBFBD>";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>źεǾ<CEB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.";
|
||||
$strAction = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "Ingen tilgang";
|
||||
$strAction = "Handling";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "Brak dost<73>pu";
|
||||
$strAction = "Dzia<EFBFBD>anie";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "Acesso Negado";
|
||||
$strAction = "A<EFBFBD><EFBFBD>es";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
$strAction = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
$strAction = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "Acceso denegado ";
|
||||
$strAction = "Acción";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "verdana, helvetica, arial, geneva, sans-serif";
|
||||
$right_font_family = "helvetica, arial, geneva, sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "<EFBFBD>tkommst nekad";
|
||||
$strAction = "Handling";
|
||||
|
@@ -6,6 +6,7 @@ $left_font_family = "sans-serif";
|
||||
$right_font_family = "sans-serif";
|
||||
$number_thousands_separator = ",";
|
||||
$number_decimal_separator = ".";
|
||||
$byteUnits = array("Bytes", "KB", "MB", "GB");
|
||||
|
||||
$strAccessDenied = "<EFBFBD><EFBFBD><EFBFBD>حҵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҹ";#Access denied";
|
||||
$strAction = "<EFBFBD><EFBFBD>зӡ<EFBFBD><EFBFBD>";
|
||||
|
33
lib.inc.php3
33
lib.inc.php3
@@ -922,33 +922,44 @@ function delete_bookmarks($db, $cfgBookmark, $id) {
|
||||
$cfgBookmark=get_bookmarks_param();
|
||||
|
||||
|
||||
// formats $value to byte view - staybyte - 15. June 2001
|
||||
// $comma <= how many comma
|
||||
// $limes <= sensitiveness
|
||||
function format_byte_down($value,$limes=6,$comma=0){
|
||||
/**
|
||||
* Formats $value to byte view
|
||||
*
|
||||
* @param double the value to format
|
||||
* @param integer the sensitiveness
|
||||
* @param integer the number of decimals to retain
|
||||
*
|
||||
* @return array the formatted value and its unit
|
||||
*
|
||||
* @author staybyte
|
||||
* @version 1.1 - 07 July 2001
|
||||
*/
|
||||
function format_byte_down($value, $limes = 6, $comma = 0)
|
||||
{
|
||||
$dh = pow(10, $comma);
|
||||
$li = pow(10, $limes);
|
||||
$returnvalue=$value;
|
||||
$unit="Byte";
|
||||
$return_value = $value;
|
||||
$unit = $GLOBALS['byteUnits'][0];
|
||||
if ($value >= $li*1000000) {
|
||||
$value = round($value/(1073741824/$dh))/$dh;
|
||||
$unit="GB";
|
||||
$unit = $GLOBALS['byteUnits'][3];
|
||||
}
|
||||
else if ($value >= $li*1000) {
|
||||
$value = round($value/(1048576/$dh))/$dh;
|
||||
$unit="MB";
|
||||
$unit = $GLOBALS['byteUnits'][2];
|
||||
}
|
||||
else if ($value >= $li) {
|
||||
$value = round($value/(1024/$dh))/$dh;
|
||||
$unit="KB";
|
||||
$unit = $GLOBALS['byteUnits'][1];
|
||||
}
|
||||
if ($unit!="Byte") {
|
||||
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);
|
||||
}
|
||||
} // end of the 'format_byte_down' function
|
||||
|
||||
|
||||
// to support special characters in db names: Lem9, 2001-06-27
|
||||
|
||||
|
Reference in New Issue
Block a user