我在C#.net和VS2010开发了一个网站。这个网站是本地化的,在整体上运作良好。然而,有些本地化字符串看起来并不理想。
例如,我在登录页面的顶端有一条信息
Currently it appears like this:
Your session has expired. Please login to
continue.
I would like it to appear like this:
Your session has expired.
Please login to continue.
我无法更改包含的 div 大小, 因为每个语言的宽度可能不同 。
I am looking for a way to put layout capabilities in the localization file. The simplest approach (on the surface) is to put new line characters in the string. However,
,
, and <br/>
all appear in the string because it is rendered with " around the string.
是否有其他可行办法?这是否是一个坏主意?我们如何弥补多种语言之间的长期差异?