String improvements

This commit is contained in:
PeratX 2017-05-23 20:25:21 +08:00
parent 39d199a69d
commit 06ea0749fa
4 changed files with 4 additions and 11 deletions

View File

@ -125,14 +125,14 @@ public class DnsServerConfigFragment extends ConfigFragment {
if (index != ConfigActivity.ID_NONE) {
new AlertDialog.Builder(getActivity())
.setTitle(R.string.notice_delete_confirm_prompt)
.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Daedalus.configurations.getCustomDnsServers().remove(index);
getActivity().finish();
}
})
.setNegativeButton(R.string.no, null)
.setNegativeButton(android.R.string.no, null)
.create()
.show();
} else {

View File

@ -248,7 +248,7 @@ public class RuleConfigFragment extends ConfigFragment {
if (this.id != ConfigActivity.ID_NONE) {
new AlertDialog.Builder(getActivity())
.setTitle(R.string.notice_delete_confirm_prompt)
.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Rule rule = Rule.getRuleById(String.valueOf(RuleConfigFragment.this.id));
@ -258,7 +258,7 @@ public class RuleConfigFragment extends ConfigFragment {
getActivity().finish();
}
})
.setNegativeButton(R.string.no, null)
.setNegativeButton(android.R.string.no, null)
.create()
.show();
} else {

View File

@ -59,11 +59,7 @@
<string name="settings_dns_over_tcp">DNS over TCP</string>
<string name="action_removed">已移除。</string>
<string name="action_undo">撤销</string>
<string name="button_text_download_dnsmasq">下载 DNSMasq 配置文件</string>
<string name="dnsmasq_path">本地 DNSMasq 配置路径:</string>
<string name="notice_delete_confirm_prompt">您确定要删除此配置项?</string>
<string name="yes"></string>
<string name="no"></string>
<string name="config_dns_server">配置 DNS 服务器</string>
<string name="config_rule">配置规则</string>
<string name="settings_rule_name">规则名称</string>

View File

@ -58,10 +58,7 @@
<string name="settings_dns_over_tcp">DNS over TCP</string>
<string name="action_removed">Removed.</string>
<string name="action_undo">Undo</string>
<string name="button_text_download_dnsmasq">Download DNSMasq configuration</string>
<string name="notice_delete_confirm_prompt">Are you sure you want to remove this configuration?</string>
<string name="yes">Yes</string>
<string name="no">No</string>
<string name="config_dns_server">DNS server config</string>
<string name="config_rule">Rule config</string>
<string name="settings_rule_name">Rule Name</string>