問題描述
我正在開發一個多語言網站,本地化主要通過使用 .resx 文件完成.但是現在我需要允許具有某些權限的用戶從網站在線編輯資源文件.有誰知道任何現有的組件可以幫助實現這一目標?
I'm developing a multilingual web site and the localization is done mostly by using .resx files. But now I need to enable users with some permissions to edit resource files online from the web site. Does anyone know of any existing component to help achieve this?
推薦答案
您能做的最好的事情就是轉向 DB 驅動的方法.
Best thing you can do is move to a DB driven approach.
Rick Strahl 有這篇出色的文章:創建數據驅動的 ASP.NET 本地化具有免費源代碼的資源提供者和編輯器!
Rick Strahl has this excellent article: Creating a Data Driven ASP.NET Localization Resource Provider and Editor with free source code!
它甚至還具有導入功能,因此您不必重新翻譯目前已完成的工作.
It even has a Import feature so you don't have to re-translate the work done so far.
如果您堅持編輯 XML 文件,這篇文章可能會有所幫助:可更新的 ASP.NET ResX 資源提供程序——是的,有可能!
if you insist on editing the XML files, this article may help: Updatable ASP.NET ResX Resource Provider – yes, it’s possible!
這篇關于用于編輯 .resx 文件的 ASP.NET 組件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!