[wp-hackers] Hooks, Actions, Filters

Jeremy Visser jeremy at visser.name
Fri Jul 31 13:29:43 UTC 2009


On Fri, 2009-07-31 at 11:37 +0000, scribu wrote:
> You could just write
> 
> return str_replace(__('Protected:'), '', $format);
> 
> to account for l10n.

Won't work. For starters, __('Protected:') won't get translated, as it's
not the same as __('Protected: %s'), which is the original.

If a new language that decides the translate string is something like
__('Goo goo %s ga ga') (sorry, I don't speak anything other than
English, so every other language sounds like googaa to me), then how is
that going to work?



More information about the wp-hackers mailing list