Jump to content


Photo

ResxCheck tool -- Check your translations before publishing!


16 replies to this topic

#1 Rick Brewster

Rick Brewster

    Paint.NET Author and Developer

  • Administrators
  • 13,556 posts
  • LocationKirkland, WA
  • Reputation:325

Posted 21 April 2008 - 10:27 PM

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....xCheck_3_30.zip

The source code: http://www.getpaint....ck_3_30_src.zip

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

Usage:
  ResxCheck.exe <base.resx> [[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.

  • 0
The Paint.NET Blog: http://blog.getpaint.net/
Donations are always appreciated! http://www.getpaint.net/donate.html

Posted Image

#2 iRock

iRock
  • Members
  • 78 posts
  • LocationTexas
  • Reputation:0

Posted 21 April 2008 - 10:32 PM

hmmm
loks amazing

even tho i have no idea what it does :D

lol but i do hav .net 3.5 :) haha
  • 0

#3 Zagna

Zagna
  • Members
  • 274 posts
  • LocationRovaniemi, Finland
  • Reputation:3

Posted 22 April 2008 - 09:31 AM

Seems to work nicely.

Showed to me that one label was incorrectly named, quick change JpegWidget -> ConfigUI and no errors.
  • 0
Posted Image

#4 Zagna

Zagna
  • Members
  • 274 posts
  • LocationRovaniemi, Finland
  • Reputation:3

Posted 24 September 2009 - 06:06 AM

The new string UpdatePromptTaskDialog.IntroText.RtfFormatting.Format is causing problems for ResxCheck.
  • 0
Posted Image

#5 Rick Brewster

Rick Brewster

    Paint.NET Author and Developer

  • Administrators
  • 13,556 posts
  • LocationKirkland, WA
  • Reputation:325

Posted 26 September 2009 - 03:55 AM

I'll be sure to check it out.
  • 0
The Paint.NET Blog: http://blog.getpaint.net/
Donations are always appreciated! http://www.getpaint.net/donate.html

Posted Image

#6 tetfa

tetfa
  • Newbies
  • 1 posts
  • Reputation:0

Posted 24 February 2010 - 08:22 PM

I would recommend checking the translation by a proofreader byefore publishing net localization project :D <snip - this is not the place to advertise your wares>
  • 0

#7 sunlioness

sunlioness
  • Members
  • 11 posts
  • Reputation:0

Posted 25 May 2010 - 09:59 PM

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.
  • 0

#8 Rick Brewster

Rick Brewster

    Paint.NET Author and Developer

  • Administrators
  • 13,556 posts
  • LocationKirkland, WA
  • Reputation:325

Posted 26 May 2010 - 12:37 AM

It's a command-line program. Hence the usage instructions talking about parameters, and not UI buttons.
  • 0
The Paint.NET Blog: http://blog.getpaint.net/
Donations are always appreciated! http://www.getpaint.net/donate.html

Posted Image

#9 muntealb

muntealb
  • Members
  • 25 posts
  • LocationBucureşti
  • Reputation:0

Posted 26 May 2010 - 06:01 PM

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).

Edited by muntealb, 01 June 2010 - 01:16 PM.

  • 0

#10 sunlioness

sunlioness
  • Members
  • 11 posts
  • Reputation:0

Posted 30 May 2010 - 05:36 PM

@muntealb thank you ever so much, without your explanation I would have never succeded in making it work!

Trully appreciate it!
  • 0

#11 sunlioness

sunlioness
  • Members
  • 11 posts
  • Reputation:0

Posted 30 May 2010 - 09:20 PM

I checked the translation against the base file and it didn't have any errors.

Posted Image


But then, when I try to compile the files I get this:

Posted Image


Any ideas what I could be doing wrong?

Edited by sunlioness, 30 May 2010 - 10:33 PM.

  • 0

#12 Sarkut

Sarkut
  • Competition Hosts
  • 3,206 posts
  • Reputation:4

Posted 31 May 2010 - 04:29 AM

Looking at your screenshots I noticed that your command is lacking the numeral 3,
that is in the command that muntealb gave as example.

Don't know if it's relevant.
  • 0

Posted Image


#13 muntealb

muntealb
  • Members
  • 25 posts
  • LocationBucureşti
  • Reputation:0

Posted 01 June 2010 - 01:15 PM

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

Edited by muntealb, 01 June 2010 - 01:22 PM.

  • 0

#14 UGP

UGP
  • Newbies
  • 2 posts
  • Reputation:0

Posted 13 August 2010 - 08:06 AM

Do we have Persian/Farsi language?
  • 0

#15 Sarkut

Sarkut
  • Competition Hosts
  • 3,206 posts
  • Reputation:4

Posted 13 August 2010 - 08:09 AM

http://forums.getpai...i-localization/
  • 0

Posted Image


#16 Marsti

Marsti
  • Newbies
  • 1 posts
  • Reputation:0

Posted 02 July 2013 - 02:46 PM

Here is another very useful tool for resx translations: https://poeditor.com/. It has nice features that makes things a lot faster.


  • 0

#17 Lana

Lana
  • Newbies
  • 2 posts
  • LocationFlorianópolis/Brasil
  • Reputation:0

Posted 20 August 2013 - 01:22 PM

Hellô Friends. I use the Firefox plugin and Lingoes Translator . We should not use
local slang because no translator understands . It's great to be here .

  • 0

jf4d.jpgUploaded with ImageShack.com