多个DLL项目的本地化 [英] Localization on multiple dll project

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

问题描述

HI,

我正在实施多个dll项目,我需要为所有这些添加本地化.
我最大的问题是:在这些dll中创建了许多自定义控件,几乎所有的用户界面都来自显示在选项卡控件或表单中的自定义控件.

主程序没有所有dll的引用,每个dll都是按需"加载的.所有人都工作良好,但是我不知道该怎么做来管理本地化.

当我在控件中启用本地化时,主程序不会加载该控件dll的资源!
有人可以告诉我什么是处理本地化的最佳方法.

在此先感谢

Yves



I''m working on the implementation of a multiple dlls project and I need to add localization to all of this.
My biggest problem is : there is a lot of custom controls create in these dlls, almost all the user interface are from custom controls that are shown in tab control or forms.

The main program does not have the reference for all the dlls, each one is load "on demand". All are working well but I don''t know what to do to manage localization.

When I enable localization in a control, the resource for that control dll is not loaded by the main program !??

Can somebody tell me what''s the best method to handle localization.

Thanks in advance

Yves

推荐答案

本地化文件信息以XML格式保存在资源或其他位置.

因此,您可以从xml文件中检索数据,并且易于使用和共享.

您应该手动编写代码,以将资源文件从一个项目转移到另一个项目.
Localized Files information are saved in XML format in resources or etc location.

So you can retrive the data from xml file and Easily to use and share it.

You should manually write code for getting resources files from one project to another.


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

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