Skip to content

Commit 1dd9215

Browse files
committed
Fixed: FS#601 - DNS Manager: delete_confirmation not translated
1 parent a0b9297 commit 1dd9215

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

interface/lib/classes/plugin_listview.inc.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ function onShow() {
8383
$sql_order_by = $this->options["sql_order_by"];
8484
}
8585

86+
// Loading language field
87+
$lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
88+
include($lng_file);
89+
$listTpl->setVar($wb);
90+
8691

8792
// Get the data
8893
$records = $app->db->queryAllRecords("SELECT * FROM ".$app->listform->listDef["table"]." WHERE $sql_where $sql_order_by $limit_sql");
@@ -115,19 +120,14 @@ function onShow() {
115120

116121
// The variable "id" contains always the index field
117122
$rec["id"] = $rec[$idx_key];
118-
$rec["delete_confirmation"] = $app->lng('delete_confirmation');
123+
$rec["delete_confirmation"] = $wb['delete_confirmation'];
119124

120125
$records_new[] = $rec;
121126
}
122127
}
123128

124129
$listTpl->setLoop('records',@$records_new);
125130

126-
// Loading language field
127-
$lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
128-
include($lng_file);
129-
$listTpl->setVar($wb);
130-
131131
// Setting Returnto information in the session
132132
$list_name = $app->listform->listDef["name"];
133133
// $_SESSION["s"]["list"][$list_name]["parent_id"] = $app->tform_actions->id;

interface/web/dns/lib/lang/en_dns_a_list.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ $wb["type_txt"] = 'Type';
1010
$wb["add_new_record_txt"] = 'Add new DNS A-Record';
1111
$wb["page_txt"] = 'Page';
1212
$wb["page_of_txt"] = 'of';
13+
$wb['delete_confirmation'] = 'Do you really want to delete this record?';
1314
?>

0 commit comments

Comments
 (0)