问题描述
我正在使用ResourceBundle,我想给用户一个选择GUI语言的选项。
i am using ResourceBundle and I want to give the user an option to select a language for the GUI.
我想获得所有资源文件的列表属于特定的软件包。
i want to get a list of all resource files that are under a specific package.
我不知道自从这个应用程序基于插件以来我将拥有哪些资源。
i don't know what resources I will have since this application is based on plug-ins.
是否可以选择从java中搜索包下的所有可用资源?
Is there an option to ask from java to search all available resources under a package?
(如果不是我猜插件应该全部提供本地可用)
(if no i guess the plug-in should give all available local for it)
谢谢大家
推荐答案
文件可能驻留在Web服务器上。在Web服务器上没有列出文件(页面)的标准方法。因此,一般来说,您需要做的是记住您拥有资源的区域设置(可能在构建过程中创建一个列表)。
The files may reside on a web server. There is no standard way of listing files (pages) on a web server. So, in general, what you need to do is remember which locales you have resources for (perhaps create a list as part of your build process).
这篇关于列出所有可用的ResourceBundle文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!