Skip to content

Commit d8d70b3

Browse files
committed
Use translated string instead of untranslated string unlimited #5476
1 parent 00260e6 commit d8d70b3

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

interface/lib/classes/quota_lib.inc.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ public function get_quota_data($clientid = null, $readable = true) {
7171
$sites[$i]['hard'] .= ' KB';
7272
}
7373

74-
if($sites[$i]['soft'] == " KB") $sites[$i]['soft'] = $app->lng('unlimited');
75-
if($sites[$i]['hard'] == " KB") $sites[$i]['hard'] = $app->lng('unlimited');
74+
if($sites[$i]['soft'] == " KB") $sites[$i]['soft'] = $app->lng('unlimited_txt');
75+
if($sites[$i]['hard'] == " KB") $sites[$i]['hard'] = $app->lng('unlimited_txt');
7676

77-
if($sites[$i]['soft'] == '0 B' || $sites[$i]['soft'] == '0 KB' || $sites[$i]['soft'] == '0') $sites[$i]['soft'] = $app->lng('unlimited');
78-
if($sites[$i]['hard'] == '0 B' || $sites[$i]['hard'] == '0 KB' || $sites[$i]['hard'] == '0') $sites[$i]['hard'] = $app->lng('unlimited');
77+
if($sites[$i]['soft'] == '0 B' || $sites[$i]['soft'] == '0 KB' || $sites[$i]['soft'] == '0') $sites[$i]['soft'] = $app->lng('unlimited_txt');
78+
if($sites[$i]['hard'] == '0 B' || $sites[$i]['hard'] == '0 KB' || $sites[$i]['hard'] == '0') $sites[$i]['hard'] = $app->lng('unlimited_txt');
7979

8080
/*
8181
if(!strstr($sites[$i]['used'],'M') && !strstr($sites[$i]['used'],'K')) $sites[$i]['used'].= ' B';
@@ -266,7 +266,7 @@ public function get_mailquota_data($clientid = null, $readable = true) {
266266
if($used_ratio >= 1) $emails[$i]['display_colour'] = '#cc0000';
267267

268268
if($emails[$i]['quota'] == 0){
269-
$emails[$i]['quota'] = $app->lng('unlimited');
269+
$emails[$i]['quota'] = $app->lng('unlimited_txt');
270270
} else {
271271
$emails[$i]['quota'] = round($emails[$i]['quota'] / 1048576, 1).' MB';
272272
}
@@ -327,7 +327,7 @@ public function get_databasequota_data($clientid = null, $readable = true) {
327327
if($used_ratio >= 1) $databases[$i]['display_colour'] = '#cc0000';
328328

329329
if($databases[$i]['database_quota'] == 0){
330-
$databases[$i]['database_quota'] = $app->lng('unlimited');
330+
$databases[$i]['database_quota'] = $app->lng('unlimited_txt');
331331
} else {
332332
$databases[$i]['database_quota'] = $databases[$i]['database_quota'] . ' MB';
333333
}

interface/web/mail/user_quota_stats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function prepareDataRow($rec)
5252
if (!is_numeric($rec['used'])) $rec['used']=$rec['used'][1];
5353

5454
if($rec['quota'] == 0){
55-
$rec['quota'] = $app->lng('unlimited');
55+
$rec['quota'] = $app->lng('unlimited_txt');
5656
$rec['percentage'] = '';
5757
$rec['percentage_sort'] = 0;
5858
} else {

interface/web/sites/database_quota_stats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function prepareDataRow($rec) {
7272
$rec['quota'] = $monitor_data[$rec['server_id'].'.'.$database_name]['quota'];
7373

7474
if($rec['quota'] == 0){
75-
$rec['quota'] = $app->lng('unlimited');
75+
$rec['quota'] = $app->lng('unlimited_txt');
7676
$rec['percentage'] = '';
7777
} else {
7878
if ($rec['used'] > 0 ) $rec['percentage'] = round(100 * intval($rec['used']) / ( intval($rec['quota'])*1024*1024) ).'%';

interface/web/sites/user_quota_stats.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ function prepareDataRow($rec)
6363
$rec['used']=$app->functions->formatBytes($rec['used']*1024);
6464
$rec['soft']=$app->functions->formatBytes($rec['soft']*1024);
6565
$rec['hard']=$app->functions->formatBytes($rec['hard']*1024);
66-
if($rec['soft'] == "NAN") $rec['soft'] = $app->lng('unlimited');
67-
if($rec['hard'] == "NAN") $rec['hard'] = $app->lng('unlimited');
66+
if($rec['soft'] == "NAN") $rec['soft'] = $app->lng('unlimited_txt');
67+
if($rec['hard'] == "NAN") $rec['hard'] = $app->lng('unlimited_txt');
6868
/*
6969
if($rec['used'] > 1024) {
7070
$rec['used'] = round($rec['used'] / 1024, 2).' MB';
@@ -84,8 +84,8 @@ function prepareDataRow($rec)
8484
$rec['hard'] .= ' KB';
8585
}
8686
87-
if($rec['soft'] == " KB") $rec['soft'] = $app->lng('unlimited');
88-
if($rec['hard'] == " KB") $rec['hard'] = $app->lng('unlimited');
87+
if($rec['soft'] == " KB") $rec['soft'] = $app->lng('unlimited_txt');
88+
if($rec['hard'] == " KB") $rec['hard'] = $app->lng('unlimited_txt');
8989
*/
9090

9191
/*
@@ -94,8 +94,8 @@ function prepareDataRow($rec)
9494
if(!strstr($rec['hard'],'M') && !strstr($rec['hard'],'K')) $rec['hard'].= ' B';
9595
*/
9696
/*
97-
if($rec['soft'] == '0 B' || $rec['soft'] == '0 KB' || $rec['soft'] == '0') $rec['soft'] = $app->lng('unlimited');
98-
if($rec['hard'] == '0 B' || $rec['hard'] == '0 KB' || $rec['hard'] == '0') $rec['hard'] = $app->lng('unlimited');
97+
if($rec['soft'] == '0 B' || $rec['soft'] == '0 KB' || $rec['soft'] == '0') $rec['soft'] = $app->lng('unlimited_txt');
98+
if($rec['hard'] == '0 B' || $rec['hard'] == '0 KB' || $rec['hard'] == '0') $rec['hard'] = $app->lng('unlimited_txt');
9999
*/
100100
//* The variable "id" contains always the index variable
101101
$rec['id'] = $rec[$this->idx_key];

0 commit comments

Comments
 (0)