diff options
author | Filip Komar <filip@mageia.org> | 2012-07-21 17:21:16 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2012-07-21 17:21:16 +0000 |
commit | 861481b07c3a6bf574bfa088ef52d5dca08af838 (patch) | |
tree | 6128d01d2380f20ac914054196b80e9b8930ae01 | |
parent | 534f0b56b1a12b66ddb7fffc8cbaf3221cd8cbee (diff) | |
download | www-861481b07c3a6bf574bfa088ef52d5dca08af838.tar www-861481b07c3a6bf574bfa088ef52d5dca08af838.tar.gz www-861481b07c3a6bf574bfa088ef52d5dca08af838.tar.bz2 www-861481b07c3a6bf574bfa088ef52d5dca08af838.tar.xz www-861481b07c3a6bf574bfa088ef52d5dca08af838.zip |
old translation system for community page restored because of function show_feed shows no output or wrong one in some languages
-rw-r--r-- | en/community/index.php | 170 | ||||
-rw-r--r-- | langs/en/community.en.lang | 6 |
2 files changed, 121 insertions, 55 deletions
diff --git a/en/community/index.php b/en/community/index.php index d23d2a829..585c42b67 100644 --- a/en/community/index.php +++ b/en/community/index.php @@ -2,6 +2,70 @@ define('HLANG', true); require '../../langs.php'; + +$_t = array( + 'de' => array( + 'blog_url' => 'http://blog.mageia.org/de/', + 'planet_url' => 'http://planet.mageia.org/de/', + 'forum_url' => 'http://forums.mageia.org/de/', + ), + 'el' => array( + 'blog_url' => 'http://blog.mageia.org/el/', + ), + 'en' => array( + 'page_title' => 'Mageia Community', + 'page_h1' => 'Mageia Community Central', + 'blog_url' => 'http://blog.mageia.org/en/', + 'planet_url' => 'http://planet.mageia.org/en/', + 'forum_url' => 'https://forum.mageia.org/en/', + ), + 'es' => array( + 'blog_url' => 'http://blog.mageia.org/en/', + 'planet_url' => 'http://planet.mageia.org/es/' + ), + 'fr' => array( + 'page_title' => 'Communauté Mageia', + 'page_h1' => 'Portail de la communauté Mageia', + 'News' => 'Actualités', + 'How to contribute?' => 'Comment contribuer ?', + 'Toolbox' => 'Boîte à outils', + 'blog_url' => 'http://blog.mageia.org/fr/', + 'planet_url' => 'http://planet.mageia.org/fr/', + 'forum_url' => 'http://forum.mageia.org/fr/' + ), + 'it' => array( + 'blog_url' => 'http://blog.mageia.org/it/', + 'planet_url' => 'http://planet.mageia.org/it/' + ), + 'nl' => array( + 'blog_url' => 'http://blog.mageia.org/nl/', + ), + 'pl' => array( + 'blog_url' => 'http://blog.mageia.org/pl/', + ), + 'pt' => array( + 'blog_url' => 'http://blog.mageia.org/pt/', + ), + 'pt-br' => array( + 'blog_url' => 'http://blog.mageia.org/pt/', + 'forum_url' => 'http://forum.mageiabr.org/', + 'http://wiki.mageia.org/' => 'http://wiki.mageiabr.org/' + ), + 'ro' => array( + 'blog_url' => 'http://blog.mageia.org/ro/', + ), + 'ru' => array( + 'blog_url' => 'http://blog.mageia.org/ru/' + ), + 'tr' => array( + 'blog_url' => 'http://blog.mageia.org/tr/' + ), + 'uk' => array( + 'blog_url' => 'http://blog.mageia.org/uk/' + ) +); + +$_t = i18n::get_strings($_t, $locale, $i18n_fallback_rules); _lang_load($locale, 'community'); include '../../lib/news.php'; @@ -10,9 +74,9 @@ include '../../lib/news.php'; <html lang="<?php echo $locale; ?>"> <head> <meta charset="utf-8"> - <title><?php _e('Mageia Community')?></title> - <meta name="description" content="<?php _e('Mageia Community Central is the place where all contributors and users can find the latest news about Mageia and learn more about what to do in the project.')?>"> - <meta name="keywords" content="<?php _e('mageia, community, news, tools, tasks')?>"> + <title><?php _e('page_title')?></title> + <meta name="description" content="Mageia Community Central is the place where all contributors and users can find the latest news about Mageia and learn more about what to do in the project."> + <meta name="keywords" content="mageia, community, news, tools, tasks"> <meta name="author" content="Mageia"> <link rel="stylesheet" type="text/css" href="/g/style/all.css"> <link rel="icon" type="image/png" href="/g/favicon.png" /> <style> @@ -28,13 +92,13 @@ include '../../lib/news.php'; <body class="community"> <?php echo $hsnav; ?> <header id="mgnavt"> - <h1><?php _e('Mageia Community Central')?></h1> + <h1><?php _e('page_h1')?></h1> <ul> - <li><a href="<?php _e('http://blog.mageia.org/en/')?>"><?php _e('Blog');?></a></li> - <li><a href="<?php _e('http://planet.mageia.org/en/')?>"><?php _e('Planet');?></a></li> - <li><a href="/en/calendar/"><?php _e('Calendar');?></a></li> + <li><a href="<?php _e('blog_url')?>"><?php _e('Blog');?></a></li> + <li><a href="<?php _e('planet_url')?>">Planet</a></li> + <li><a href="/en/calendar/">Calendar</a></li> <li><a href="https://wiki.mageia.org/en/IRC">IRC</a></li> - <li><a href="<?php _e('https://forum.mageia.org/en/')?>"><?php _e('Forums');?></a></li> + <li><a href="<?php _e('forum_url')?>">Forums</a></li> <li><a href="http://ml.mageia.org/">Mailing-lists</a></li> <li><a href="<?php _e('http://wiki.mageia.org/')?>">Wiki</a></li> <li><a href="https://bugs.mageia.org/">Bugzilla</a></li> @@ -42,12 +106,12 @@ include '../../lib/news.php'; </header> <div class="para" style="width: 400px;"> <section> - <h2><a href="<?php _e('http://blog.mageia.org/en/')?>"><?php _e('News');?></a></h2> + <h2><a href="<?php _e('blog_url')?>"><?php _e('News');?></a></h2> <?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/') { - show_feed($locale, null, _d('http://blog.mageia.org/en/'), _d('http://blog.mageia.org/en/') . '?feed=rss', 9, null, true); + if (_d('planet_url') != 'planet_url') { + show_feed($locale, null, _d('planet_url'), _d('planet_url') . '?type=rss10', 9, null, true); + } elseif (_d('blog_url') != 'blog_url') { + show_feed($locale, null, _d('blog_url'), _d('blog_url') . '?feed=rss', 9, null, true); } // don't work: //show_feed('Mageia MLs', '', 'https://ml.mageia.org/l/rss/active_lists?count=20&for=10'); @@ -57,9 +121,9 @@ include '../../lib/news.php'; <p><?php $s = array(); $feeds = array( - 'Planet' => 'http://planet.mageia.org/en/', - 'Blog' => 'http://blog.mageia.org/en/', - 'Forum' => 'https://forum.mageia.org/en/' + 'Planet' => 'planet_url', + 'Blog' => 'blog_url', + 'Forum' => 'forum_url' ); foreach ($feeds as $k => $v) if (_t($v) != $v) @@ -72,49 +136,50 @@ include '../../lib/news.php'; <div class="para" style="width: 300px"> <h2><a href="../contribute/"><?php _e('How to contribute?')?></a></h2> <ul class="hl"> - <li><a href="../contribute/"><?php _e('Start here')?></a>,</li> - <li><?php _e('and meet us on <a href="http://wiki.mageia.org/en/IRC">IRC</a>.')?></li> - <li><?php _e('You can also <a href="../donate/">support financially</a> the project!')?></li> + <li><a href="../contribute/">Start here</a>,</li> + <li>and meet us on <a href="http://wiki.mageia.org/en/IRC">IRC</a>.</li> + <li>You can also <a href="../donate/">support financially</a> the project!</li> </ul> <hr> <h2><?php _e('Toolbox')?></h2> <ul class="hl"> - <li><a href="<?php _e('http://wiki.mageia.org/')?>"><?php _e('Wiki</a> ← collaborative documentation')?></li> - <li><a href="http://bugs.mageia.org/"><?php _e('Bugzilla</a> ← to report bugs')?></li> - <li><a href="<?php _e('https://forum.mageia.org/en/')?>"><?php _e('Forum')?></a></li> - <li><a href="/en/calendar/"><?php _e('Calendar')?></a></li> - <li><a href="http://mageia.madb.org"><?php _e('Mageia Applications Database')?></a></li> + <li><a href="<?php _e('http://wiki.mageia.org/')?>">Wiki</a> ← collaborative documentation</li> + <li><a href="http://bugs.mageia.org/">Bugzilla</a> ← to report bugs</li> + <li><a href="<?php _e('forum_url')?>">Forum</a></li> + <li><a href="/en/calendar/">Calendar</a></li> + <li><a href="http://mageia.madb.org">Mageia Applications Database</a></li> </ul> <hr> - <h2><?php _e('For developers & packagers')?></h2> + <h2>For developers & packagers</h2> <ul class="hl"> - <li><a href="http://svn.mageia.org/"><?php _e('Subversion')?></a>, - <a href="http://gitweb.mageia.org/"><?php _e('Git</a> code repositories')?></li> - <li><a href="http://pkgsubmit.mageia.org/"><?php _e('Packages submission queue')?></a>, - <a href="http://pkgsubmit.mageia.org/data/unmaintained.txt"><?php _e('unmaintained packages')?></a></li> - <li><a href="http://check.mageia.org/"><?php _e('Global QA report')?></a></li> + <li><a href="http://svn.mageia.org/">Subversion</a>, + <a href="http://gitweb.mageia.org/">Git</a> code repositories</li> + <li><a href="http://pkgsubmit.mageia.org/">Packages submission queue</a>, + <a href="http://pkgsubmit.mageia.org/data/unmaintained.txt">unmaintained packages</a></li> + <li><a href="http://check.mageia.org/">Global QA report</a></li> </ul> </div> <div class="para"> <h2><?php _e('Conversations')?></h2> - <p><?php _e('... or, how to get in touch with us? Easy:')?></p> + <p>... or, how to get in touch with us? Easy:</p> <ul class="hl"> - <li><a href="https://wiki.mageia.org/en/IRC" title="Internet Relay Chat"><?php _e('IRC</a> on Freenode')?>,</li> - <li><a href="/mailman/"><?php _e('mailing-lists 1</a> & <a href="http://ml.mageia.org/">2')?></a>,</li> - <li><a href="<?php _e('https://forum.mageia.org/en/')?>"><?php _e('Forum')?></a>,</li> - <li><a href="<?php _e('http://blog.mageia.org/en/')?>"><?php _e('Blog')?></a>,</li> - <li><?php _e('in real life!')?></li> - <li><?php _e('during events!')?></li> + <li><a href="https://wiki.mageia.org/en/IRC" title="Internet Relay Chat">IRC</a> on Freenode</a>,</li> + <li><a href="/mailman/">mailing-lists 1</a> + & <a href="http://ml.mageia.org/">2</a>,</li> + <li><a href="<?php _e('forum_url')?>">forum</a>,</li> + <li><a href="<?php _e('blog_url')?>">blog</a>,</li> + <li>in real life!</li> + <li>during events!</li> </ul> <hr> <h2><?php _e('Teams you can join!')?></h2> <ul class="hl"> - <li><a href="https://wiki.mageia.org/en/Atelier_Team" hreflang="en"><?php _e('Atelier')?></a></li> - <li><a href="https://wiki.mageia.org/en/Documentation_team" hreflang="en"><?php _e('Documentation')?></a></li> - <li><a href="https://wiki.mageia.org/en/Packagers_Team" hreflang="en"><?php _e('Packaging')?></a></li> - <li><a href="https://wiki.mageia.org/en/QA_Team" hreflang="en"><?php _e('Testing & <abbr title="Quality Assurance">QA</abbr>')?></a></li> - <li><a href="https://wiki.mageia.org/en/Internationalisation_Team_(i18n)" hreflang="en"><?php _e('Translation')?></a></li> - <li><a href="https://wiki.mageia.org/en/Sysadmin_Team" hreflang="en"><?php _e('Systems & infrastructure administration')?></a></li> + <li><a href="https://wiki.mageia.org/en/Atelier_Team" hreflang="en">Atelier</a></li> + <li><a href="https://wiki.mageia.org/en/Documentation_team" hreflang="en">Documentation</a></li> + <li><a href="https://wiki.mageia.org/en/Packagers_Team" hreflang="en">Packaging</a></li> + <li><a href="https://wiki.mageia.org/en/QA_Team" hreflang="en">Testing & <abbr title="Quality Assurance">QA</abbr></a></li> + <li><a href="https://wiki.mageia.org/en/Internationalisation_Team_(i18n)" hreflang="en">Translation</a></li> + <li><a href="https://wiki.mageia.org/en/Sysadmin_Team" hreflang="en">Systems & infrastructure administration</a></li> </ul> <hr> @@ -126,20 +191,21 @@ include '../../lib/news.php'; --> </div> <div class="para"> - <h2><?php _e('Mageia')?></h2> + <h2>Mageia</h2> <ul class="hl"> - <li><a href="../about/"><?php _e('More about Mageia')?></a></li> - <li><?php _e('Our <a href="../about/code-of-conduct/">code of conduct</a> and <a href="../about/values/">values</a>')?></li> - <li><a href="http://wiki.mageia.org/en/Org"><?php _e('Our governance model</a> and structure:')?> + <li><a href="../about/">More about Mageia</a></li> + <li>Our <a href="../about/code-of-conduct/">code of conduct</a> and <a href="../about/values/">values</a></li> + <li><a href="http://wiki.mageia.org/en/Org">Our governance model</a> and structure: <ul> - <li><a href="https://wiki.mageia.org/en/Special:Search?search=teams"><?php _e('Teams')?></a></li> - <li><a href="http://wiki.mageia.org/en/Org_Council"><?php _e('the Council')?></a></li> - <li><a href="http://wiki.mageia.org/en/Org_Board"><?php _e('the Board')?></a></li> + <li><a href="https://wiki.mageia.org/en/Special:Search?search=teams">Teams</a></li> + <li><a href="http://wiki.mageia.org/en/Org_Council">the Council</a></li> + <li><a href="http://wiki.mageia.org/en/Org_Board">the Board</a></li> </ul></li> - <li><?php _e('<a href="../donate/">Donations</a> & <a href="/en/about/reports/">reports</a>.')?></li> + <li><a href="../donate/">Donations</a> & <a href="/en/about/reports/">reports</a>.</li> </ul> </div> - <p style="clear: both; text-align: right;"><mark><?php _e('This page needs you! <a href="https://wiki.mageia.org/en/Web_team">Join the Web team</a>!')?></mark></p> + <p style="clear: both; text-align: right;"><mark>This page needs you! + <a href="https://wiki.mageia.org/en/Web_team">Join the Web team</a>!</mark></p> </body> </html>
\ No newline at end of file diff --git a/langs/en/community.en.lang b/langs/en/community.en.lang index 52ad81595..697688c63 100644 --- a/langs/en/community.en.lang +++ b/langs/en/community.en.lang @@ -14,7 +14,7 @@ mageia, community, news, tools, tasks Mageia Community Central -;http://blog.mageia.org/en/ +;blog_url http://blog.mageia.org/en/ @@ -22,7 +22,7 @@ http://blog.mageia.org/en/ Blog -;http://planet.mageia.org/en/ +;planet_url http://planet.mageia.org/en/ @@ -34,7 +34,7 @@ Planet Calendar -;https://forum.mageia.org/en/ +;forum_url https://forum.mageia.org/en/ |