Jump to content

ResxCheck tool -- Check your translations before publishing!


Recommended Posts

This handy little utility will let you check your RESX translation file before you publish it. You must have .NET 3.5 installed in order to use this. Please reply with any comments or questions.

The program: http://www.getpaint.net/files/ResxCheck_3_30.zip

The source code: http://www.getpaint.net/files/ResxCheck_3_30_src.zip

ResxCheck v3.30.3033.25892
Copyright (C) 2008 dotPDN LLC, http://www.dotpdn.com/

Usage:
 ResxCheck.exe  [[mui1.resx] [mui2.resx] [mui3.resx] ... [muiN.resx]]

base.resx should be the original resx that is supplied by the developer or design team.

mui1.resx through muiN.resx should be the translated resx files based off of base.resx.
You may specify as many mui resx files as you would like to check.
(You can also not specify any, and then only base.resx will be checked)
TIP: You can specify a wildcard, such as *.resx

This program will check for:
 * base.resx must not have any string defined more than once
 * base.resx must not have any strings with incorrect formatting tags, e.g. having a { but no closing }, or vice versa

If any mui.resx files are specified, then these rules will also be checked:
 * mui.resx must not have any string defined more than once
 * mui.resx must have all the strings that base.resx defines
 * mui.resx must not have any strings defined that are not defined in base.resx
 * mui.resx must not have any strings with incorrect formatting tags, e.g. having a { but no closing }, or vice versa
 * mui.resx must not have any additional formatting tags, e.g. {2}

Examples:

 ResxCheck.exe strings.resx Strings.DE.resx String.IT.resx String.JP.resx
 This will use strings.resx as the 'base', and then check the DE, IT, and JP translations to ensure they pass the constraints and rules described above.

 ResxCheck.exe strings.resx translations\*.resx
 This will use strings.resx as the 'base', and then all of the RESX files found in the translations directory will be validated against it.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to post
Share on other sites
  • 1 year later...
  • 4 months later...
  • 3 months later...

Well, my translation is ready and I have been trying to use the resxcheck tool but it doesn't seem to work :( (a common phenomenon when a linguist steps into the programming world!)

As soon as I click on the file a black msdos window opens for a split second and then it disappears. I am using Windows 7, maybe it has to do with that?

Anyway, I'd really appreciate it if there's anyone who has used it and would be kind enough to post some instructions.

Link to post
Share on other sites

1) Move your resx file into a folder, for example in C:\temp. In the same folder should aslo be moved the ResGen.exe file, which can be downloaded from here.

2) Type "cmd" (without quotes) in the search box of Windows 7 and then press Enter. The MS-DOS command prompt will appear. Type "cd c:\temp" (without quotes and with a space between cd an c) to change the folder to the one where you have the resx file. Then right-click and paste the following string adapted for your language:

resgen /compile Strings.xx.resx,PaintDotNet.Strings.3.XX.resources

(the xx and XX are the 2-letter code for the language)

For the romanian language (xx = ro and XX = RO) the above string is:

resgen /compile Strings.ro.resx,PaintDotNet.Strings.3.RO.resources

In the MS-DOS prompt the command will look like this after pasting the string:

C:\temp>resgen /compile Strings.xx.resx,PaintDotNet.Strings.3.XX.resources

for romanian it is:

C:\temp>resgen /compile Strings.ro.resx,PaintDotNet.Strings.3.RO.resources

3) Press Enter and the language file will be generated automatically. Move it in the Paint.NET folder and then choose your language from within the software (Utilities menu).

Link to post
Share on other sites

Well, there are two problems here, one is my fault, the other is your fault. The process should work smoothly after reading this message.

1) I forgot to write in my previous message that the file ResGen.exe must also be moved in the folder (C:\temp) with the resx file. Attention, this is not the same file as ResxCheck.exe and you cannot use any ResGen.exe file. I saw that in another thread someone already told you that and attached the correct file for you to use.

2) Indeed, as Sarkut pointed out, your command lacks the number 3, which is the version number of the software. As PDN is now at version 3.5, the number 3 must be used

So, for the greek language the command should be:

resgen /compile Strings.el.resx,PaintDotNet.Strings.3.EL.resources

The full path will look like this:

C:\temp>resgen /compile Strings.el.resx,PaintDotNet.Strings.3.EL.resources

Link to post
Share on other sites
  • 2 months later...
  • 2 years later...
  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...