From c54f3a61c450f5da6bd26bafa4762b21a66c8dc5 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Mon, 21 Mar 2016 16:54:06 +0900 Subject: [PATCH] Hide friend group actions if there are no friend groups --- modules/communication/lang/en.php | 6 ++++-- modules/communication/lang/ja.php | 2 ++ modules/communication/lang/ko.php | 4 +++- modules/communication/skins/default/friends.html | 12 ++++++------ 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/modules/communication/lang/en.php b/modules/communication/lang/en.php index 2c323f412..ed0c26480 100644 --- a/modules/communication/lang/en.php +++ b/modules/communication/lang/en.php @@ -21,7 +21,9 @@ $lang->cmd_message_box = 'Message Box'; $lang->cmd_view_message_box = 'Message Box'; $lang->cmd_store = 'Save'; $lang->cmd_add_friend_group = 'Add Friend Group'; -$lang->cmd_rename_friend_group = 'Modify Friend Group Name'; +$lang->cmd_rename_friend_group = 'Rename Friend Group'; +$lang->cmd_delete_friend_group = 'Delete Friend Group'; +$lang->msg_already_friend = 'You are already friends with this person.'; $lang->msg_no_message = 'There is no message.'; $lang->msg_cannot_send_to_yourself = 'Cannot send a message to yourself.'; $lang->message_received = 'You have a new message.'; @@ -36,4 +38,4 @@ $lang->communication_send_message_grant = 'Send Message Grant'; $lang->cmd_manage_base = 'Basic infomation'; $lang->alert_new_message_arrived = 'You have %d new message(s). Do you want to check it now?'; $lang->enable_communication_friend = 'Friend Enable'; -$lang->enable_communication_message = 'Message Enable'; \ No newline at end of file +$lang->enable_communication_message = 'Message Enable'; diff --git a/modules/communication/lang/ja.php b/modules/communication/lang/ja.php index b0a821f76..3c8345302 100644 --- a/modules/communication/lang/ja.php +++ b/modules/communication/lang/ja.php @@ -22,6 +22,8 @@ $lang->cmd_view_message_box = 'メッセージ'; $lang->cmd_store = '保存'; $lang->cmd_add_friend_group = '友達グループ追加'; $lang->cmd_rename_friend_group = '友達グループ名変更'; +$lang->cmd_delete_friend_group = '友達グループ削除'; +$lang->msg_already_friend = '既に友達として登録されています。'; $lang->msg_no_message = 'メッセージがありません。'; $lang->msg_cannot_send_to_yourself = '自分自身へのメッセージ送信はできません。'; $lang->message_received = 'メッセージが届きました。'; diff --git a/modules/communication/lang/ko.php b/modules/communication/lang/ko.php index fa0be5d8d..9b4548cdd 100644 --- a/modules/communication/lang/ko.php +++ b/modules/communication/lang/ko.php @@ -22,6 +22,8 @@ $lang->cmd_view_message_box = '쪽지함 보기'; $lang->cmd_store = '보관'; $lang->cmd_add_friend_group = '친구 그룹 추가'; $lang->cmd_rename_friend_group = '친구 그룹 이름 변경'; +$lang->cmd_delete_friend_group = '친구 그룹 삭제'; +$lang->msg_already_friend = '이미 친구로 등록되어 있습니다.'; $lang->msg_no_message = '쪽지가 없습니다.'; $lang->msg_cannot_send_to_yourself = '자기 자신에게 쪽지를 보낼 수 없습니다.'; $lang->message_received = '쪽지가 왔습니다.'; @@ -36,4 +38,4 @@ $lang->communication_send_message_grant = '쪽지 발송 권한'; $lang->cmd_manage_base = '기본 정보'; $lang->alert_new_message_arrived = '%d개의 새로운 메시지가 도착하였습니다. 확인하시겠습니까?'; $lang->enable_communication_friend = '친구기능 사용'; -$lang->enable_communication_message = '쪽지기능 사용'; \ No newline at end of file +$lang->enable_communication_message = '쪽지기능 사용'; diff --git a/modules/communication/skins/default/friends.html b/modules/communication/skins/default/friends.html index ffaba4538..bd2bdbf2c 100644 --- a/modules/communication/skins/default/friends.html +++ b/modules/communication/skins/default/friends.html @@ -20,12 +20,12 @@ - - - + + {$lang->cmd_add_friend_group} @@ -42,7 +42,7 @@ - {$val->group_title?$val->group_title:" "} + {$val->group_title?$val->group_title:$lang->default_friend_group} {$val->nick_name} {zdate($val->regdate,"Y-m-d")} @@ -50,11 +50,11 @@
- - +