English 中文(简体)
ASP.NET component to edit .resx files
原标题:

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?

最佳回答

Best thing you can do is move to a DB driven approach.

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.

Edit: if you insist on editing the XML files, this article may help: Updatable ASP.NET ResX Resource Provider – yes, it’s possible!

问题回答

I think you should consider this step once again. First of all resx files are compiled instead of used directly so any changes require page recompilation*. The other thing is that it might be a serious security threat - you allow users to modify files in your application folder.

*- http://msdn.microsoft.com/en-us/library/ekyft91f%28VS.80%29.aspx

I just found this Resource Blender application that s similar to what I was looking for:

ResourceBlender is an open-source translation and internationalization application which offers an easy way to manage localized resources for inclusion with different applications. Available as an ASP.NET web application and a WPF desktop application, it makes localizing applications a breeze. ResourceBlender generates localized resources in different formats from a central database for inclusion with different applications.

Key features offered include:

  • Export resources to .NET .resx files, Java .properties, GNU .po / gettext, XHTML entities and more.
  • Import/Export translation data as XML spreadsheets to make editing more convenient.
  • Use one translations database to keep localizations in-sync.
  • Supports MySQL, SQL Server and SQLite, so no external database is required.
  • Migrate from existing .resx or .properties files with an import wizard.
  • Easy for both translators and project owners/admins.
  • Free and open source.
  • Automatic machine translation with Google Translate.
  • Custom templates for resource formats.




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签