Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to paste multiple strings into .net .resx files?

I have many .resx files used for translations in a large site. To get the translations done, I copy and paste the content of each resx file into a spreadsheet. The spreadsheet comes back from the translator with the new language appended as an extra column. I've tried copying the column from the spreadsheet and pasting into the value column in the resx file but it won't work. I'm now reduced to cutting and pasting thousands of individual phrases from the spreadsheet to the resx file. There must be a better way. Is there?

like image 936
Craig Avatar asked Apr 13 '12 10:04

Craig


3 Answers

There's a way!

You can't copy/paste a single column, but you CAN copy/paste all columns - basically it's all or nothing. Sooo...just get your spreadsheet to exactly how you want the resx file, then clear out all the contents of the resx file, and finally copy everything from the spreadsheet and paste the whole thing into the resx file. Boom!

like image 60
jbyrd Avatar answered Sep 28 '22 15:09

jbyrd


Instead of using a spreadsheet, we use ResEx. This allows the translator to directly produce the .resx file.

like image 39
Daniel Rose Avatar answered Sep 28 '22 16:09

Daniel Rose


You can find localization tools that handle .resx files. So instead of copy/pasting your content from .resx files, you just send them as they are to the translator and they'll send you back a translated .resx file in their language. Productivity aside, it's better to do it this way as your .resx files may contain useful information such as comments to help translators understand the context or to communicate them any known restrictions (such as maximum length) that apply to a given string.

like image 27
Clafou Avatar answered Sep 28 '22 15:09

Clafou