summaryrefslogtreecommitdiffstats
path: root/templates/show_install_config.inc.php
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2012-03-31 17:01:04 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2012-04-12 21:13:29 -0400
commitf65076b93d91fe9718cf9bef37638d64290b9f28 (patch)
tree40fbc65baffab34971d8c7b685ef9c99e0f4014f /templates/show_install_config.inc.php
parent15457b16f17a141fa76a3b9882892362b601787c (diff)
downloadampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.gz
ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.bz2
ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.zip
Switch from _() to T_()
Even if we move away from php-gettext in the future, it's easy to write a quick T_() as a simple wrapper; it's not so easy to rewrite PHP to allow redeclaration of a function.
Diffstat (limited to 'templates/show_install_config.inc.php')
-rw-r--r--templates/show_install_config.inc.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/templates/show_install_config.inc.php b/templates/show_install_config.inc.php
index 4ffb3b7d..0100d678 100644
--- a/templates/show_install_config.inc.php
+++ b/templates/show_install_config.inc.php
@@ -30,44 +30,44 @@ $prefix = realpath(dirname(__FILE__). "/../");
require $prefix . '/templates/install_header.inc.php';
?>
<div class="content">
- <?php echo _('Step 1 - Create the Ampache database'); ?><br />
- <strong><?php echo _('Step 2 - Create ampache.cfg.php'); ?></strong><br />
+ <?php echo T_('Step 1 - Create the Ampache database'); ?><br />
+ <strong><?php echo T_('Step 2 - Create ampache.cfg.php'); ?></strong><br />
<dl>
- <dd><?php printf(_('This step takes the basic config values and generates the config file. If your config/ directory is writable, you can select "write" to have Ampache write the config file directly to the correct location. If you select "download" it will prompt you to download the config file, and you can then manually place the config file in %s'), $prefix . '/config'); ?></dd>
+ <dd><?php printf(T_('This step takes the basic config values and generates the config file. If your config/ directory is writable, you can select "write" to have Ampache write the config file directly to the correct location. If you select "download" it will prompt you to download the config file, and you can then manually place the config file in %s'), $prefix . '/config'); ?></dd>
</dl>
- <?php echo _('Step 3 - Set up the initial account'); ?><br />
+ <?php echo T_('Step 3 - Set up the initial account'); ?><br />
<?php Error::display('general'); ?>
<br />
-<span class="header2"><?php echo _('Generate Config File'); ?></span>
+<span class="header2"><?php echo T_('Generate Config File'); ?></span>
<?php Error::display('config'); ?>
<form method="post" action="<?php echo WEB_PATH . "?action=create_config"; ?>" enctype="multipart/form-data" >
<table>
<tr>
- <td class="align"><?php echo _('Web Path'); ?></td>
+ <td class="align"><?php echo T_('Web Path'); ?></td>
<td class="align"><input type="text" name="web_path" value="<?php echo $web_path; ?>" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('Database Name'); ?></td>
+ <td class="align"><?php echo T_('Database Name'); ?></td>
<td class="align"><input type="text" name="local_db" value="<?php echo scrub_out($_REQUEST['local_db']); ?>" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('MySQL Hostname'); ?></td>
+ <td class="align"><?php echo T_('MySQL Hostname'); ?></td>
<td class="align"><input type="text" name="local_host" value="<?php echo scrub_out($_REQUEST['local_host']); ?>" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('MySQL Username'); ?></td>
+ <td class="align"><?php echo T_('MySQL Username'); ?></td>
<td class="align"><input type="text" name="local_username" value="<?php echo scrub_out($_REQUEST['local_username']); ?>" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('MySQL Password'); ?></td>
+ <td class="align"><?php echo T_('MySQL Password'); ?></td>
<td class="align"><input type="password" name="local_pass" value="" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
- <input type="submit" name="download" value="<?php echo _('Download'); ?>" />
- <input type="submit" name="write" value="<?php echo _('Write'); ?>" <?php if (!check_config_writable()) { echo "disabled "; } ?>/>
+ <input type="submit" name="download" value="<?php echo T_('Download'); ?>" />
+ <input type="submit" name="write" value="<?php echo T_('Write'); ?>" <?php if (!check_config_writable()) { echo "disabled "; } ?>/>
<input type="hidden" name="htmllang" value="<?php echo $htmllang; ?>" />
<input type="hidden" name="charset" value="<?php echo $charset; ?>" />
</td>
@@ -77,7 +77,7 @@ require $prefix . '/templates/install_header.inc.php';
<br />
<table>
<tr>
- <td class="align"><?php echo _('ampache.cfg.php exists?'); ?></td>
+ <td class="align"><?php echo T_('ampache.cfg.php exists?'); ?></td>
<td>[
<?php
if (!is_readable($configfile)) {
@@ -92,7 +92,7 @@ require $prefix . '/templates/install_header.inc.php';
</tr>
<tr>
<td class="align">
- <?php echo _('ampache.cfg.php configured?'); ?>
+ <?php echo T_('ampache.cfg.php configured?'); ?>
</td>
<td>[
<?php
@@ -111,13 +111,13 @@ require $prefix . '/templates/install_header.inc.php';
<td>&nbsp;</td>
<td>
<?php $check_url = WEB_PATH . "?action=show_create_config&amp;htmllang=$htmllang&amp;charset=$charset&amp;local_db=" . $_REQUEST['local_db'] . "&amp;local_host=" . $_REQUEST['local_host']; ?>
- <a href="<?php echo $check_url; ?>">[<?php echo _('Recheck Config'); ?>]</a>
+ <a href="<?php echo $check_url; ?>">[<?php echo T_('Recheck Config'); ?>]</a>
</td>
</tr>
</table>
<br />
<form method="post" action="<?php echo WEB_PATH . "?action=show_create_account&amp;htmllang=$htmllang&amp;charset=$charset"; ?>" enctype="multipart/form-data">
- <input type="submit" value="<?php echo _('Continue to Step 3'); ?>" />
+ <input type="submit" value="<?php echo T_('Continue to Step 3'); ?>" />
</form>
</div>
<div id="bottom">