Skip to content

Commit c955cb0

Browse files
author
Marius Burkard
committed
Merge branch 'aps-load-language-for-list' into 'stable-3.1'
Load APS language file for APS instance list See merge request ispconfig/ispconfig3!915
2 parents 7d65244 + 0bbef70 commit c955cb0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

interface/web/sites/list/aps_installedpackages.list.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*/
3030

31+
// Load the APS language file
32+
$lngfile = 'lib/lang/'.$app->functions->check_language($_SESSION['s']['language']).'_aps.lng';
33+
require_once $lngfile;
34+
$app->tpl->setVar($wb);
35+
$app->load_language_file('web/sites/'.$lngfile);
36+
3137
$liste['name'] = 'aps_instances'; // Name of the list
3238
$liste['table'] = 'aps_instances'; // Database table
3339
$liste['table_idx'] = 'id'; // Table index
@@ -85,9 +91,9 @@
8591
'prefix' => '',
8692
'suffix' => '',
8793
'width' => '',
88-
'value' => array(INSTANCE_INSTALL => $app->lng('Installation_task'),
89-
INSTANCE_ERROR => $app->lng('Installation_error'),
90-
INSTANCE_SUCCESS => $app->lng('Installation_success'),
91-
INSTANCE_REMOVE => $app->lng('Installation_remove')),
94+
'value' => array(INSTANCE_INSTALL => $app->lng('installation_task_txt'),
95+
INSTANCE_ERROR => $app->lng('installation_error_txt'),
96+
INSTANCE_SUCCESS => $app->lng('installation_success_txt'),
97+
INSTANCE_REMOVE => $app->lng('installation_remove_txt')),
9298
'table' => 'aps_instances');
9399
?>

0 commit comments

Comments
 (0)