[aur-dev] [PATCH] Move SUPPORTED_LANGS out of config.inc.php

Dan McGee dan at archlinux.org
Thu Oct 20 10:27:18 EDT 2011


This has no real business being here, and is a pain to update when new
languages are shipped. Move it to aur.inc.php instead so it doesn't
overwhelm the user-configurable settings file with static stuff.

Signed-off-by: Dan McGee <dan at archlinux.org>
---
 web/lib/aur.inc.php          |   28 ++++++++++++++++++++++++++++
 web/lib/config.inc.php.proto |   28 ----------------------------
 2 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index f432697..e784794 100644
--- a/web/lib/aur.inc.php
+++ b/web/lib/aur.inc.php
@@ -15,6 +15,34 @@ include_once("version.inc.php");
 include_once("acctfuncs.inc.php");
 include_once("cachefuncs.inc.php");
 
+# Languages we have translations for
+$SUPPORTED_LANGS = array(
+	"ca" => "Català",
+	"cs" => "česky",
+	"da" => "Dansk",
+	"de" => "Deutsch",
+	"en" => "English",
+	"el" => "Ελληνικά",
+	"es" => "Español",
+	"fi" => "Finnish",
+	"fr" => "Français",
+	"he" => "עברית",
+	"hr" => "Hrvatski",
+	"hu" => "Magyar",
+	"it" => "Italiano",
+	"nb_NO" => "Norsk",
+	"nl" => "Dutch",
+	"pl" => "Polski",
+	"pt" => "Português",
+	"pt_BR" => "Português (Brasil)",
+	"ro" => "Română",
+	"ru" => "Русский",
+	"sr" => "Srpski",
+	"tr" => "Türkçe",
+	"uk" => "Українська",
+	"zh_CN" => "简体中文"
+);
+
 # see if the visitor is already logged in
 #
 function check_sid($dbh=NULL) {
diff --git a/web/lib/config.inc.php.proto b/web/lib/config.inc.php.proto
index 61c37f0..ef5918d 100644
--- a/web/lib/config.inc.php.proto
+++ b/web/lib/config.inc.php.proto
@@ -33,34 +33,6 @@ define("SQL_DEBUG", 0);
 # to '127.0.0.1:11211'.
 #define("MEMCACHE_SERVERS", '127.0.0.1:11211');
 
-# Languages we have translations for
-$SUPPORTED_LANGS = array(
-	"ca" => "Català",
-	"cs" => "česky",
-	"da" => "Dansk",
-	"de" => "Deutsch",
-	"en" => "English",
-	"el" => "Ελληνικά",
-	"es" => "Español",
-	"fi" => "Finnish",
-	"fr" => "Français",
-	"he" => "עברית",
-	"hr" => "Hrvatski",
-	"hu" => "Magyar",
-	"it" => "Italiano",
-	"nb_NO" => "Norsk",
-	"nl" => "Dutch",
-	"pl" => "Polski",
-	"pt" => "Português",
-	"pt_BR" => "Português (Brasil)",
-	"ro" => "Română",
-	"ru" => "Русский",
-	"sr" => "Srpski",
-	"tr" => "Türkçe",
-	"uk" => "Українська",
-	"zh_CN" => "简体中文"
-);
-
 # Session limit per user
 $MAX_SESSIONS_PER_USER = 8;
 
-- 
1.7.7



More information about the aur-dev mailing list