Skip to content

Commit

Permalink
improve members follow translation
Browse files Browse the repository at this point in the history
  • Loading branch information
skywalker512 committed Jul 9, 2018
1 parent b4180a9 commit 61aada6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
@@ -1,4 +1,5 @@
<?php
$definitions["Follow-m"] = "关注该用户";
$definitions["email.postMember.body"] = "<p>你关注的<strong>%1\$s</strong>发表了一个新话题: <strong>%2\$s</strong></p><hr>%3\$s<hr><p>了解详情请点击<br>%4\$s</p>";
$definitions["email.postMember.subject"] = "你关注的 %1\$s 发表了一个新话题";
$definitions["Email me when there is a new post by a member I have followed"] = "我关注的用户发帖时,邮件通知我";
2 changes: 1 addition & 1 deletion addons/languages/Chinese/definitions.php
Expand Up @@ -166,7 +166,7 @@
$definitions["Find this post"] = "搜索这个话题";
$definitions["First posted"] = "最早发布";
$definitions["Follow"] = "关注话题";
$definitions["Follow to receive notifications"] = "提醒我回复的通知";
$definitions["Follow to receive notifications"] = "关注以获得提醒";
$definitions["Following"] = "取消关注";
$definitions["For %s seconds"] = "%s秒";
$definitions["Forever"] = "保持";
Expand Down
2 changes: 1 addition & 1 deletion addons/plugins/MemberNotifications/plugin.php
Expand Up @@ -52,7 +52,7 @@ public function handler_memberController_initProfile($sender, $member, $panes, $
$starred = @$member["follow"];

$url = URL("member/follow/".$member["memberId"]."?token=".ET::$session->token."&return=".urlencode(ET::$controller->selfURL));
$actions->add("follow", "<a href='$url' class='button' title='".T("Follow to receive notifications")."' data-id='{$member["memberId"]}'><i class='star icon-star".($starred ? "" : "-empty")."'></i> <span>".($starred ? T("Following") : T("Follow"))."</span></a>", 0);
$actions->add("follow", "<a href='$url' class='button' title='".T("Follow to receive notifications")."' data-id='{$member["memberId"]}'><i class='star icon-star".($starred ? "" : "-empty")."'></i> <span>".($starred ? T("Following") : T("Follow-m"))."</span></a>", 0);
}

// Add an action to toggle the following status of a member.
Expand Down

0 comments on commit 61aada6

Please sign in to comment.