tbrehm
2009-03-07 1dd92154444ba80b4849be2672abf38bcd1cc329
Fixed: FS#601 - DNS Manager: delete_confirmation not translated 
2 files modified
13 ■■■■ changed files
interface/lib/classes/plugin_listview.inc.php 12 ●●●● patch | view | raw | blame | history
interface/web/dns/lib/lang/en_dns_a_list.lng 1 ●●●● patch | view | raw | blame | history
interface/lib/classes/plugin_listview.inc.php
@@ -83,6 +83,11 @@
                    $sql_order_by = $this->options["sql_order_by"];
                }
                
                // Loading language field
                $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
                include($lng_file);
                $listTpl->setVar($wb);
                // Get the data
                $records = $app->db->queryAllRecords("SELECT * FROM ".$app->listform->listDef["table"]." WHERE $sql_where $sql_order_by $limit_sql");
@@ -115,18 +120,13 @@
                                // The variable "id" contains always the index field
                                $rec["id"] = $rec[$idx_key];
                                $rec["delete_confirmation"] = $app->lng('delete_confirmation');
                                $rec["delete_confirmation"] = $wb['delete_confirmation'];
                                $records_new[] = $rec;
                        }
                }
                $listTpl->setLoop('records',@$records_new);
                // Loading language field
                $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
                include($lng_file);
                $listTpl->setVar($wb);
                // Setting Returnto information in the session
                $list_name = $app->listform->listDef["name"];
interface/web/dns/lib/lang/en_dns_a_list.lng
@@ -10,4 +10,5 @@
$wb["add_new_record_txt"] = 'Add new DNS A-Record';
$wb["page_txt"] = 'Page';
$wb["page_of_txt"] = 'of';
$wb['delete_confirmation'] = 'Do you really want to delete this record?';
?>