Author: asterix
Date: 2006-08-29 22:25:03 +0200 (Tue, 29 Aug 2006)
New Revision: 6690
Modified:
www-website/Design.php
www-website/msg.pot
Log:
show brazilian flag in website
Modified: www-website/Design.php
===================================================================
--- www-website/Design.php 2006-08-29 20:15:18 UTC (rev 6689)
+++ www-website/Design.php 2006-08-29 20:25:03 UTC (rev 6690)
@@ -58,7 +58,7 @@
$preflang = get_pref_language_array($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
else
$preflang = array(0 => 'en');
- $availablelang = array('fr', 'en', 'es', 'bg');
+ $availablelang = array('fr', 'en', 'es', 'bg', 'pt-br');
$result = array_intersect($preflang, $availablelang);
if (count($result) != 0)
$language = $result[0];
@@ -72,7 +72,7 @@
session_start();
// print_r($_SERVER);
$language = get_language();
- $lang_association = array('fr' => 'fr_FR', 'fr_CA' => 'fr_FR', 'en' => 'en_US', 'en-gb' => 'en_US', 'en-us' => 'en_US', 'es' => 'es_ES', 'es_MX' => 'es_ES', 'es_AR' => 'es_ES', 'es_UY' => 'es_ES', 'bg' => 'bg_BG');
+ $lang_association = array('fr' => 'fr_FR', 'fr_CA' => 'fr_FR', 'en' => 'en_US', 'en-gb' => 'en_US', 'en-us' => 'en_US', 'es' => 'es_ES', 'es_MX' => 'es_ES', 'es_AR' => 'es_ES', 'es_UY' => 'es_ES', 'bg' => 'bg_BG', 'pt' => 'pt_BR', 'pt-br' => 'pt_BR');
$lang = $lang_association[$language];
// echo "$language $lang";
putenv("LANG=$lang");
@@ -135,6 +135,7 @@
echo " <a href = \"$page?lang=fr\"><img src=\"imgs/fr_flag.png\" alt=\"fr_flag\" title=\"Site en français\" /></a>\n";
echo " <a href = \"$page?lang=es\"><img src=\"imgs/es_flag.png\" alt=\"es_flag\" title=\"Web en español\" /></a>\n";
echo " <a href = \"$page?lang=bg\"><img src=\"imgs/bg_flag.png\" alt=\"bg_flag\" title=\"Страницата на български език\" /></a>\n";
+ echo " <a href = \"$page?lang=pt-br\"><img src=\"imgs/pt_br_flag.png\" alt=\"pt_BR_flag\" title=\"Website em português\" /></a>\n";
echo " <a href = \"$page?lang=en\"><img src=\"imgs/en_flag.png\" alt=\"en_flag\" title=\"Website in English\" /></a>\n";
echo " </div> <!-- translator -->\n";
Modified: www-website/msg.pot
===================================================================
--- www-website/msg.pot 2006-08-29 20:15:18 UTC (rev 6689)
+++ www-website/msg.pot 2006-08-29 20:25:03 UTC (rev 6690)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-08-24 11:47+0200\n"
+"POT-Creation-Date: 2006-08-29 22:12+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL(a)li.org>\n"
@@ -16,111 +16,111 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#: Design.php:86
+#: Design.php:87
msgid "Home"
msgstr ""
-#: Design.php:87
+#: Design.php:88
msgid "Screenshots"
msgstr ""
-#: Design.php:88
+#: Design.php:89
msgid "Download"
msgstr ""
-#: Design.php:89
+#: Design.php:90
msgid "Documentation"
msgstr ""
-#: Design.php:90
+#: Design.php:91
msgid "Wiki"
msgstr ""
-#: Design.php:91
+#: Design.php:92
msgid "Development"
msgstr ""
-#: Design.php:95
+#: Design.php:96
msgid "Debian"
msgstr ""
-#: Design.php:96
+#: Design.php:97
msgid "Slackware"
msgstr ""
-#: Design.php:97
+#: Design.php:98
msgid "Ubuntu"
msgstr ""
-#: Design.php:98
+#: Design.php:99
msgid "Fedora"
msgstr ""
-#: Design.php:99
+#: Design.php:100
msgid "Gentoo"
msgstr ""
-#: Design.php:100
+#: Design.php:101
msgid "Archlinux"
msgstr ""
-#: Design.php:101
+#: Design.php:102
msgid "SuSE"
msgstr ""
-#: Design.php:102
+#: Design.php:103
msgid "PLD"
msgstr ""
-#: Design.php:103
+#: Design.php:104
msgid "Sourcemage"
msgstr ""
-#: Design.php:104
+#: Design.php:105
msgid "FreeBSD"
msgstr ""
-#: Design.php:105
+#: Design.php:106
msgid "Autopackage"
msgstr ""
-#: Design.php:106
+#: Design.php:107
msgid "Windows installer"
msgstr ""
-#: Design.php:107
+#: Design.php:108
msgid "Source"
msgstr ""
-#: Design.php:108
+#: Design.php:109
msgid "Subversion"
msgstr ""
-#: Design.php:109
+#: Design.php:110
msgid "Daily snapshots"
msgstr ""
-#: Design.php:110
+#: Design.php:111
msgid "Old releases"
msgstr ""
-#: Design.php:114
+#: Design.php:115
msgid "Installation"
msgstr ""
-#: Design.php:115
+#: Design.php:116
msgid "Jabber"
msgstr ""
-#: Design.php:116
+#: Design.php:117
msgid "Structure"
msgstr ""
-#: Design.php:131
+#: Design.php:132
msgid " Language: \n"
msgstr ""
-#: Design.php:171
+#: Design.php:172
msgid ""
" Site optimized for W3C Standards and realized with vim editor under GNU/"
"Linux by Asterix (Jabber ID: asterix(a)jabber.lagaule.org)\n"