diff options
author | Friendika <info@friendika.com> | 2011-03-08 18:53:52 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-03-08 18:53:52 -0800 |
commit | 0de88eb6b0e5ceab470240a54414317884a49101 (patch) | |
tree | 1771d6e52ecf64a96aecf2ccf5ce1b06259abfde /mod | |
parent | ea59e199d5609f4d196ecced569a8e267c2e27d5 (diff) | |
download | volse-hubzilla-0de88eb6b0e5ceab470240a54414317884a49101.tar.gz volse-hubzilla-0de88eb6b0e5ceab470240a54414317884a49101.tar.bz2 volse-hubzilla-0de88eb6b0e5ceab470240a54414317884a49101.zip |
yet another template converted to language neutral format
Diffstat (limited to 'mod')
-rw-r--r-- | mod/display.php | 7 | ||||
-rw-r--r-- | mod/network.php | 7 | ||||
-rw-r--r-- | mod/photos.php | 10 | ||||
-rw-r--r-- | mod/profile.php | 7 |
4 files changed, 26 insertions, 5 deletions
diff --git a/mod/display.php b/mod/display.php index edbadbc75..096ea16c9 100644 --- a/mod/display.php +++ b/mod/display.php @@ -151,7 +151,12 @@ function display_content(&$a) { if(can_write_wall($a,$a->profile['uid'])) { if($item['id'] == $item['parent']) { - $likebuttons = replace_macros($like_tpl,array('$id' => $item['id'])); + $likebuttons = replace_macros($like_tpl,array( + '$id' => $item['id'], + '$likethis' => t("I like this \x28toggle\x29"), + '$nolike' => t("I don't like this \x28toggle\x29"), + '$wait' => t('Please wait') + )); } if($item['last-child']) { $comment = replace_macros($cmnt_tpl,array( diff --git a/mod/network.php b/mod/network.php index 1ef4ab372..6f9e84b70 100644 --- a/mod/network.php +++ b/mod/network.php @@ -360,7 +360,12 @@ function network_content(&$a, $update = 0) { $likebuttons = ''; if($item['id'] == $item['parent']) { - $likebuttons = replace_macros($like_tpl,array('$id' => $item['id'])); + $likebuttons = replace_macros($like_tpl,array( + '$id' => $item['id'], + '$likethis' => t("I like this \x28toggle\x29"), + '$nolike' => t("I don't like this \x28toggle\x29"), + '$wait' => t('Please wait') + )); } if($item['last-child']) { diff --git a/mod/photos.php b/mod/photos.php index c1c6a4133..7d3e57616 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1033,8 +1033,14 @@ function photos_content(&$a) { $likebuttons = ''; - if($can_post || can_write_wall($a,$owner_uid)) - $likebuttons = replace_macros($like_tpl,array('$id' => $link_item['id'])); + if($can_post || can_write_wall($a,$owner_uid)) { + $likebuttons = replace_macros($like_tpl,array( + '$id' => $item['id'], + '$likethis' => t("I like this \x28toggle\x29"), + '$nolike' => t("I don't like this \x28toggle\x29"), + '$wait' => t('Please wait') + )); + } if(! count($r)) { $o .= '<div id="photo-like-div">'; diff --git a/mod/profile.php b/mod/profile.php index b23af2e66..9375b670b 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -302,7 +302,12 @@ function profile_content(&$a, $update = 0) { if(can_write_wall($a,$a->profile['profile_uid'])) { if($item['id'] == $item['parent']) { - $likebuttons = replace_macros($like_tpl,array('$id' => $item['id'])); + $likebuttons = replace_macros($like_tpl,array( + '$id' => $item['id'], + '$likethis' => t("I like this \x28toggle\x29"), + '$nolike' => t("I don't like this \x28toggle\x29"), + '$wait' => t('Please wait') + )); } if($item['last-child']) { $comment = replace_macros($cmnt_tpl,array( |