projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetic version fixes in dbinstall.php.
[timetracker.git]
/
WEB-INF
/
lib
/
I18n.class.php
diff --git
a/WEB-INF/lib/I18n.class.php
b/WEB-INF/lib/I18n.class.php
index
fd158f5
..
0e3dd02
100644
(file)
--- a/
WEB-INF/lib/I18n.class.php
+++ b/
WEB-INF/lib/I18n.class.php
@@
-35,19
+35,19
@@
class I18n {
var $holidays;
var $keys = array(); // These are our localized strings.
var $holidays;
var $keys = array(); // These are our localized strings.
- //
The getKey obtains localized keyword value
.
- function get
Key($kword
) {
+ //
get - obtains a localized value from $keys array
.
+ function get
($key
) {
$value = '';
$value = '';
- $pos = strpos($k
word
, '.'); // Keywords can have separating dots such as in form.login.about.
+ $pos = strpos($k
ey
, '.'); // Keywords can have separating dots such as in form.login.about.
if (!($pos === false)) {
if (!($pos === false)) {
- $words = explode('.', $k
word
);
+ $words = explode('.', $k
ey
);
$str = '';
foreach ($words as $word) {
$str .= "['".$word."']";
}
eval("\$value = \$this->keys".$str.";");
} else {
$str = '';
foreach ($words as $word) {
$str .= "['".$word."']";
}
eval("\$value = \$this->keys".$str.";");
} else {
- $value = $this->keys[$k
word
];
+ $value = $this->keys[$k
ey
];
}
return $value;
}
}
return $value;
}
@@
-70,9
+70,9
@@
class I18n {
$this->weekdayNames = $i18n_weekdays;
$this->weekdayShortNames = $i18n_weekdays_short;
$this->weekdayNames = $i18n_weekdays;
$this->weekdayShortNames = $i18n_weekdays_short;
- if (defined('SHOW_HOLIDAYS') && isTrue(SHOW_HOLIDAYS)) {
+
//
if (defined('SHOW_HOLIDAYS') && isTrue(SHOW_HOLIDAYS)) {
$this->holidays = $i18n_holidays;
$this->holidays = $i18n_holidays;
- }
+
//
}
foreach ($i18n_key_words as $kword=>$value) {
$pos = strpos($kword, ".");
foreach ($i18n_key_words as $kword=>$value) {
$pos = strpos($kword, ".");
@@
-97,9
+97,9
@@
class I18n {
$this->monthNames = $i18n_months;
$this->weekdayNames = $i18n_weekdays;
$this->weekdayShortNames = $i18n_weekdays_short;
$this->monthNames = $i18n_months;
$this->weekdayNames = $i18n_weekdays;
$this->weekdayShortNames = $i18n_weekdays_short;
- if (defined('SHOW_HOLIDAYS') && isTrue(SHOW_HOLIDAYS)) {
+
//
if (defined('SHOW_HOLIDAYS') && isTrue(SHOW_HOLIDAYS)) {
$this->holidays = $i18n_holidays;
$this->holidays = $i18n_holidays;
- }
+
//
}
foreach ($i18n_key_words as $kword=>$value) {
if (!$value) continue;
$pos = strpos($kword, ".");
foreach ($i18n_key_words as $kword=>$value) {
if (!$value) continue;
$pos = strpos($kword, ".");