获取可用(语言)的resx文件列表 [英] Getting a list of available (languages) resx files

查看:77
本文介绍了获取可用(语言)的resx文件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

许多程序都有社区,这些社区在应用程序发布后为应用程序添加语言.

因此,在程序的设置窗口中,人们可以看到可用语言的下拉列表.那么人们如何在使用resx文件进行本地化时编写此代码?我已经在网上搜索了一遍又一遍,但找不到任何答案.

一切正常,但是现在,我需要列出可用语言的下拉列表.为了明确起见,我不想每次有人为该程序创建新语言时都发布新版本..因为如果我必须列出可供选择的语言的硬编码列表,这就是我要做的. /p>

如何获取可用的resx文件列表?

解决方案

好吧,即使您可以得到一个列表(我可以通过检查文件系统来猜测),具体取决于您的方式实施了您的本地化,可能并不准确(可能未提供您要查找的特定.resx的翻译).

我建议最好的方法是在某个地方的.config(或数据库)中.这样,您可以独立于.resx系统禁用语言;这将不可避免地出现.

Many many programs have communities that adds languages to the application after it got released.

So, in the settings window of a program, people can see a dropdown list of available languages. Well how do people code this while using resx files for localization? I've searched the web over and over again, but couldn't find any answer.

everything is working well, but now, i need to make a dropdown list of available languages. To make it clear, i do not want to release a new version every time someone created a new language for the program.. because that's what i have to do if i have to make a hardcoded list of languages that are available to pick.

How do i get a list of available resx files?

解决方案

Well, even if you could get a list (and you can I guess, by inspecting the filesystem), depending on how you implemented your localisation, it may not be accurate (may have not provided a translation for the specific .resx you're looking for).

I'd suggest the best way to do this is in a .config somewhere (or database). That way you can disable languages independantly of the .resx system; which is something that will inevitably come up.

这篇关于获取可用(语言)的resx文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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