Skip to content

Commit

Permalink
extract strings
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiruili committed Jul 16, 2017
1 parent cb4985f commit 64f0199
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,14 @@ public void onNewIncomingCall(int callId, int callType, ILVIncomingNotification
if (notification.getMembersString() == null) {
membersMsg = "";
} else {
membersMsg = "\n参与者:" + notification.getMembersString();
membersMsg = "\n" + getString(R.string.label_members) + notification.getMembersString();
}
new AlertDialog.Builder(this)
.setTitle("新会议请求")
.setMessage("会议发起人:" + notification.getSponsorId() + membersMsg)
.setNegativeButton("拒绝",
.setTitle(R.string.label_incoming_call_title)
.setMessage(getString(R.string.label_sponsor_prefix) + notification.getSponsorId() + membersMsg)
.setNegativeButton(R.string.label_refuse_btn,
(dialog, which) -> ILVCallManager.getInstance().rejectCall(callId))
.setPositiveButton("接受", (dialog, which) -> {
.setPositiveButton(R.string.label_accept_btn, (dialog, which) -> {
final ArrayList<String> members = new ArrayList<>();
if (notification.getMembers() != null) {
members.addAll(notification.getMembers());
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
<string name="title_resents">通话记录</string>
<string name="title_contacts">联系人</string>
<string name="intent_extra_has_login" translatable="false">has_login</string>
<string name="label_incoming_call_title">新会议请求</string>
<string name="label_sponsor_prefix">会议发起人:</string>
<string name="label_refuse_btn">拒绝</string>
<string name="label_accept_btn">接受</string>
<string name="label_members">参与者:</string>

<!-- ToCallBufferFragment -->
<string name="label_called_id_input_hint">输入被呼叫号码</string>
Expand All @@ -42,6 +47,7 @@
<string name="label_logout_success">注销成功</string>
<string name="error_unable_to_add_more_members">无法添加更多的会议成员</string>

<!-- RecentCallsFragment -->
<string name="label_call_in">呼入</string>
<string name="label_call_out">呼出</string>

Expand Down

0 comments on commit 64f0199

Please sign in to comment.