aboutsummaryrefslogtreecommitdiffstats
path: root/en/about/constitution
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2013-01-31 17:03:53 +0000
committerFilip Komar <filip@mageia.org>2013-01-31 17:03:53 +0000
commit466249d69667935b99b15d6fcd3e2be351da491e (patch)
tree7670311ee9471e207e9cdd2fde3ba4e5ae72a094 /en/about/constitution
parent815f49a0c5b302a610d31d912008047d8ccdab79 (diff)
downloadwww-466249d69667935b99b15d6fcd3e2be351da491e.tar
www-466249d69667935b99b15d6fcd3e2be351da491e.tar.gz
www-466249d69667935b99b15d6fcd3e2be351da491e.tar.bz2
www-466249d69667935b99b15d6fcd3e2be351da491e.tar.xz
www-466249d69667935b99b15d6fcd3e2be351da491e.zip
inclusion of pt-br translation of constitution by Marcio Padula Padula
Diffstat (limited to 'en/about/constitution')
-rw-r--r--en/about/constitution/index.php15
-rw-r--r--en/about/constitution/mageia.org_statutes_pt-br.md (renamed from en/about/constitution/mageia.org_statutes_pt-BR.md)0
2 files changed, 4 insertions, 11 deletions
diff --git a/en/about/constitution/index.php b/en/about/constitution/index.php
index 60180635a..9b40c5d97 100644
--- a/en/about/constitution/index.php
+++ b/en/about/constitution/index.php
@@ -33,18 +33,11 @@ _lang_load($locale, "about/constitution");
<?php
include G_APP_ROOT . '/lib/php-markdown/markdown.php';
$l = isset($_GET['l']) ? $_GET['l'] : $locale;
- if ($l == 'fr')
- echo Markdown(file_get_contents('mageia.org_statutes_fr.md'));
- else if ($l == 'sl')
- echo Markdown(file_get_contents('mageia.org_statutes_sl.md'));
- else if ($l == 'tr')
- echo Markdown(file_get_contents('mageia.org_statutes_tr.md'));
- else if ($l == 'ro')
- echo Markdown(file_get_contents('mageia.org_statutes_ro.md'));
- else if ($l == 'de')
- echo Markdown(file_get_contents('mageia.org_statutes_de.md'));
- else
+ if(in_array($l, array('en', 'fr', 'sl', 'tr', 'ro', 'pt-br'))) {
+ echo Markdown(file_get_contents('mageia.org_statutes_' . $l . '.md'));
+ } else {
echo Markdown(file_get_contents('mageia.org_statutes_en.md'));
+ }
?>
</div>
</div>
diff --git a/en/about/constitution/mageia.org_statutes_pt-BR.md b/en/about/constitution/mageia.org_statutes_pt-br.md
index 3ae9e2147..3ae9e2147 100644
--- a/en/about/constitution/mageia.org_statutes_pt-BR.md
+++ b/en/about/constitution/mageia.org_statutes_pt-br.md