'.
- _('The time limit of this file has expired.') . ' ' .
- _('File has been deleted.') .
+ t('The time limit of this file has expired.') . ' ' .
+ t('File has been deleted.') .
'
';
require (JIRAFEAU_ROOT.'lib/template/footer.php');
exit;
diff --git a/index.php b/index.php
index 893ebf0..62588aa 100644
--- a/index.php
+++ b/index.php
@@ -71,21 +71,21 @@ require (JIRAFEAU_ROOT . 'lib/template/header.php');
/* Checking for errors. */
if (!is_writable (VAR_FILES))
- add_error (_('The file directory is not writable!'), VAR_FILES);
+ add_error (t('The file directory is not writable!'), VAR_FILES);
if (!is_writable (VAR_LINKS))
- add_error (_('The link directory is not writable!'), VAR_LINKS);
+ add_error (t('The link directory is not writable!'), VAR_LINKS);
/* Check if the install.php script is still in the directory. */
if (file_exists (JIRAFEAU_ROOT . 'install.php'))
- add_error (_('Installer script still present'),
- _('Please make sure to delete the installer script ' .
+ add_error (t('Installer script still present'),
+ t('Please make sure to delete the installer script ' .
'"install.php" before continuing.'));
if (!has_error () && !empty ($res))
{
if ($res['error']['has_error'])
- add_error (_('An error occurred.'), $res['error']['why']);
+ add_error (t('An error occurred.'), $res['error']['why']);
else
{
$link = $cfg['web_root'];
@@ -106,20 +106,20 @@ if (!has_error () && !empty ($res))
}
echo '
'.NL;
- echo '
' . _('File uploaded! Copy the following URL to get it') .
+ echo '
' . t('File uploaded! Copy the following URL to get it') .
': ' . NL;
echo ''.$link.'' . NL;
if ($time != JIRAFEAU_INFINITY)
{
- echo ' ' . _('This file is valid until the following date') .
+ echo ' ' . t('This file is valid until the following date') .
': ' . strftime ('%c', $time) . '';
}
echo '
';
echo '
' . NL;
- echo '
' . _('Keep the following URL to delete it at any moment') . ': ' . NL;
+ echo '
' . t('Keep the following URL to delete it at any moment') . ': ' . NL;
echo '' . $delete_link . '' . NL;
echo '
$item)
@@ -82,12 +82,12 @@ jirafeau_is_writable ($path)
function
jirafeau_check_var_dir ($path)
{
- $mkdir_str1 = _('The following directory could not be created') . ':';
- $mkdir_str2 = _('You should create this directory by hand.');
- $write_str1 = _('The following directory is not writable') . ':';
- $write_str2 = _('You should give the write right to the web server on ' .
+ $mkdir_str1 = t('The following directory could not be created') . ':';
+ $mkdir_str2 = t('You should create this directory by hand.');
+ $write_str1 = t('The following directory is not writable') . ':';
+ $write_str2 = t('You should give the write right to the web server on ' .
'this directory.');
- $solution_str = _('Here is a solution') . ':';
+ $solution_str = t('Here is a solution') . ':';
if (!jirafeau_mkdir ($path) || !jirafeau_is_writable ($path))
return array ('has_error' => true,
@@ -122,7 +122,7 @@ if (!file_exists (JIRAFEAU_CFG))
{
require (JIRAFEAU_ROOT . 'lib/template/header.php');
echo '
' .
- _('The local configuration file could not be created. Create a ' .
+ t('The local configuration file could not be created. Create a ' .
'lib/config.local.php file and give the write ' .
'right to the web server (preferred solution), or give the ' .
'write right to the web server on the lib ' .
@@ -137,7 +137,7 @@ if (!is_writable (JIRAFEAU_CFG) && !@chmod (JIRAFEAU_CFG, '0666'))
{
require (JIRAFEAU_ROOT . 'lib/template/header.php');
echo '
' .
- _('The local configuration is not writable by the web server. ' .
+ t('The local configuration is not writable by the web server. ' .
'Give the write right to the web server on the ' .
'lib/config.local.php file.') .
'