Skip to content

Commit 1d88813

Browse files
committed
Fix trans for free mode
1 parent 1e1c39d commit 1d88813

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

admin/setup_register_security.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@
547547
print '<tr class="liste_titre"><td colspan="3">Security for communication from master to deployment servers (Deprecated. Use instead a different key on each deployment server)</td></tr>';
548548

549549
print '<tr class="oddeven"><td>'.$langs->trans("SELLYOURSAAS_REMOTE_ACTION_SIGNATURE_KEY").'</td>';
550-
print '<td>';
550+
print '<td class="nowraponall">';
551551
print '<input type="text" class="width300" name="SELLYOURSAAS_REMOTE_ACTION_SIGNATURE_KEY" id="SELLYOURSAAS_REMOTE_ACTION_SIGNATURE_KEY" value="'.getDolGlobalString('SELLYOURSAAS_REMOTE_ACTION_SIGNATURE_KEY').'">';
552552
if (!empty($conf->use_javascript_ajax)) {
553553
// TODO Set the type of input in password and add a button "show"

backoffice/index.php

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,16 @@
402402
print '<font size="+2">'.$totalresellers.'</font>';
403403
print '</td></tr>';
404404
print '<tr class="oddeven"><td class="wordwrap wordbreak">';
405-
$texthelp = $langs->trans("NbOfInstancesActivePayingDesc");
405+
406+
$transkeyforactivepayinghelp = "NbOfInstancesActivePayingDesc";
407+
$transkeyfornbinstanceactivepaying = "NbOfInstancesActivePaying";
408+
$transkeyfornbinstanceactivepayingall = "NbOfInstancesActivePayingAll";
409+
if (getDolGlobalString('SELLYOURSAAS_ENABLE_FREE_PAYMENT_MODE')) {
410+
$transkeyfornbinstanceactivepaying = "NbOfInstancesActiveFree";
411+
$transkeyfornbinstanceactivepayingall = "NbOfInstancesActiveFreeAll";
412+
}
413+
414+
$texthelp = $langs->trans($transkeyforactivepayinghelp);
406415
$stringlistofinstancespayingwithoutrecinvoice = '';
407416
$nboflistofinstancespayingwithoutrecinvoice = 0;
408417
if (!empty($rep) && is_array($rep['listofinstancespayingwithoutrecinvoice'])) {
@@ -412,15 +421,15 @@
412421
$stringlistofinstancespayingwithoutrecinvoice .= ($stringlistofinstancespayingwithoutrecinvoice ? ', ' : '').$arrayofcontract['thirdparty_name'].' - '.$arrayofcontract['contract_ref']."\n";
413422
}
414423
}
415-
print $form->textwithpicto($langs->trans("NbOfInstancesActivePaying"), $texthelp);
424+
print $form->textwithpicto($langs->trans($transkeyfornbinstanceactivepaying), $texthelp);
416425
if ($mode == 'refreshstats') { // Info not saved into session (too large), so we show it only after a refresh
417426
$texthelp = $langs->trans("NbOfInstancesActivePayingWithoutRecInvoice", $nboflistofinstancespayingwithoutrecinvoice);
418427
if ($stringlistofinstancespayingwithoutrecinvoice) {
419428
$texthelp .= '<br>';
420429
$texthelp .= $stringlistofinstancespayingwithoutrecinvoice;
421430
}
422431
}
423-
print ' | '.$form->textwithpicto($langs->trans("NbOfInstancesActivePayingAll"), $texthelp).' | '.$langs->trans("NbOfActiveInstances").' ';
432+
print ' | '.$form->textwithpicto($langs->trans($transkeyfornbinstanceactivepayingall), $texthelp).' | '.$langs->trans("NbOfActiveInstances").' ';
424433
print '</td><td align="right">';
425434
if (! empty($_SESSION['stats_totalusers'])) {
426435
print '<font size="+2">'.$totalinstancespaying.' | '.$totalinstancespayingall.' | '.$totalinstances.'</font>';
@@ -501,7 +510,7 @@
501510
print '</div></div></div>';
502511

503512
//$servicetouse='old';
504-
$servicetouse=strtolower($conf->global->SELLYOURSAAS_NAME);
513+
$servicetouse=strtolower(getDolGlobalString('SELLYOURSAAS_NAME'));
505514
$regs = array();
506515

507516
// array(array(0=>'labelxA',1=>yA1,...,n=>yAn), array('labelxB',yB1,...yBn))

langs/en_US/sellyoursaas.lang

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ NbOfCustomersActivePaying=Nb of active paying customers
2828
NbOfCustomers=Nb of customers
2929
NbOfInstancesActivePaying=Number of good standing paid instances
3030
NbOfInstancesActivePayingAll=Number of paying instances
31+
NbOfInstancesActiveFree=Number of good standing confirmed instances
32+
NbOfInstancesActiveFreeAll=Number of confirmed instances
3133
NbOfInstancesActivePayingDesc=Number of instances deployed with existing active recurring invoice, non expired and non suspended
3234
NbOfInstancesActivePayingWithoutRecInvoice=Note: %s instances(s) of paying customers have no enabled recurring invoice (instance suspended on customer request but not yet undeployed)
3335
NbOfInstancesPaying=Nb of non test instances

0 commit comments

Comments
 (0)