locked
Translating RESX files RRS feed

  • Question

  • User710439326 posted

    So I took the Forums advice and made a separate RESX file for each ASPX page in my web app. Personally, I wanted to put all of my language strings into a single global RESX file, but instead I did it the 'right' way and made a separate one for each ASPX. So now Ive got about 100 different RESX files with 5 to 15 short strings of text each. Many of them are repeats. The question is, how can I export these 100 RESX files into one single spreadsheet that I can send off for translation to other languages? Whats the normal way to do that? I dont want to send the translating company 100 little files, I'd rather send just one big one. And I'd like to omit duplicate text strings (for example, "Cancel" appears in at least 50 of the RESX files - I dont want to pay for that word to be translated 50 times).

    Thanks

    Tuesday, June 15, 2010 12:26 PM

Answers

  • User-1364446067 posted

    Ok. There is a software called "Sisulizer". I used it some years ago. It does the localization too and let you export your resources in excel format also.

    Check it out: http://www.sisulizer.com/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 17, 2010 1:17 AM

All replies

  • User-1364446067 posted

    Well . You are looking to code this thing? Hmm

    You can read all of your *.resx files, with the ResourceManager and ResourceSet classes.Something like this..

    System.Resources.ResourceManager resMgr =
                    new System.Resources.ResourceManager(baseName, System.Reflection.Assembly.GetExecutingAssembly());
    
                System.Resources.ResourceSet resSet =  resMgr.GetResourceSet(System.Threading.Thread.CurrentThread.CurrentCulture, true, true);
    
                System.Collections.IDictionaryEnumerator idicEnum = resSet.GetEnumerator();
    
                while (idicEnum.MoveNext())
                { 
                    // You can now write Key and Value to an Excel file
                    // idicEnum.Key
                    // idicEnum.Value
                }


    --

    Hope it helps..

    Wednesday, June 16, 2010 3:58 AM
  • User710439326 posted

    Well, I wasnt really looking to code anything. I was looking for Visual Studio to do something useful like export all the strings to a single spreadsheet or something similar.

    Your code didnt work for me. What is baseName supposed to be? It seems like its looking for something called baseName.resources, but my resource files are named things like "SearchPage.aspx.resx".

    Also, even if I did get your code to work, how would I go about re-inserting all the translated strings back into their individual resource files?

    Wednesday, June 16, 2010 2:18 PM
  • User-1364446067 posted

    Ok. There is a software called "Sisulizer". I used it some years ago. It does the localization too and let you export your resources in excel format also.

    Check it out: http://www.sisulizer.com/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 17, 2010 1:17 AM
  • User-1503750829 posted

    I know I'm late to be replying to this, but have a look at this resx localization tool. I'm the author of this product but I'm not just plugging my own software (shamelessly). This app (Visual Studio add-in) will genuinely do everything you asked for - extract all ".resx" strings, load them into a single file, and you can then send it to a translator. They can then translate the file using my free application (Visual Studio not required) or you can do it yourself using its "Translate from the web" feature. The same add-in then imports the strings back into your solution. Lots of essential features and safeguards built in and very easy to use. See my site for details.

    Friday, August 13, 2010 10:08 PM
  • User1683507525 posted

    We translate a lot .resx files with TM-database software.
    It native support the these files, Translation memory and google translate.
    TM-database is free and available at http://yehongmei.narod.ru/

    Thursday, June 30, 2011 3:49 PM
  • User1434709301 posted

    Why don't you try translating resx files with https://poeditor.com/ ? It's easy to import and export files for translation, the online software has a simple interface to work in for translators. You can also export your strings into an excel spreadsheet, as you were saying.

    Wednesday, November 6, 2013 3:58 AM