diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-01-01 22:32:55 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-01-01 22:32:55 +0000 |
| commit | 7241cd7d984697cb80051182be4def01a2c7cef4 (patch) | |
| tree | 2c3f01302a16c3957083c4faffc7634a8d7c2c8c /index_edit.php | |
| parent | e4064f28a6c640db7d4324ab486b2917c1b0dc1b (diff) | |
| download | webtrees-7241cd7d984697cb80051182be4def01a2c7cef4.tar.gz webtrees-7241cd7d984697cb80051182be4def01a2c7cef4.tar.bz2 webtrees-7241cd7d984697cb80051182be4def01a2c7cef4.zip | |
Refactoring class names and use autoloading.
Diffstat (limited to 'index_edit.php')
| -rw-r--r-- | index_edit.php | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/index_edit.php b/index_edit.php index 8a4e22e3b4..a59c406f62 100644 --- a/index_edit.php +++ b/index_edit.php @@ -51,8 +51,8 @@ if (isset($_REQUEST['name'])) $name = $_REQUEST['name']; //-- otherwise have them login again if (!WT_USER_ID) { print_simple_header(''); - echo i18n::translate('<b>Access Denied</b><br />You do not have access to this resource.'); - echo '<div class="center"><a href="javascript:;" onclick="self.close();">', i18n::translate('Close Window').'</a></div>'; + echo WT_I18N::translate('<b>Access Denied</b><br />You do not have access to this resource.'); + echo '<div class="center"><a href="javascript:;" onclick="self.close();">', WT_I18N::translate('Close Window').'</a></div>'; print_simple_footer(); exit; } @@ -97,7 +97,7 @@ if ($ctype=='user') { } if ($ctype=='user') { - print_simple_header(i18n::translate('My Page')); + print_simple_header(WT_I18N::translate('My Page')); } else { print_simple_header(get_gedcom_setting(WT_GED_ID, 'title')); } @@ -148,7 +148,7 @@ if ($action=="configure") { $block=new $class_name; echo "<table class=\"facts_table ".$TEXT_DIRECTION."\" width=\"99%\">"; echo "<tr><td class=\"facts_label\">"; - echo "<h2>".i18n::translate('Configure')."</h2>"; + echo "<h2>".WT_I18N::translate('Configure')."</h2>"; echo "</td></tr>"; echo "<tr><td class=\"facts_label03\">"; echo "<b>".$block->getTitle()."</b>"; @@ -169,8 +169,8 @@ if ($action=="configure") { echo "<table border=\"0\" class=\"facts_table ".$TEXT_DIRECTION."\">"; $block->configureBlock($block_id); echo "<tr><td colspan=\"2\" class=\"topbottombar\">"; - echo "<input type=\"button\" value=\"".i18n::translate('Save')."\" onclick=\"document.block.submit();\" />"; - echo " <input type =\"button\" value=\"".i18n::translate('Cancel')."\" onclick=\"window.close()\" />"; + echo "<input type=\"button\" value=\"".WT_I18N::translate('Save')."\" onclick=\"document.block.submit();\" />"; + echo " <input type =\"button\" value=\"".WT_I18N::translate('Cancel')."\" onclick=\"window.close()\" />"; echo "</td></tr>"; echo "</table>"; echo "</form>"; @@ -266,7 +266,7 @@ if ($action=="configure") { foreach ($all_blocks as $block_name=>$block) { echo "block_descr['$block_name'] = '".str_replace("'", "\\'", $block->getDescription())."';"; } - echo "block_descr['advice1'] = '".str_replace("'", "\\'", i18n::translate('Highlight a block name and then click on one of the arrow icons to move that highlighted block in the indicated direction.'))."';"; + echo "block_descr['advice1'] = '".str_replace("'", "\\'", WT_I18N::translate('Highlight a block name and then click on one of the arrow icons to move that highlighted block in the indicated direction.'))."';"; ?> @@ -311,28 +311,28 @@ if ($action=="configure") { <table dir="ltr" border="1" width="400px"> <tr><td class="topbottombar" colspan="7"> <?php - if ($ctype=="user") echo "<b>".i18n::translate('Customize My Page')."</b>"; - else echo "<b>".i18n::translate('Customize this GEDCOM Home Page')."</b>"; + if ($ctype=="user") echo "<b>".WT_I18N::translate('Customize My Page')."</b>"; + else echo "<b>".WT_I18N::translate('Customize this GEDCOM Home Page')."</b>"; echo help_link('portal_config_intructions'); echo "</td></tr>"; // NOTE: Row 1: Column legends echo "<tr>"; echo "<td class=\"descriptionbox center vmiddle\" colspan=\"2\">"; - echo "<b>".i18n::translate('Main Section Blocks')."</b>"; + echo "<b>".WT_I18N::translate('Main Section Blocks')."</b>"; echo "</td>"; echo "<td class=\"descriptionbox center vmiddle\" colspan=\"3\">"; - echo "<b>".i18n::translate('Available Blocks')."</b>"; + echo "<b>".WT_I18N::translate('Available Blocks')."</b>"; echo "</td>"; echo "<td class=\"descriptionbox center vmiddle\" colspan=\"2\">"; - echo "<b>".i18n::translate('Right Section Blocks')."</b>"; + echo "<b>".WT_I18N::translate('Right Section Blocks')."</b>"; echo "</td>"; echo "</tr>"; echo "<tr>"; // NOTE: Row 2 column 1: Up/Down buttons for left (main) block list echo "<td class=\"optionbox width20px center vmiddle\">"; - echo "<a tabindex=\"-1\" onclick=\"move_up_block('main_select');\" title=\"".i18n::translate('Move up')."\">".$IconUarrow."</a>"; + echo "<a tabindex=\"-1\" onclick=\"move_up_block('main_select');\" title=\"".WT_I18N::translate('Move up')."\">".$IconUarrow."</a>"; echo "<br />"; - echo "<a tabindex=\"-1\" onclick=\"move_down_block('main_select');\" title=\"".i18n::translate('Move down')."\">".$IconDarrow."</a>"; + echo "<a tabindex=\"-1\" onclick=\"move_down_block('main_select');\" title=\"".WT_I18N::translate('Move down')."\">".$IconDarrow."</a>"; echo "<br /><br />"; echo help_link('block_move_up'); @@ -347,11 +347,11 @@ if ($action=="configure") { echo "</td>"; // NOTE: Row 2 column 3: Left/Right buttons for left (main) block list echo "<td class=\"optionbox width20 vmiddle\">"; - echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('main_select', 'right_select');\" title=\"".i18n::translate('Move Right')."\">".$IconRDarrow."</a>"; + echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('main_select', 'right_select');\" title=\"".WT_I18N::translate('Move Right')."\">".$IconRDarrow."</a>"; echo "<br />"; - echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('main_select', 'available_select');\" title=\"".i18n::translate('Remove')."\">".$IconRarrow."</a>"; + echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('main_select', 'available_select');\" title=\"".WT_I18N::translate('Remove')."\">".$IconRarrow."</a>"; echo "<br />"; - echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('available_select', 'main_select');\" title=\"".i18n::translate('Add')."\">".$IconLarrow."</a>"; + echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('available_select', 'main_select');\" title=\"".WT_I18N::translate('Add')."\">".$IconLarrow."</a>"; echo "<br /><br />"; echo help_link('block_move_right'); @@ -366,11 +366,11 @@ if ($action=="configure") { echo "</td>"; // NOTE: Row 2 column 5: Left/Right buttons for right block list echo "<td class=\"optionbox width20 vmiddle\">"; - echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('right_select', 'main_select');\" title=\"".i18n::translate('Move Left')."\">".$IconLDarrow."</a>"; + echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('right_select', 'main_select');\" title=\"".WT_I18N::translate('Move Left')."\">".$IconLDarrow."</a>"; echo "<br />"; - echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('right_select', 'available_select');\" title=\"".i18n::translate('Remove')."\">".$IconLarrow."</a>"; + echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('right_select', 'available_select');\" title=\"".WT_I18N::translate('Remove')."\">".$IconLarrow."</a>"; echo "<br />"; - echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('available_select', 'right_select');\" title=\"".i18n::translate('Add')."\">".$IconRarrow."</a>"; + echo "<a tabindex=\"-1\" onclick=\"move_left_right_block('available_select', 'right_select');\" title=\"".WT_I18N::translate('Add')."\">".$IconRarrow."</a>"; echo "<br /><br />"; echo help_link('block_move_right'); echo "</td>"; @@ -384,33 +384,33 @@ if ($action=="configure") { echo "</td>"; // NOTE: Row 2 column 7: Up/Down buttons for right block list echo "<td class=\"optionbox width20 vmiddle\">"; - echo "<a tabindex=\"-1\" onclick=\"move_up_block('right_select');\" title=\"".i18n::translate('Move up')."\">".$IconUarrow."</a>"; + echo "<a tabindex=\"-1\" onclick=\"move_up_block('right_select');\" title=\"".WT_I18N::translate('Move up')."\">".$IconUarrow."</a>"; echo "<br />"; - echo "<a tabindex=\"-1\" onclick=\"move_down_block('right_select');\" title=\"".i18n::translate('Move down')."\">".$IconDarrow."</a>"; + echo "<a tabindex=\"-1\" onclick=\"move_down_block('right_select');\" title=\"".WT_I18N::translate('Move down')."\">".$IconDarrow."</a>"; echo "<br /><br />"; echo help_link('block_move_up'); echo "</td>"; echo "</tr>"; // NOTE: Row 3 columns 1-7: Summary description of currently selected block echo "<tr><td class=\"descriptionbox wrap\" colspan=\"7\" dir=\"".$TEXT_DIRECTION."\"><div id=\"instructions\">"; - echo i18n::translate('Highlight a block name and then click on one of the arrow icons to move that highlighted block in the indicated direction.'); + echo WT_I18N::translate('Highlight a block name and then click on one of the arrow icons to move that highlighted block in the indicated direction.'); echo "</div></td></tr>"; echo "<tr><td class=\"topbottombar\" colspan=\"7\">"; if (WT_USER_IS_ADMIN && $ctype=='user') { - echo i18n::translate('Use these blocks as the default block configuration for all users?')."<input type=\"checkbox\" name=\"setdefault\" value=\"1\" /><br /><br />"; + echo WT_I18N::translate('Use these blocks as the default block configuration for all users?')."<input type=\"checkbox\" name=\"setdefault\" value=\"1\" /><br /><br />"; } - echo "<input type=\"button\" value=\"".i18n::translate('Reset to Default Blocks')."\" onclick=\"window.location='index_edit.php?ctype=$ctype&action=reset&name=".str_replace("'", "\'", $name)."';\" />"; + echo "<input type=\"button\" value=\"".WT_I18N::translate('Reset to Default Blocks')."\" onclick=\"window.location='index_edit.php?ctype=$ctype&action=reset&name=".str_replace("'", "\'", $name)."';\" />"; if ($ctype=='user') { echo help_link('block_default_portal'); } else { echo help_link('block_default_index'); } echo " "; - echo "<input type=\"button\" value=\"".i18n::translate('Save')."\" onclick=\"select_options(); save_form();\" />"; + echo "<input type=\"button\" value=\"".WT_I18N::translate('Save')."\" onclick=\"select_options(); save_form();\" />"; echo " "; - echo "<input type =\"button\" value=\"".i18n::translate('Cancel')."\" onclick=\"window.close()\" />"; + echo "<input type =\"button\" value=\"".WT_I18N::translate('Cancel')."\" onclick=\"window.close()\" />"; echo "</td></tr></table>"; echo "</form>"; } |
