本文介绍了在Inno Setup中使用.islu翻译文件是否安全?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Inno Setup为我的开源项目WinSCP。

到目前为止,我正在生成Inno Setup .isl 我们的翻译文件项目特定的翻译文件(特别是翻译 CustomMessages 部分)。

I'm using Inno Setup for my open source project WinSCP.
So far I'm generating Inno Setup .isl translation files from our project-specific translation files (particularly to translate CustomMessages section).

但是。 isl 需要转换为ANSI编码。对于没有ANSI编码(如印地文或亚美尼亚语)或其ANSI编码有限(如罗马尼亚语)的语言,ANSI编码存在问题。

But the .isl's need to be converted to ANSI encoding. There's a problem with ANSI encoding for languages that does not have an ANSI encoding at all (like Hindi or Armenian) or whose ANSI encoding is limited (like Romanian).

I看到一些语言的核心Inno安装翻译使用 .islu extension,(可能)指示内容是UTF-8编码的。我还可以在Inno Setup源代码中看到 .islu 仅在Unicode版本的Inno Setup中使用。没关系,因为我只使用Unicode版本。

I see that core Inno Setup translations for some languages use .islu extension, (probably) indicating that the contents is UTF-8 encoded. I can also see in the Inno Setup source code that the .islu's are used in Unicode version of Inno Setup only. That's ok, as I'm using Unicode version only.

但是我没有发现任何提到 .islu 在文档中。

But I did not find any mention of .islu in documentation.

如果我为所有语言生成 .islu ,可以吗?有没有任何缺点(除了无法使用ANSI版本的Inno Setup)?

Is it OK if I generate just .islu's for all languages? Is there any drawback (apart from inability to use the ANSI version of Inno Setup)?

或者我应该继续使用 .isl 用于具有良好的ANSI编码的语言,并且仅针对所选语言使用 .islu

Or should I keep using .isl for languages with good ANSI encoding, and use .islu just for selected languages?

我会显然更喜欢第一个简化过程。

I'd obviously prefer the first to simplify the process.

另外什么 LanguageCodePage 应设置为 .islu ?官方的尼泊尔语翻译使用0.不知道这是否是 .islu 的一般规则,或者是因为尼泊尔语不具有ANSI编码。

Also what LanguageCodePage should be set to for .islu? The official Nepali translation uses 0. Not sure if that's a general rule for .islu or it's because Nepali does not have an ANSI encoding.

推荐答案

在使用这几个月后,我可以确认添加UTF-8 BOM并使用 .islu 所有Inno安装程序翻译的扩展似乎很好。

After few months of using this, I can confirm that adding the UTF-8 BOM and using the .islu extension for all Inno Setup translations seems to work well.

.islu 文件是自从Inno Setup 5.5.9 以来记录的:

The .islu files are documented since Inno Setup 5.5.9:

这篇关于在Inno Setup中使用.islu翻译文件是否安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 01:29