From a51a1007a38e763adcae5ea3865745b2ae80f921 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 3 Jan 2011 13:26:43 -0800 Subject: email check failed, translate wall_item template --- boot.php | 2 +- mod/display.php | 1 + mod/network.php | 1 + mod/profile.php | 1 + util/strings.php | 4 ++-- view/wall_item.tpl | 4 ++-- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/boot.php b/boot.php index 6fe5ee99d..cbbe55edc 100644 --- a/boot.php +++ b/boot.php @@ -1497,7 +1497,7 @@ function validate_email($addr) { return false; $h = substr($addr,strpos($addr,'@') + 1); - if(($h) && (dns_get_record($h['host'], DNS_A + DNS_CNAME + DNS_PTR + DNS_MX))) { + if(($h) && (dns_get_record($h, DNS_A + DNS_CNAME + DNS_PTR + DNS_MX))) { return true; } return false; diff --git a/mod/display.php b/mod/display.php index fd845e608..30b55dece 100644 --- a/mod/display.php +++ b/mod/display.php @@ -243,6 +243,7 @@ function display_content(&$a) { $tmp_item = replace_macros($template,array( '$id' => $item['item_id'], + '$title' => t('View $name's profile'), '$profile_url' => $profile_link, '$name' => $profile_name, '$sparkle' => $sparkle, diff --git a/mod/network.php b/mod/network.php index ad6db2d1e..e1bec8dfa 100644 --- a/mod/network.php +++ b/mod/network.php @@ -286,6 +286,7 @@ function network_content(&$a, $update = 0) { $tmp_item = replace_macros($template,array( '$id' => $item['item_id'], + '$title' => t('View $name's profile'), '$profile_url' => $profile_link, '$name' => $profile_name, '$thumb' => $profile_avatar, diff --git a/mod/profile.php b/mod/profile.php index cc0debd99..7a57bd5a4 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -344,6 +344,7 @@ function profile_content(&$a, $update = 0) { $tmp_item = replace_macros($template,array( '$id' => $item['item_id'], + '$title' => t('View $name's profile'), '$profile_url' => $profile_link, '$name' => $profile_name, '$thumb' => $profile_avatar, diff --git a/util/strings.php b/util/strings.php index cf7299cde..fa0e15717 100644 --- a/util/strings.php +++ b/util/strings.php @@ -139,6 +139,7 @@ $a->strings['Global Directory'] = 'Global Directory'; $a->strings['Item not found.'] = 'Item not found.'; $a->strings['Private Message'] = 'Private Message'; $a->strings['This is you'] = 'This is you'; +$a->strings['View $name's profile'] = 'View $name's profile'; $a->strings['Item has been removed.'] = 'Item has been removed.'; $a->strings['The profile address specified does not provide adequate information.'] = 'The profile address specified does not provide adequate information.'; $a->strings['Limited profile. This person will be unable to receive direct/personal notifications from you.'] = 'Limited profile. This person will be unable to receive direct/personal notifications from you.'; @@ -195,7 +196,6 @@ $a->strings['Unable to locate original post.'] = 'Unable to locate original post $a->strings['Empty post discarded.'] = 'Empty post discarded.'; $a->strings[" commented on your item at "] = " commented on your item at "; $a->strings[" posted on your profile wall at "] = " posted on your profile wall at "; -$a->strings['Facebook status update failed.'] = 'Facebook status update failed.'; $a->strings['photo'] = 'photo'; $a->strings['status'] = 'status'; $a->strings['likes'] = 'likes'; @@ -341,10 +341,10 @@ $a->strings['Select a tag to remove: '] = 'Select a tag to remove: '; $a->strings['Remove'] = 'Remove'; $a->strings['No contacts.'] = 'No contacts.'; $a->strings['Wall Photos'] = 'Wall Photos'; +$a->strings['Logged out.'] = 'Logged out.'; $a->strings['Visible To:'] = 'Visible To:'; $a->strings['Groups'] = 'Groups'; $a->strings['Except For:'] = 'Except For:'; -$a->strings['Logged out.'] = 'Logged out.'; $a->strings['Unknown | Not categorised'] = 'Unknown | Not categorised'; $a->strings['Block immediately'] = 'Block immediately'; $a->strings['Shady, spammer, self-marketer'] = 'Shady, spammer, self-marketer'; diff --git a/view/wall_item.tpl b/view/wall_item.tpl index 4d2404ce0..67fce4152 100644 --- a/view/wall_item.tpl +++ b/view/wall_item.tpl @@ -1,13 +1,13 @@
$lock - $name + $name
$ago
$location
$vote -- cgit v1.2.3