Echilon
Echilon

Reputation: 10264

Generating .po/.mo files

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?

Upvotes: 0

Views: 2647

Answers (3)

tobefound
tobefound

Reputation: 1111

I can't create .po files using POEdit? How to do that? There is a path that starts with . when choosing "New catalogue" but what should be in that path?

Upvotes: 0

Echilon
Echilon

Reputation: 10264

After reading through the spec it looks to be a fairly simple format. Not as pretty as XML but at least every element starts with a unique sequence.

Upvotes: 0

Thomaschaaf
Thomaschaaf

Reputation: 18196

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.

Upvotes: 1

Related Questions