Knowledgebase: WordPress
|
Preparing strings in WordPress for localization
Posted by Viktor Klymonchuk, Last modified by Viktor Klymonchuk on 02 September 2011 10:16 AM
|
|
How to prepare strings for translations in WordPressSample of non-translatable strings: <div class="content"><h1>Welcome to my site!</h1> <p>I hope you'll like it.</p> </div> Change to: <div class="content"> From <?php next_posts_link('Older Entries') ?>
To <?php next_posts_link(__('Older Entries')) ?>
Read also: http://codex.wordpress.org/I18n_for_WordPress_Developers#Marking_Strings_for_Translation | |
|
|
Comments (0)
