remie/gettext — Issue #12: [Suggestion] fallback to default *key* instead of blank
Author: davidhund
Created: 2012-01-10 08:46:41+00:00
State: open

I am currently implementing (JAVA `.properties` style-) gettext with the Resources DS and it is working great. I am very happy with how it works and was pleasantly surprised the `.properties` key-values work fine with whitespace.

This means that my keys are simply the default (english) text:

```# in 'my-translation.nl.properties' ...
My wonderful site=Mijn fantastische website
A string with whitespace as key=Een regel tekst met witruimte als term
foobar=foobar
```

In my templates I can simply use a very readable: `

`

I ♥ that I do not need to use `MyWonderfulStiteString` or something but it would be *awesome* if the **fallback** would simply be my *key* instead of NULL :)

Would it be possible to have gettext return the *key* when a value is not found?