C# – Generating .po/.mo files

asp.netc++internationalizationlocalizationphp

I have a database full of translations I'd like to generate either .po or .mo files. I'm using C#, but I could also port an implementation from PHP if one exists. I can't find any examples in any languages using anything other than GNUs gettext utilities. Does anyone know of one?

Best Solution

the .po files are really easy to generate you could use poedit. When all the strings are (non translated) are in the file write a script which goes through the database searches for the msgid and then copies the msgstr from the database into the .po file. After the .po file is done save it and poedit creates a .mo file for you.