Wednesday, May 14, 2008

The pain of gettext

Who would have thought ? I've done .dtd, .ini, .inc, .sdf and the popular gettext should have brought no problems.

So Narro likes to guess access keys. Because it's annoying to type _, &, ~ or something else in the middle of the word. So Narro deals with this by removing the annoyance and leaving the job of access key selection to the reviewer, the person who validates one of the suggestions for a text to translate.

There's even more, Narro looks for the access key in the original text and if it's found also in the translated texts, it automatically sets it. If it's not, it sets the first letter automatically.

In gettext access keys are usually preceded by & or _ . But I keep running into situations where there is a _ or & and it's not an access key like "HELP_TEXT here" or "Starting $SERVER_NAME". If you're reading this and you eat gettext for breakfast please help me find a secure way to determine access keys.

No comments: