为 ASP.Net 创建非基于文化的 ResourceManager
我正在开发一个特定于公司的 ASP.Net 应用程序,当用户登录时,他们使用用户名、密码和公司 ID 登录。我正在尝试找到允许每个公司在软件中自定义某些标签的最佳方法。例如,有一个字段我们全局称为“唯一标识符”。对于每个公司,他们可能希望将该字段重命名为“员工徽章号码”、“HR ID 代码”或任何他们想要的名称。我正在考虑是否可以将 ResourceProvider 扩展为使用数据库而不是 RESX 文件,但是,ResourceProvider 似乎在很大程度上基于文化/语言更改而不是自定义。
有人在应用程序中开发过类似的功能吗?您是否扩展了 ResourceProvider 还是采用了完全自定义的路线?
我整个星期都在寻找可能的解决方案,但一无所获。我的退路是创建一些完全自定义的东西,但我担心会失去 ResourceProvider 的构建效率。
任何建议将不胜感激!
I am working on an ASP.Net application that is company specific in that when users login, they login using their username, password and company id. I am trying to find the best way to allow each company to customize certain labels within the software. For instance, there is a field that we globally call "Unique Identifier". On a per company basis, they may want to rename the field to be "Employee Badge Number", "HR Id Code" or whatever every they want. I was looking at possibly extending the ResourceProvider to using a DB instead of the RESX files, however, it seems like the ResourceProvider is heavily based on culture/languages changes rather than customization.
Has anyone developed similar functionality in an application? Did you extend the ResourceProvider or go the completely custom route?
I have been searching for possible solutions all week and am coming up dry. My fall back is to just create something completely custom, but I worry about losing out of the building efficiency of the ResourceProvider.
Any suggestions would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这听起来更像是定制/个性化问题,而不是本地化问题。我不会为此使用 ResourceProvider。
This sounds more like a customization / personalization issue than a localisation issue. I would not use the ResourceProvider for this.