add missing translation

This commit is contained in:
houxg
2017-02-17 13:45:49 +08:00
parent 16f0a54942
commit 9147d1a4fe
3 changed files with 3 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ public class SignInActivity extends BaseActivity implements TextWatcher {
@Override
public void afterTextChanged(Editable s) {
mExampleTv.setText(String.format(Locale.US, "For example, login api will be:\n%s/api/login", s.toString()));
mExampleTv.setText(String.format(Locale.US, getString(R.string.host_example), s.toString()));
}
});
}

View File

@@ -105,4 +105,5 @@
<string name="generate_random_note">生成随机笔记</string>
<string name="leanote">蚂蚁笔记</string>
<string name="conflict_occurs">糟糕,笔记冲突</string>
<string name="host_example">登录接口地址将会是:\n%s/api/login</string>
</resources>

View File

@@ -107,5 +107,6 @@
<string name="github" translatable="false">Github</string>
<string name="generate_random_note">Generate random note</string>
<string name="conflict_occurs">Oops! Conflicts occurs</string>
<string name="host_example">For example, login api will be:\n%s/api/login</string>
</resources>