aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-04-04 09:31:12 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-04-04 09:31:12 +0200
commit92156cd8403fa1521ecf3c3f9ed3823c03c73dcd (patch)
tree38e7b6573c7162254e56dddcaa1543361ead1dbc /boot.php
parentb48e82d12ab3d5ea07f9e8410aacb9c3ae842539 (diff)
parent9b50b0e16f2046b91cb4c734c56024524d8b178b (diff)
downloadvolse-hubzilla-92156cd8403fa1521ecf3c3f9ed3823c03c73dcd.tar.gz
volse-hubzilla-92156cd8403fa1521ecf3c3f9ed3823c03c73dcd.tar.bz2
volse-hubzilla-92156cd8403fa1521ecf3c3f9ed3823c03c73dcd.zip
Merge remote-tracking branch 'friendika-master/master' into iconpopup
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php33
1 files changed, 25 insertions, 8 deletions
diff --git a/boot.php b/boot.php
index 7503d69e9..334f0a742 100644
--- a/boot.php
+++ b/boot.php
@@ -2,9 +2,9 @@
set_time_limit(0);
-define ( 'FRIENDIKA_VERSION', '2.1.933' );
-define ( 'DFRN_PROTOCOL_VERSION', '2.1' );
-define ( 'DB_UPDATE_VERSION', 1045 );
+define ( 'FRIENDIKA_VERSION', '2.1.938' );
+define ( 'DFRN_PROTOCOL_VERSION', '2.2' );
+define ( 'DB_UPDATE_VERSION', 1046 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
@@ -2022,7 +2022,7 @@ function contact_block() {
intval($shown)
);
if(count($r)) {
- $o .= '<h4 class="contact-h4">' . sprintf(tt('%d Contact','%d Contacts', $total),$total) . '</h4><div id="contact-block">';
+ $o .= '<h4 class="contact-h4">' . sprintf( tt('%d Contact','%d Contacts', $total),$total) . '</h4><div id="contact-block">';
foreach($r as $rr) {
$redirect_url = $a->get_baseurl() . '/redir/' . $rr['id'];
if(local_user() && ($rr['uid'] == local_user())
@@ -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`
@@ -2670,7 +2668,6 @@ function extract_item_authors($arr,$uid) {
return array();
}}
-
if(! function_exists('item_photo_menu')){
function item_photo_menu($item){
$a = get_app();
@@ -2721,3 +2718,23 @@ function item_photo_menu($item){
}
return $o;
}}
+
+if(! function_exists('lang_selector')) {
+function lang_selector() {
+ global $lang;
+ $o .= '<div id="language-selector" style="display: none;" >';
+ $o .= '<form action="" method="post" ><select name="system_language" onchange="this.form.submit();" >';
+ $langs = glob('view/*/strings.php');
+ if(is_array($langs) && count($langs)) {
+ if(! in_array('view/en/strings.php',$langs))
+ $langs[] = 'view/en/';
+ foreach($langs as $l) {
+ $ll = substr($l,5);
+ $ll = substr($ll,0,strrpos($ll,'/'));
+ $selected = (($ll === $lang) ? ' selected="selected" ' : '');
+ $o .= '<option value="' . $ll . '"' . $selected . '>' . $ll . '</option>';
+ }
+ }
+ $o .= '</select></form></div>';
+ return $o;
+}}