English 中文(简体)
.NET网站或应用程序的语言版本控制系统
原标题:System for language versioning of .NET sites or Apps

多年前,我建立了一个简单的系统来处理ASP.classic网站中文本的语言版本控制。从那以后,我就没有转换或维护它,一直在使用各种次优解决方案(让我们面对现实吧,这个系统可能没有我记忆中的那么好;-)

您的网站和应用程序的语言版本文本使用什么?

我看了以下内容:

  • .NET resource files: No easy way to get external translators to use it. Plus it is to mingled into the .NET controls (and also - "I just don t like it" :o)
  • ResourceBlender (www.resourceblender.com): An excellent solution, but it seems build for some other uses than I have in mind ("bundles" and "elements" in the way they are constructed have no meaning to me).

我的功能愿望清单包括:

  • Translation: Being able to export the texts to some format that external translators can edit, and then re-import the data when it comes back from translation.
  • Data source: MS SQL Server, SQL Lite or XML (or some other reasonable array of options, covering both RDBMS and simple file storage)
  • Interface: Full fledged interface for searching, editing etc.
  • Integration in app/site: Very simple way of actually fetching the texts in the target application, or a way of easily implementing it yourself (KISS)
  • Source code readability: The code should remain readable. So text names are preferred to integer IDs. E.g. GetText("intro_headline") instead of GetText(4564)
  • Must not be tied to .NET controls as the resx files, since I also need to use them for e.g. subject and body texts for emails.

我似乎找不到任何与之匹配的东西,所以我正在考虑自己建造它,但我只想确保我没有错过什么。

(这是专家交流的交叉帖子,我在那里没有找到解决方案)

最佳回答

对于任何在这篇帖子上犹豫不决的人:

我现在已经根据这篇文章中的功能列表开发了一个系统。它在CodePlex上以SimpleText.NET的形式发布:

阅读有关SimpleText.NET项目的更多信息,并在SimpleText.codeplex.com上了解它

问题回答

看看基于.po文件的解决方案,这些文件支持非技术翻译人员使用免费编辑器进行翻译。

这些人有一个例子:http://www.expatsoftware.com/articles/2010/03/why-internationalization-is-hopelessly.html

您应该进一步了解内建的.net资源提供程序。它们不仅仅是“resx文件管理器”。您可以自定义它们,例如:使用存储在数据库中的资源

在这里你可以找到里克·斯特拉尔关于这个主题的一篇很好的文章。





相关问题
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!

热门标签