有关本地化的问题. [英] A question about Localization.

查看:107
本文介绍了有关本地化的问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我遇到类似"\ t"(制表符)或"\ n"的问题.如果我将它们移到资源文件,则每次在GUI中直接显示为"\ t"或"\ n"时.我知道没有像System.enviroment.NewLine这样的东西适合他们.那么可以将它们移动到资源文件吗?还是只是声明一个静态字符串seperator =''\ t'',然后使用分隔符替换源文件中的所有''\ t''?

Hi,

I got a problem about ''\t'' (tab character) or "\n" something like that. If I move them to the resource file, every time it just shows like ''\t'' or "\n" directly in the GUI. I know there is no thing like System.enviroment.NewLine stuff for them. So is it possible to move them to the resource file? or just declare a static string seperator = ''\t'', and use seperator replace all ''\t'' in the source file?

推荐答案

我发现了使用Google的两种解决方案:

1.在例如记事本中输入文本,然后输入真实的选项卡和换行符,然后将文本复制到资源编辑器中.

2.使用Replace("\\n", "\n");更正从资源文件中检索到的字符串.
I found two solution using Google:

1. Enter the text in for example notepad and enter real tabs and newlines and than copy the text into the resource editor.

2. Use Replace("\\n", "\n"); to correct the string retrieved from the resource file.


\ n,\ r和\ t不要(或不应该)本地化-如何新行,重置行和制表符对于不同的语言是完全不同的吗?它们在任何语言中都是相同的!
\n, \r and \t don''t (or shouldn''t) localise - how can new line, reset line and tab characters be different for different languages exactly? They are the same in any language!


这篇关于有关本地化的问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆