用一些语言(例如)。在我的示例中,整数格式参数(为本地化字符串提供给getString() )也会被翻译。如何避免这种情况?谢谢
附上英文和缅甸文的图片(字符串:样本大小:%1美元d)
英文本:
在缅甸:
方案代码:
class Main2Activity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main2)
textView3.text = getString(R.string.sample_size_text, 2)
}
}
发布于 2020-03-26 23:06:15
它不是"J",而是"2",参见https://en.wikipedia.org/wiki/Burmese_numerals
缅甸人有自己的数字,不使用西方数字。
https://stackoverflow.com/questions/60861382
复制相似问题