How to null a translation in gettext system?

Posted by Evgeny on Stack Overflow See other posts from Stack Overflow or by Evgeny
Published on 2010-04-14T23:54:03Z Indexed on 2010/04/15 2:53 UTC
Read the original article Hit count: 265

Filed under:

Suppose a simple phrase "In" in English needs to be interpreted as "" - empty string in Russian.

Is is possible to specify that in the .po file?

What normally happens if you set msgstr "" - you'll get the untranslated key, but I want to get nothing in that specific case.

Here is a use case: I have underneath a giant search bar a set of buttons to select questions (for a Q&A site) from particular scopes - like so:

(in English)

In: [all] [unanswered] [my own]

(in Russian I want)

[???] [??? ???????] [???]

It just sounds more natural. Yes I can leave out In for english, but I don't want to and I do not want to put button (things in [] are buttons) html into the 'po' file.

Thanks!

© Stack Overflow or respective owner

Related posts about i18n