English 中文(简体)
C# 建立多语种应用,提供原始支持(MEF)
原标题:C# creating multilingual application with plugin support (MEF)

I have read many articles and questions here on SO about this, however I am still not comfortable. I am planning to develop a plug-in based GUI desktop application based on MEF technology.

我要为申请提供当地化支持。 问题是,即使我将东道申请本地化,基本上属于DLL文件且随时可以安装的第三方假胜地,也需要当地化。

我认为,对我来说,在车上实行所有可在当地控制并非一种选择。 我可以把国际文本储存在一个数据库中,具有打电话的功能,将案文从亚洲开发银行收回到东道方的估算,并请粉碎者称呼这一电传功能。 或者,我可以要求开发商在其申请中拥有不同的资源档案,但这样他们不会受益于已经翻译的文本。

为本案提供多语种接口的最佳实践是什么?

最佳回答

我不敢肯定有一个适用的最佳做法,但我可以通过我看到的备选办法与你交谈。 如果你开发一个中央数据库,提供所有翻译,你的所有工具都能从翻译中受益。 然而,倒数部分是,现在你们的所有原始来源也需要知道数据库(在某种程度上)。 这增加了一种更直接的争 coup,在使用第三方假想时,我宁愿避免。

If you use the resource files, you gain more flexibility but lose the ability to reuse the same text (which feels like you are violating DRY).

从个人角度来说,我将走下资源档案路线,以便你实现当地化。 它为你提供了最简单的方式,使没有主要依赖者工作的每个人能够工作。 然而,如果你能够找到一种办法,让假想者称其地方化文本的中心应用,那么中央数据库就是一个更好的选择(我认为是这样)。

这里还有两条联系可以帮助你:

是否有最佳实践方法使申请国际化?

http://www.businessandprocess.com/2010/11/why-application- localization-should-start-in-the- Design-stage/

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签