template utilising gettext __() & _e()
-
Hi,
I have created my own template and was now trieing to utilise the gettext functions in order to be able to use the same template for english and german blogs. I have added my phrases to the german de_DE.po file and generated a de_DE.mo file. I have stored both files in /wp-content/languages/ and set the lang variable in the config file to de_DE. However the translation does not work properly. The following code in my template:
<div class="post_subline"><?php _e('Posted by'); ?> <?php the_author();?> <?php _e('on'); ?> <?php the_time(__('l, F jS, Y')) ?> | <?php printf(__('Posted in %s'), get_the_category_list(', ')); ?></div>
results in that output:
Verfasst von admin am Sonntag, Januar 11th, 2009 | Posted in Allgemein | No Comments ?
which is only partly german ??
Any Ideas how I can fix this problem or start debuging it?
Thanks
Johannes
:: https://www.security-blog.eu
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘template utilising gettext __() & _e()’ is closed to new replies.