projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix variables on update
[Pman.Core]
/
I18n.php
diff --git
a/I18n.php
b/I18n.php
index
8367964
..
5f70c7a
100644
(file)
--- a/
I18n.php
+++ b/
I18n.php
@@
-200,6
+200,10
@@
class Pman_Core_I18n extends Pman
$i = DB_DataObject::Factory('I18n');
$ar[$lang]['m'] = $i->toTransList('m', $rlang);
}
$i = DB_DataObject::Factory('I18n');
$ar[$lang]['m'] = $i->toTransList('m', $rlang);
}
+ require_once 'I18Nv2/CurrencyMap.php';
+
+ $ar['currency_map'] = I18Nv2_CurrencyMap::$s_map;
+
//echo '<PRE>';print_r($ar);
header('Content-type: text/javascript');
echo "Roo.namespace('Pman.I18n');";
//echo '<PRE>';print_r($ar);
header('Content-type: text/javascript');
echo "Roo.namespace('Pman.I18n');";
@@
-231,7
+235,12
@@
class Pman_Core_I18n extends Pman
if (empty($k)) {
return '??';
}
if (empty($k)) {
return '??';
}
- $lang = !$au || empty($au->lang ) ? 'en' : is_string($au) ? $au : $au->lang;
+ $fo = &PEAR::getStaticProperty('HTML_Template_Flexy','options');
+
+ $fallback_lang = empty($fo['locale']) ? 'en' : $fo['locale'];
+
+
+ $lang = empty($au ) ? $fallback_lang : (is_string($au) ? $au : $au->lang);
// does it need caching?
// does it need caching?