c# How to deal with Newline character, when moving strings to resources for Localization purpose?

流过昼夜 提交于 2019-12-01 04:42:47

I believe \n will not be treated as an escape character in the rendered text.

if the number of resource entries is small, you can use shift + enter to add a new line.

Another option is to replace \n by {0} and then use String.Format() to insert a new line where needed.

I believe that the best approach is to avoid splitting up localisable strings wherever possible - splitting up a string only increases the chance that it won't be possible to correctly localise the string.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!