微软C#运行时的实现是否提供了一些本地化机制来转换常见的字符串,如Overflow、Stack overflow、Underflow等。
请参阅下面的代码--它是Mono的一部分,Mono本身也有一个Locale.GetText例程来进行这样的翻译。
// Added to avoid possible integer overflow.
if (inputOffset > inputBuffer.Length - inputCount)
throw new ArgumentException("inputOffset" +
我已经创建了一个AppResource.Resx和AppResource.da.resx,我还在String.XML中创建了一个带有Value-da => String.XML的资源字符串
AppResources.Culture = new CultureInfo("da-DK");
Java.Util.Locale.Default = new Java.Util.Locale("da", "DK");
Resources.Configuration.Locale = Ja
我正在寻找建议,因为我的经验并不是很好的SQLite。
我的桌子是这样的:
CREATE TABLE IF NOT EXISTS Route (
id integer PRIMARY KEY UNIQUE AUTOINCREMENT NOT NULL,
name text NOT NULL,
localizedName blob NOT NULL
);
我在localizedName属性中以二进制blob的形式存储路由的本地化名称(它可以包含多个字符串,如英语、法语等.)。然后,为了检索它,我使用一个特殊的SQL函数
SELECT * FROM Route WHERE tkLoca