projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Process/Php7.php
[Pman.Core]
/
I18n.php
diff --git
a/I18n.php
b/I18n.php
index
b6812a0
..
15f1198
100644
(file)
--- a/
I18n.php
+++ b/
I18n.php
@@
-107,7
+107,7
@@
class Pman_Core_I18n extends Pman
return explode('_', $lang);
}
return explode('_', $lang);
}
- function get($s ='')
+ function get($s =''
, $opts=array()
)
{
$this->sessionState(0);
{
$this->sessionState(0);
@@
-189,7
+189,8
@@
class Pman_Core_I18n extends Pman
foreach($langs as $lang)
{
//$rlang = array_shift(explode('_', strtoupper($lang)));
foreach($langs as $lang)
{
//$rlang = array_shift(explode('_', strtoupper($lang)));
- $rlang = array_shift(explode('_', $lang));
+ $ll = explode('_', $lang);
+ $rlang = array_shift($ll);
$ar[$lang] = array();
$i = DB_DataObject::Factory('I18n');
$ar[$lang] = array();
$i = DB_DataObject::Factory('I18n');
@@
-201,6
+202,7
@@
class Pman_Core_I18n extends Pman
}
//echo '<PRE>';print_r($ar);
header('Content-type: text/javascript');
}
//echo '<PRE>';print_r($ar);
header('Content-type: text/javascript');
+ echo "Roo.namespace('Pman.I18n');";
echo 'Pman.I18n.Data = ' . json_encode($ar);
exit;
echo 'Pman.I18n.Data = ' . json_encode($ar);
exit;