aboutsummaryrefslogtreecommitdiffstats
path: root/en
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-03-17 17:25:11 +0000
committerFilip Komar <filip@mageia.org>2014-03-17 17:25:11 +0000
commitd790a455f263ade42c17d77e9f552e3a52a9638d (patch)
tree2865eb8369e38763d6c8d19324840d6206043a0c /en
parentceea1d62fbf46a80c3757ce03c37c053be04b15d (diff)
downloadwww-d790a455f263ade42c17d77e9f552e3a52a9638d.tar
www-d790a455f263ade42c17d77e9f552e3a52a9638d.tar.gz
www-d790a455f263ade42c17d77e9f552e3a52a9638d.tar.bz2
www-d790a455f263ade42c17d77e9f552e3a52a9638d.tar.xz
www-d790a455f263ade42c17d77e9f552e3a52a9638d.zip
page downloads/get converted to gettext
Diffstat (limited to 'en')
-rw-r--r--en/downloads/get/index.php50
1 files changed, 25 insertions, 25 deletions
diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php
index 39d7a7f56..9f46d7013 100644
--- a/en/downloads/get/index.php
+++ b/en/downloads/get/index.php
@@ -51,7 +51,7 @@ if (is_null($product)) {
define('HLANG', true);
require '../../../langs.php';
-_lang_load($locale, "downloads/get");
+$dictionary = read_translation_file($locale, "downloads/get");
session_start();
@@ -113,13 +113,13 @@ try {
// Feedback about current mirror location + trigger for alt mirrors.
$dl2_mirror_alt = sprintf(
- _t('This <a href="%s">%s</a> download mirror is located in %s (%s).'),
+ _r('This <a href="%s">%s</a> download mirror is located in %s (%s).'),
$one_mirror['mirror_url'],
$one_mirror['mirror_host'],
rewrite_city($one_mirror['city']) . ', ' . $countries[$one_mirror['country']],
$one_mirror['country']
)
- . ' ' . _t('If it does not work well for you, <a href="#om" id="other_mirrors_btn">check out these other mirrors</a>.');
+ . ' ' . _r('If it does not work well for you, <a href="#om" id="other_mirrors_btn">check out these other mirrors</a>.');
// at the end of this block we expect the following vars to be available from here:
@@ -161,7 +161,7 @@ if ($debug)
<html lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
- <title><?php echo $title; ?> | <?php _e('Mageia Downloads') ?></title>
+ <title><?php echo $title; ?> | <?php _g('Mageia Downloads') ?></title>
<meta name="robots" content="noindex,nofollow,nosnippet">
<link rel="stylesheet" type="text/css" href="/g/style/all.css">
<?php
@@ -173,16 +173,16 @@ if (!isset($_SERVER['APP_MODE']) || $_SERVER['APP_MODE'] == 'prod') {
</head>
<body class="downloads">
<?php echo $hsnav; ?>
- <h1 id="mgnavt"><?php echo sprintf(_t('Download %s'), '<em class="tag">' . $title . '</em>')?></h1>
+ <h1 id="mgnavt"><?php echo sprintf(_r('Download %s'), '<em class="tag">' . $title . '</em>')?></h1>
<div id="doc4" class="yui-t7">
<div id="bd" role="main">
<?php if (!is_null($download)): ?>
<div class="yui-g"><div class="para" style="padding-top: 2em;">
<p><?php
echo
- sprintf(_t('Your download of %s should start within a few seconds'), '<em class="tag">' . $product['name'] . '</em>' . ($torrent ? ' (torrent)' : '')),
- ' ', sprintf(_t('(download size is about %s).'), $product['size']),
- ' ', sprintf(_t('If the download does not start, <a href="%s" rel="nofollow" title="%s">click here</a>.'), $download, $download);
+ sprintf(_r('Your download of %s should start within a few seconds'), '<em class="tag">' . $product['name'] . '</em>' . ($torrent ? ' (torrent)' : '')),
+ ' ', sprintf(_r('(download size is about %s).'), $product['size']),
+ ' ', sprintf(_r('If the download does not start, <a href="%s" rel="nofollow" title="%s">click here</a>.'), $download, $download);
?></p>
<div class="dlinfo">
@@ -192,20 +192,20 @@ if (!isset($_SERVER['APP_MODE']) || $_SERVER['APP_MODE'] == 'prod') {
|| (isset($product['sha1'])) && strlen($product['sha1']) > 0)
&& !$torrent
): ?>
- <p><?php _e('As soon as your download is complete, you should check that the signatures match:') ?></p>
+ <p><?php _g('As soon as your download is complete, you should check that the signatures match:') ?></p>
<div id="check-signs">
<pre class="term">
<?php if (strlen($product['md5'])): ?>$ md5sum <?php echo basename($download), "\n<strong>", $product['md5'], "</strong>\n"; endif; ?>
<?php if (strlen($product['sha1'])): ?>$ sha1sum <?php echo basename($download), "\n<strong>", $product['sha1'], "</strong>\n"; endif; ?>
</pre>
- <p><?php _e('If signatures do not match, <strong>DO NOT use this ISO</strong>. Double-check and try to download again.'); ?></p>
+ <p><?php _g('If signatures do not match, <strong>DO NOT use this ISO</strong>. Double-check and try to download again.'); ?></p>
<!-- TODO (rda): add direct download links to checksum and signature files as a backup. -->
</div>
<?php endif; ?>
<p><?php
echo sprintf(
- _t('Your IP address is %s and you seem to be in %s, %s.'),
+ _r('Your IP address is %s and you seem to be in %s, %s.'),
$_SESSION['ip'], $_SESSION['country'], $_SESSION['continent']
);
?></p>
@@ -213,9 +213,9 @@ if (!isset($_SERVER['APP_MODE']) || $_SERVER['APP_MODE'] == 'prod') {
<!-- alternative mirrors table -->
<table class="dlt2 dlinfo" id="other_mirrors" style="display: none;">
- <thead><tr><th><?php _e('Country'); ?></th>
- <th><?php _e('City'); ?></th>
- <th><?php _e('Download mirrors'); ?></th></tr></thead>
+ <thead><tr><th><?php _g('Country'); ?></th>
+ <th><?php _g('City'); ?></th>
+ <th><?php _g('Download mirrors'); ?></th></tr></thead>
<tbody><?php echo $alternative_mirrors; ?></tbody>
</table>
@@ -226,25 +226,25 @@ if (!isset($_SERVER['APP_MODE']) || $_SERVER['APP_MODE'] == 'prod') {
<div class="yui-g first"><div class="para">
</div></div>
<div class="yui-g" style="border-left: 1px solid #ddd"><div class="para">
- <p><?php echo sprintf(_t('The making and the distribution of Mageia worldwide is made possible by all the <a href="%s">people and organizations that mirror our software</a> and that <a href="%s">donate money, hardware, hosting and more</a>.'), '//mirrors.mageia.org/', '../../thank-you/'); ?></p>
- <p><?php echo sprintf(_t('Want to help? %sJoin Us!%s'), '<a href="../../contribute/">', '</a>'); ?></p>
+ <p><?php echo sprintf(_r('The making and the distribution of Mageia worldwide is made possible by all the <a href="%s">people and organizations that mirror our software</a> and that <a href="%s">donate money, hardware, hosting and more</a>.'), '//mirrors.mageia.org/', '../../thank-you/'); ?></p>
+ <p><?php echo sprintf(_r('Want to help? %sJoin Us!%s'), '<a href="../../contribute/">', '</a>'); ?></p>
</div></div>
</div>
<?php else: ?>
<div class="yui-g"><div class="para" style="padding-top: 2em;">
- <h2><?php _e('Sorry!'); ?> :-(</h2>
- <p><?php echo sprintf(_t('Your download could not complete, as we could not find this file. Please try again from the <a href="%s">main downloads page</a>.'), '../../downloads/'); ?></p>
+ <h2><?php _g('Sorry!'); ?> :-(</h2>
+ <p><?php echo sprintf(_r('Your download could not complete, as we could not find this file. Please try again from the <a href="%s">main downloads page</a>.'), '../../downloads/'); ?></p>
- <p><?php echo sprintf(_t('If you still encounter this error and think IT SHOULD NOT HAPPEN &ndash; please tell us:')); ?></p>
+ <p><?php echo sprintf(_r('If you still encounter this error and think IT SHOULD NOT HAPPEN &ndash; please tell us:')); ?></p>
<ul>
- <li><?php _e('directly on <a href="irc://irc.freenode.net/#mageia-atelier">#mageia-atelier on Freenode IRC</a>,'); ?></li>
- <li><?php _e('or <a href="https://twitter.com/mageia_org">via our Twitter account</a>,'); ?></li>
- <li><?php _e('or with a <a href="https://ml.mageia.org/l/info/atelier-discuss">notice on the Atelier team mailing-list</a>,'); ?></li>
- <li><?php _e('or a <a href="https://bugs.mageia.org/enter_bug.cgi?product=Websites&amp;format=guided&amp;component=www.mageia.org">bug report</a>.'); ?></li>
+ <li><?php _g('directly on <a href="irc://irc.freenode.net/#mageia-atelier">#mageia-atelier on Freenode IRC</a>,'); ?></li>
+ <li><?php _g('or <a href="https://twitter.com/mageia_org">via our Twitter account</a>,'); ?></li>
+ <li><?php _g('or with a <a href="https://ml.mageia.org/l/info/atelier-discuss">notice on the Atelier team mailing-list</a>,'); ?></li>
+ <li><?php _g('or a <a href="https://bugs.mageia.org/enter_bug.cgi?product=Websites&amp;format=guided&amp;component=www.mageia.org">bug report</a>.'); ?></li>
</ul>
- <p><?php _e('Please copy and report us the above address that returned you to this page.'); _e('Thanks!'); ?></p>
- <p><a href="/<?php echo $locale; ?>">&laquo; <?php _e('back to that awesome Mageia home page'); ?></a></p>
+ <p><?php _g('Please copy and report us the above address that returned you to this page.'); _g('Thanks!'); ?></p>
+ <p><a href="/<?php echo $locale; ?>">&laquo; <?php _g('back to that awesome Mageia home page'); ?></a></p>
</div></div>
<?php endif; ?>
</div>