从excel即时更改资源 [英] Change Resources on-the-fly from excel

查看:87
本文介绍了从excel即时更改资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!!



我有这个麻烦,我很累,在谷歌寻找解决方案。



我在WPF应用程序中工作。这个应用程序有一个tabControl与fe tabItem。其中一个TabItem将作为我的应用程序的配置窗口。在它上面,我将使用应用程序的一些必要和一般参数。



其中一个参数将是我的应用程序的语言。



另一方面,我想要一个excel文件,其中包含所有语言的标签及其翻译。对于每个标签,我都有一个所有语言的专栏。这些标签可能是ResourcesDictionaries中的关键。



考虑到这一切,我想达到以下目标:



- 有一个选择器,我可以为应用程序选择语言。



- 有一个更新按钮来读取excel文件并自动生成每种语言的资源字典并显示更改窗口。



我也需要知道,对于excel,resourceDictionaries来说,更适合使用什么类型的构建操作和复制结果目录选项。 。文件。





如果有人可以提供帮助,我将永远感激。





谢谢。

Hi!!

I have this trouble and I´m tired to look for a solution on google.

I´m working in a WPF Application. This app has a TabControl with a fe tabItem. One of these TabItems will serve as Configuration window to my app. On it, I am going to work with some necesary and general parameters for the app.

One of these parameters will be the language for my App.

On the other hand, I want an excel file that have the labels and their translations into all languages. For each label, I´ll have a column in all the languages. These labels, maybe, will be the key in the ResourcesDictionaries.

With all this on mind, I would like to achieve the following objectives:

- Have a selector where I could select the lenguage for the app.

- Have an update button to read the excel file and automatically generate resource dictionaries for each language and show the changes on window.

I´ll need know too, what type of 'build action' and 'copy on results directory' option will be more advisable for excel, resourceDictionaries ... files.


If anyone can help, I´ll be eternally grateful.


Thanks.

推荐答案

要做本地化的Excel文件?这太荒谬了,这几乎很有趣。



您可能想要了解如何以正确的方式进行操作。从这些开始[ ^ ]。
An Excel file to do localization?? That's so ridiculous, it's almost funny.

You might want to read up on how to do it the right way. Start with these[^].


这篇关于从excel即时更改资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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