关于黑莓中的资源文件

发布于 2025-01-03 00:48:57 字数 132 浏览 2 评论 0原文

我在App.rr(头文件)下创建了一个资源文件作为App.rrc(根)和App_fr.rrc,并向其中添加了两个键值对。 现在,当我使用资源对象提取值时,我仅从 App.rrc 文件中获取值,而不是从 App_fr.rrc 中获取值 我应该怎么办?

I have created a Resource File as App.rrc(Root)and App_fr.rrc under App.rrh(header file) and have added two keys - value pair to it.
Now when i extract values in using object of resource i get only the values from App.rrc files but not from App_fr.rrc
What should i do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

固执像三岁 2025-01-10 00:48:57

您必须使用以下代码将区域设置设置为法语

Locale.setDefault(Locale.get(Locale.LOCALE_fr, null));

You have to set the Locale to french using the following code

Locale.setDefault(Locale.get(Locale.LOCALE_fr, null));
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文