具有本地化功能的 ResourceReader?

发布于 2024-12-25 17:53:20 字数 561 浏览 2 评论 0原文

在我的项目中,我们有一些资源文件 (.resources),我们使用 ResourceReader 来解析这些文件并生成一些 XML 文件。 事实是,现在我们有了一些本地化,“规范”似乎是:

MyResource.resources (default one)
MyResource.en-GB.resources
MyResource.en-US.resources
MyResource.fr-FR.resources
MyResource.de-DE.resources

我使用“似乎是”,因为我在互联网上没有找到任何可以“官方”定义这个规范的东西......但在我的团队中,他们说这是我们必须遵循的官方规范。

关键是 ResourceReader 没有考虑本地化,我想知道是否有一个工具可以为我们做很多工作? 我真的不知道我能从这个类中得到什么,这可能是一些简单的功能,也可能是一些非常完整的功能(在哪个区域设置中返回可用的某个 ID,等等......) 如果没有什么可用的东西听起来会让我感到惊讶,但我可以自己做,那么它就会很长,而且必然不太优化......:/

In my project we had some resources files (.resources) and we were using ResourceReader to parse these and generate some XML files.
The fact is that now we have some localization and the "norm" seems to be :

MyResource.resources (default one)
MyResource.en-GB.resources
MyResource.en-US.resources
MyResource.fr-FR.resources
MyResource.de-DE.resources

I used "seems to be" because I didnt find anything, on the internet, that would define "officialy" this norm... but in my team, they say this is the official norm we have to follow.

The point is that ResourceReader doesn't consider the localization and I'd like to know if there is a tool that will do a lot of work for us ?
I dont really know what I can expect from this Class which could be some simple features and some very complete one (return in which locale a certain ID a available, etcetc...)
If nothing is available that would sound surprising to me but I can do it myself, it will just be long and, necessarily, less optimized... :/

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文