问题描述
我正在从事多语言C#项目.我在我的项目中拥有处理多语言的所有必要设置,并且工作正常.
我有一个问题,我有什么办法可以知道,我的非默认语言资源中缺少键值字符串(例如,西班牙语对我来说是西班牙语).
例如
英文
* CodeStr = CODE
* NameStr = NAME
西班牙语
* CodeStr = CODE
在上面的示例中,西班牙语中没有NameStr键,因此,应用程序使用默认的英语语言来获取NameStr的值.我能用我的非默认语言检测到任何键缺失吗.
I am working on multi language C# project. I have all the neceesary setup for handling multi language in my project and its working fine.
Question i have, is there any way i can know, there is a missing key-value string in my non-default language resource(e.g. SPANISH as english is deafult for me).
e.g.
English
* CodeStr = CODE
* NameStr = NAME
Spanish
* CodeStr = CODE
In above example, Spanish doesn''t have NameStr key in it and because of it, application goes to default English language to get the value for NameStr. Is there any i can detect there is missing key in my non-deafult language.
这篇关于识别缺少的文化关键值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!