如何排序。 RESX(资源文件)的.NET文件、资源、RESX、NET

2023-09-04 02:51:43 作者:从小缺根筋

我有一个资源文件的一个问题在我的项目。正如我在英国创建了一个,我把它给了翻译团队。不知何故,他们回到了我的资源文件在不同的顺序值,所以它不是按字母顺序排序。

I have a problem with resource files in my project. As I created one in English, I gave it to the translation team. Somehow, they returned me resource file with values in different order, so it wasn't sorted alphabetically.

因此​​,在一开始是:

So, at first it was:

<data name="a1" xml:space="preserve">
   <value>some text2</value>
</data>
<data name="b1" xml:space="preserve">
   <value>some text3</value>
</data>
<data name="c1" xml:space="preserve">
   <value>some text1</value>
</data>

和我收到的:

<data name="c1" xml:space="preserve">
   <value>some text1</value>
</data>
<data name="a1" xml:space="preserve">
   <value>some text2</value>
</data>
<data name="b1" xml:space="preserve">
   <value>some text3</value>
</data>

那么,有没有什么办法可以通过在.resx文件的元素进行排序的&LT;数据名称属性

推荐答案

我发现一个软件: SortRESX 它是由汤姆·克莱门特创建,您可以在这里找到: HTTP://www.$c$cproject.com/KB/cs/ResxMergeUtility的.aspx

I found one software: SortRESX It is created by Tom Clement and you can find it here: http://www.codeproject.com/KB/cs/ResxMergeUtility.aspx

这是简单的可执行文件,它按字母顺序排序的resx文件。这真的帮了我。 我甚至在我的博客中描述了。

It is simple executable file and it sorts resx file alphabetically. This really helped me. I even described it on my blog.

https://tijanavujanac.posterous.com/resxdiff-solving-最RESX合并-问题的:)