Skip to content

Commit eccdbfd

Browse files
committed
moving i18n strings out of core to specific modules
1 parent 72dd233 commit eccdbfd

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_Store
2+
.idea

code/Module.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private function addHtmlExportGroup()
236236
"group_name" => $L["phrase_html_printer_friendly"],
237237
"icon" => "printer.png",
238238
"action" => "popup",
239-
"action_button_text" => $LANG["word_display"],
239+
"action_button_text" => $L["word_display"],
240240
"popup_height" => 600,
241241
"popup_width" => 800,
242242
"smarty_template" => $smarty_template
@@ -522,7 +522,7 @@ private function createTables()
522522
$LANG = Core::$L;
523523

524524
$queries = array();
525-
$word_display = addcslashes($LANG["word_display"], "''");
525+
$word_display = addcslashes($L["word_display"], "''");
526526
$queries[] = "
527527
CREATE TABLE {PREFIX}module_export_groups (
528528
export_group_id smallint(5) unsigned NOT NULL auto_increment,

lang/en_us.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
$L["module_description"] = "Define your own ways of exporting form submission data for view / download. Excel, Printer-friendly HTML, XML and CSV are included by default.";
88

99
// custom fields
10+
$L["word_all"] = "all";
11+
$L["word_display"] = "Display";
12+
$L["word_download"] = "Download";
1013
$L["word_help"] = "Help";
1114
$L["word_filename"] = "Filename";
1215
$L["word_icon"] = "Icon";

module_config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"Type" => "varchar(255)",
6565
"Null" => "NO",
6666
"Key" => "",
67-
"Default" => "{\$LANG.word_display}"
67+
"Default" => "{\$L.word_display}"
6868
),
6969
array(
7070
"Field" => "popup_height",

templates/export_options_html.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<div class="module_section export_manager_module">
2323
{if $is_admin}<div class="module_link"><a href="{$g_root_url}/modules/export_manager"></a></div>{/if}
2424
25-
<h2>{$LANG.word_download} / {$L.word_export}</h2>
25+
<h2>{$L.word_download} / {$L.word_export}</h2>
2626
2727
<table cellpadding="0" cellpadding="0">
2828
{foreach from=$export_groups item=export_group name=row}
@@ -34,7 +34,7 @@
3434
{assign var=var_name value="export_group_`$export_group_id`_results"}
3535
<input type="radio" name="export_group_{$export_group_id}_results" id="export_group_{$export_group_id}_results_1" value="all"
3636
{if !isset($SESSION.$var_name) || $SESSION.$var_name == "all"}checked{/if} />
37-
<label for="export_group_{$export_group_id}_results_1"">{$LANG.word_all}</label>
37+
<label for="export_group_{$export_group_id}_results_1"">{$L.word_all}</label>
3838
<input type="radio" name="export_group_{$export_group_id}_results" id="export_group_{$export_group_id}_results_2" value="selected"
3939
{if isset($SESSION.$var_name) && $SESSION.$var_name == "selected"}checked{/if} />
4040
<label for="export_group_{$export_group_id}_results_2"">{$LANG.word_selected}</label>

0 commit comments

Comments
 (0)