Untranslated strings should not return as null or empty - suggestion
I'm a fan of _t()
returning the untranslated string (rather than null or empty) if a suitable translation is not found. The reason being: Untranslated strings are easy to spot and (hopefully) fix. But when null/empty is returned, it's not always apparent that a translation was missed.
Comments
Log in or create an account to post a comment.
Re: Untranslated strings should not return as null or empty - suggestion
see
// fall back to English
in functionThis was not supported until full Unicode support was available.
Re: Untranslated strings should not return as null or empty - suggestion