How to properly name i18n msgid

Hi all,

I’ve recently started to internacionalize a website which currently is localized as pt_BR (Brazilian portuguese) and I’m confused how I should organized the Gettext msgid's.

For example, I currenlty have this piece of text “Mais visitadas” which means “Most visited” in English.

So, in other words, I’m replacing <p>Mais visitadas</p> to something like <p><%= gettext("Mais visitadas") %></p>.

My question is: does it make sense to use the pt_BR locale as the msgid or should I do something like <p><%= gettext("Most visited") %></p> and then set the pt_BR in the PO file?

I’m asking because, even being a portuguese site, we usually write all the code/docs/etc in English. But does this same idea worth for the Gettext msgid? Or would it be just a matter of taste?

I would use English msgid because IMHO it can help with translating to others languages in future.

1 Like

The only time I use local msg_id is when I am told NOT to support multi languages… because it’s painful when You have to support them after all.

1 Like