aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-29 18:11:23 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-29 18:11:23 -0700
commite25e40f1ef4e1ad703c55b13069461ee0d712eae (patch)
tree41966307ee765db01b6ecebcff447329605a6fe5 /include
parent8ba3737b3b7284c9b7cf40028240ebf89daad1d7 (diff)
downloadvolse-hubzilla-e25e40f1ef4e1ad703c55b13069461ee0d712eae.tar.gz
volse-hubzilla-e25e40f1ef4e1ad703c55b13069461ee0d712eae.tar.bz2
volse-hubzilla-e25e40f1ef4e1ad703c55b13069461ee0d712eae.zip
i18n string extraction util
Diffstat (limited to 'include')
-rw-r--r--include/datetime.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/datetime.php b/include/datetime.php
index ca6c1b467..b0279492b 100644
--- a/include/datetime.php
+++ b/include/datetime.php
@@ -5,8 +5,8 @@
if(! function_exists('timezone_cmp')) {
function timezone_cmp($a, $b) {
if(strstr($a,'/') && strstr($b,'/')) {
- if ($a == $b) return 0;
- return ($a < $b) ? -1 : 1;
+ if ( t($a) == t($b)) return 0;
+ return ( t($a) < t($b)) ? -1 : 1;
}
if(strstr($a,'/')) return -1;
if(strstr($b,'/')) return 1;
@@ -41,9 +41,9 @@ function select_timezone($current = 'America/Los_Angeles') {
}
else {
$city = $ex[0];
- if($continent != 'Miscellaneous') {
+ if($continent != t('Miscellaneous')) {
$o .= '</optgroup>';
- $continent = 'Miscellaneous';
+ $continent = t('Miscellaneous');
$o .= '<optgroup label="' . t($continent) . '">';
}
}