diff options
author | Filip Komar <filip@mageia.org> | 2012-07-21 20:50:30 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2012-07-21 20:50:30 +0000 |
commit | eaa3a2cac40bbe4c7f76a50bbcff9d6a2a4b0c12 (patch) | |
tree | 467074fa041f489c770b99a746d8aba4212021b1 /en | |
parent | d5752081ffe6c1e420a1f93ab37d2cc466f1321c (diff) | |
download | www-eaa3a2cac40bbe4c7f76a50bbcff9d6a2a4b0c12.tar www-eaa3a2cac40bbe4c7f76a50bbcff9d6a2a4b0c12.tar.gz www-eaa3a2cac40bbe4c7f76a50bbcff9d6a2a4b0c12.tar.bz2 www-eaa3a2cac40bbe4c7f76a50bbcff9d6a2a4b0c12.tar.xz www-eaa3a2cac40bbe4c7f76a50bbcff9d6a2a4b0c12.zip |
new translation system for community page (with patch for function show_feed shows no output or wrong one in some languages)
Diffstat (limited to 'en')
-rw-r--r-- | en/community/index.php | 66 |
1 files changed, 1 insertions, 65 deletions
diff --git a/en/community/index.php b/en/community/index.php index 577589538..9eb7068fd 100644 --- a/en/community/index.php +++ b/en/community/index.php @@ -2,70 +2,6 @@ define('HLANG', true); require '../../langs.php'; - -$_t = array( - 'de' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/de/', - 'http://planet.mageia.org/en/' => 'http://planet.mageia.org/de/', - 'https://forum.mageia.org/en/' => 'http://forums.mageia.org/de/', - ), - 'el' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/el/', - ), - 'en' => array( - 'Mageia Community' => 'Mageia Community', - 'Mageia Community Central' => 'Mageia Community Central', - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/en/', - 'http://planet.mageia.org/en/' => 'http://planet.mageia.org/en/', - 'https://forum.mageia.org/en/' => 'https://forum.mageia.org/en/', - ), - 'es' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/en/', - 'http://planet.mageia.org/en/' => 'http://planet.mageia.org/es/' - ), - 'fr' => array( - 'Mageia Community' => 'Communauté Mageia', - 'Mageia Community Central' => 'Portail de la communauté Mageia', - 'News' => 'Actualités', - 'How to contribute?' => 'Comment contribuer ?', - 'Toolbox' => 'Boîte à outils', - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/fr/', - 'http://planet.mageia.org/en/' => 'http://planet.mageia.org/fr/', - 'https://forum.mageia.org/en/' => 'http://forum.mageia.org/fr/' - ), - 'it' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/it/', - 'http://planet.mageia.org/en/' => 'http://planet.mageia.org/it/' - ), - 'nl' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/nl/', - ), - 'pl' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/pl/', - ), - 'pt' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/pt/', - ), - 'pt-br' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/pt/', - 'https://forum.mageia.org/en/' => 'http://forum.mageiabr.org/', - 'http://wiki.mageia.org/' => 'http://wiki.mageiabr.org/' - ), - 'ro' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/ro/', - ), - 'ru' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/ru/' - ), - 'tr' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/tr/' - ), - 'uk' => array( - 'http://blog.mageia.org/en/' => 'http://blog.mageia.org/uk/' - ) -); - -$_t = i18n::get_strings($_t, $locale, $i18n_fallback_rules); // remove when function show_feed will shows correct output in all languages _lang_load($locale, 'community'); include '../../lib/news.php'; @@ -110,7 +46,7 @@ include '../../lib/news.php'; <?php if (_d('http://planet.mageia.org/en/') != 'http://planet.mageia.org/en/') { show_feed($locale, null, _d('http://planet.mageia.org/en/'), _d('http://planet.mageia.org/en/') . '?type=rss10', 9, null, true); - } elseif (_d('http://blog.mageia.org/en/') != 'http://blog.mageia.org/en/') { + } else { show_feed($locale, null, _d('http://blog.mageia.org/en/'), _d('http://blog.mageia.org/en/') . '?feed=rss', 9, null, true); } // don't work: |