From 16f520d87c9e50da3081bdc04acaab9e68c52cc2 Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Thu, 20 Mar 2014 17:14:17 +0000 Subject: index page converted to gettext --- en/index.php | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'en/index.php') diff --git a/en/index.php b/en/index.php index 7ff3ea0a7..30ee473b0 100644 --- a/en/index.php +++ b/en/index.php @@ -4,12 +4,12 @@ define('HLANG', true); require '../langs.php'; -_lang_load($locale, 'index'); +$dictionary = read_translation_file($locale, 'index'); $nav = array( - 'nav-support' => array('support/', _t('Support')), - 'nav-community' => array('community/', _t('Community')), - 'nav-about' => array('about/', _t('About Mageia.Org')) + 'nav-support' => array('support/', _r('Support')), + 'nav-community' => array('community/', _r('Community')), + 'nav-about' => array('about/', _r('About Mageia.Org')) ); ?> @@ -17,16 +17,16 @@ $nav = array( - <?php _e('Home of the Mageia project'); ?> - - + <?php _g('Home of the Mageia project'); ?> + + $name) if ($l != $locale) echo sprintf('', $l, $l); ?> - +