From 6cc0ccf643a2262cccd54273e860eb791fe627a4 Mon Sep 17 00:00:00 2001
From: Romain d'Alverny
Date: Fri, 10 Jun 2011 17:39:21 +0000
Subject: very basic i18n class to manage strings merges/selection
---
langs.inc.php | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 75 insertions(+), 1 deletion(-)
(limited to 'langs.inc.php')
diff --git a/langs.inc.php b/langs.inc.php
index b909f57b7..647f4011c 100644
--- a/langs.inc.php
+++ b/langs.inc.php
@@ -26,6 +26,11 @@ $langs = array(
'zh-tw' => '正體中文'
);
+$i18n_fallback_rules = array(
+ 'pt-br' => 'pt',
+ 'pt' => 'pt-br'
+);
+
// TODO (rda) define fallback languages for each language
// for instance, pt-br could fallback on pt and pt on pt-br (but without
// a cycle) then on es, etc.
@@ -81,4 +86,73 @@ S;
'check out our Web and ',
'localization teams!
',
'