<p>This guide covers the basics of translating a RocketTheme plugin to your native language.</p>
<h3><span>Setting</span> up Wordpress for translation</h3>
<p>Please skip this step if you have already set your native language for your Wordpress blog.</p>
<p>To enable WordPress to load template language file:-</p>
<ul class="bullet-1">
<li>Using your favorite text editor open file <strong>wp-config.php</strong> from your WordPress directory</li>
<li>Locate the line: <strong>define ('WPLANG', ");</strong></li>
<li>In the <strong>second quotes</strong> (next to WPLANG) please type in your language code ie. for Polish <em>pl_PL</em>, for Deutsch <em>de_DE</em>, for Italiano <em>it_IT</em> etc.</li>
<li>Final result of line should look like: <strong>define ('WPLANG', 'pl_PL');</strong></li>
<li>Save the file</li>
</ul>
<div class="attention"><div class="typo-icon">Complete lists of codes can be found at (<a href="http://www.gnu.org/software/gettext/manual/gettext.html#Language-Codes" target="_blank">country codes</a>) and (<a href="http://www.gnu.org/software/gettext/manual/gettext.html#Country-Codes" target="_blank">language codes</a>)</div></div>
<h3><span>Translating</span> a RocketTheme plugin</h3>
<p>In this example we will use the RokStories plugin for translation:</p>
<ul class="bullet-1">
<li>Download the .pot file editor such as <a href="http://www.poedit.net/download.php" target="_blank">POedit</a> (multi-platform)</li>
<li>Open the editor and choose <strong>New Catalog from POT File</strong></li>
<li>Open the <strong>rokstories.pot</strong> file from the plugin languages directory (<a href="#">http://www.yoursite.com/wp-content/plugins/wp-rokstories/languages/</a>)</li>
<li>Click on a single phrase or sentence and type in your translation in the bottom of the POedit window</li>
<li>Save the file using <strong>Save As</strong> and as a <strong>filename use your plugin name, country and language code</strong> ie. for Polish <em>rokstories-pl_PL</em>, for Deutsch <em>rokstories-de_DE</em>, for Italiano <em>rokstories-it_IT</em> etc. (For the polish translation for RokStories, saved as rokstories-pl_PL.mo)</li>
</ul>
<div class="attention"><div class="typo-icon">If you want to you can <strong>share</strong> your translation with us so we could provide your language file to other users of WordPress Club here at RocketTheme.</div></div>
<h3><span>Installing</span> downloaded translation file for the RocketTheme plugin</h3>
<ul class="bullet-1">
<li>Please check if your WordPress is set up to use the translation (see above)</li>
<li>Copy your downloaded .mo translation file to the plugin languages directory (<a href="#">http://www.yoursite.com/wp-content/plugins/wp-rokstories/languages/</a>)</li>
</ul>
<h3><span>Sharing</span> your translation with RocketTheme</h3>
<ul class="bullet-1">
<li>After translating your .pot file POedit also creates the .mo file which contains your encrypted translation</li>
<li>Just send us your plugin-country_code.mo (depending on what language is your translation) file located in (<a href="#">http://www.yoursite.com/wp-content/plugins/wp-rokstories/languages/</a>) and tell us for what country and what language is your translation</li>
</ul>