]> git.mxchange.org Git - friendica.git/commitdiff
translateable time formats (PM & birthdays)
authorFriendika <info@friendika.com>
Thu, 31 Mar 2011 21:46:16 +0000 (14:46 -0700)
committerFriendika <info@friendika.com>
Thu, 31 Mar 2011 21:46:16 +0000 (14:46 -0700)
boot.php
mod/message.php

index 8a2706252a6996062ff8e877d7f9b569c4247aaa..e32e9a8fa000099b59da43f41330dbe80f2cc14b 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -2,7 +2,7 @@
 
 set_time_limit(0);
 
-define ( 'FRIENDIKA_VERSION',      '2.1.934' );
+define ( 'FRIENDIKA_VERSION',      '2.1.935' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.2'  );
 define ( 'DB_UPDATE_VERSION',      1045   );
 
@@ -2405,9 +2405,7 @@ function get_birthdays() {
        if(! local_user())
                return $o;
 
-       $bd_format = get_config('system','birthday_format');
-       if(! $bd_format)
-               $bd_format = 'g A l F d' ; // 8 AM Friday January 18
+       $bd_format = t('g A l F d') ; // 8 AM Friday January 18
 
        $r = q("SELECT `event`.*, `event`.`id` AS `eid`, `contact`.* FROM `event` 
                LEFT JOIN `contact` ON `contact`.`id` = `event`.`cid` 
index 9d30abd668df63040c8a0af34caece92602ec3f2..7978ecaf2bc6864df50a91050bebc8bba7fd9ecd 100644 (file)
@@ -235,7 +235,7 @@ function message_content(&$a) {
                                '$delete' => t('Delete conversation'),
                                '$body' => $rr['body'],
                                '$to_name' => $rr['name'],
-                               '$date' => datetime_convert('UTC',date_default_timezone_get(),$rr['mailcreated'],'D, d M Y - g:i A')
+                               '$date' => datetime_convert('UTC',date_default_timezone_get(),$rr['mailcreated'], t('D, d M Y - g:i A'))
                        ));
                }
                $o .= paginate($a);