<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Open Script Solution&#187; language</title>
	<atom:link href="http://www.openscriptsolution.com/tag/language/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:22:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Get Current Language Code by Using WPML Plugin of WordPress</title>
		<link>http://www.openscriptsolution.com/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/</link>
		<comments>http://www.openscriptsolution.com/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 03:39:09 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[current]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[multi-language]]></category>
		<category><![CDATA[multi-lingual]]></category>
		<category><![CDATA[multilanguage]]></category>
		<category><![CDATA[multilingual]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WPML]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1088</guid>
		<description><![CDATA[I have been using WPML Plugin for one of my multi language websites. Once upon a time, I needed to check the current language code in order to execute my own code that I wrote in the sidebar related to the current language. The question is: How did I get that current language code? After [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using <a href="http://wpml.org" target="_blank">WPML Plugin</a> for one of my multi language websites. Once upon a time, I needed to check the current language code in order to execute my own code that I wrote in the sidebar related to the current language. The question is: How did I get that current language code? After do some searching through the author&#8217;s website, then I found the answer from this following post: <a href="http://wpml.org/documentation/support/wpml-coding-api/">WPML coding API</a>. WPML has provided the constants in order to get: 1) The current language code, 2) The name of current language in the original (current) language, and 3) The name of the current language name in English. Thanks to WPML for providing this constants! <span id="more-1088"></span></p>
<p>If you wan to get the value of those three constants, then you can put this code to your <strong>index.php</strong> file of your current theme.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;br /&gt;Language Code: &quot;</span><span style="color: #339933;">.</span>ICL_LANGUAGE_CODE<span style="color: #339933;">;</span> 
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;br /&gt;Original Language Name: &quot;</span><span style="color: #339933;">.</span>ICL_LANGUAGE_NAME<span style="color: #339933;">;</span> 
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;br /&gt;Language Name in English: &quot;</span><span style="color: #339933;">.</span>ICL_LANGUAGE_NAME_EN<span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Suppose you are using English (en) and Indonesian (id) language, and you want to check the current language code only, so you can execute the certain code related to the current language code, then you can use this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>ICL_LANGUAGE_CODE <span style="color: #339933;">==</span> <span style="color: #0000ff;">'en'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// put your code here if the current language code is 'en' (English)</span>
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>ICL_LANGUAGE_CODE <span style="color: #339933;">==</span> <span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// put your code here if the current language code is 'id' (Indonesian)</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Hopefully this will be helpful.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2010%2F01%2F11%2Fhow-to-get-current-language-code-by-using-wpml-plugin-of-wordpress%2F&amp;title=How%20to%20Get%20Current%20Language%20Code%20by%20Using%20WPML%20Plugin%20of%20WordPress" id="wpa2a_2"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>How to Detect Default Client&#8217;s Browser Language Using PHP</title>
		<link>http://www.openscriptsolution.com/2009/09/14/how-to-detect-default-client-s-browser-language-using-php/</link>
		<comments>http://www.openscriptsolution.com/2009/09/14/how-to-detect-default-client-s-browser-language-using-php/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 02:36:38 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=320</guid>
		<description><![CDATA[The following code will be able to detect default client&#8217;s browser language. I have tested this code by using Mozilla Firefox (FF) version 3.5.2 and Internet Explorer (IE) version 8 browser. Both of those browsers worked like a charm! If you want to try using FF browser, go to the menu on that browser: Tools [...]]]></description>
			<content:encoded><![CDATA[<p>The following code will be able to detect default client&#8217;s browser language.  I have tested this code by using <strong>Mozilla Firefox (FF) version 3.5.2</strong> and <strong>Internet Explorer (IE) version 8</strong> browser. Both of those browsers worked like a charm! If you want to try using FF browser, go to the menu on that browser: Tools -> Options&#8230; -> Content -> Languages, then click on Choose&#8230; button. Add some languages as many as you need to the list afterwards. Try to change the position the language you want, by selecting the language first, and click the Move Up button to make it at the top of the list. Then run the following code, and you will see the output of the code is the language code that you have choosen before. <span id="more-320"></span></p>
<p>To make this code running, simply create a new file named <strong>detectbrowserlanguage.php</strong>. Copy-paste the following code below to that file and save the file. Put the file onto the root directory of your web server. Then run or call this file via your browser, for example: <strong>http://www.yourdoimain.com/detectbrowserlanguage.php</strong>.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #000088;">$prefered_languages</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match_all</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#([^;,]+)(;[^,0-9]*([0-9\.]+)[^,]*)?#i&quot;</span><span style="color: #339933;">,</span> 
	<span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTP_ACCEPT_LANGUAGE&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> 
	<span style="color: #000088;">$matches</span><span style="color: #339933;">,</span> 
	PREG_SET_ORDER<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$priority</span> <span style="color: #339933;">=</span> <span style="color:#800080;">1.0</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$matches</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$match</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$match</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$pr</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$priority</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$priority</span> <span style="color: #339933;">-=</span> <span style="color:#800080;">0.001</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$pr</span> <span style="color: #339933;">=</span> <span style="color: #990000;">floatval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$match</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #000088;">$prefered_languages</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$match</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pr</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #990000;">arsort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$prefered_languages</span><span style="color: #339933;">,</span> SORT_NUMERIC<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$prefered_languages</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$language</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$priority</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;This browser using language code: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$language</span><span style="color: #339933;">;</span>
      <span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Each time after you change the language at the first position on the list, then try to run again the code above via browser. You should see the result is the same language code with the one you have just changed before. This code sometimes you need when you want to make the different handling for the certain language according to the browser&#8217;s client when they access your website.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F09%2F14%2Fhow-to-detect-default-client-s-browser-language-using-php%2F&amp;title=How%20to%20Detect%20Default%20Client%26%238217%3Bs%20Browser%20Language%20Using%20PHP" id="wpa2a_4"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/09/14/how-to-detect-default-client-s-browser-language-using-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Add Captcha Security Code in osTicket System 1.6 RC5</title>
		<link>http://www.openscriptsolution.com/2009/09/11/how-to-add-captcha-security-code-in-osticket-system-1-6-rc5/</link>
		<comments>http://www.openscriptsolution.com/2009/09/11/how-to-add-captcha-security-code-in-osticket-system-1-6-rc5/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 02:45:34 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[osTicket]]></category>
		<category><![CDATA[bahasa]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[security code]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=270</guid>
		<description><![CDATA[In osTicket System version 1.6 RC5, there is no CAPTCHA feature on the open new ticket form. This will cause sometimes you will receive the ticket that contains of spam, and this will bother your ticket system. In order to decrease the spam ticket, you can implement the security code (CAPTCHA) feature as you can [...]]]></description>
			<content:encoded><![CDATA[<p>In osTicket System version 1.6 RC5, there is no CAPTCHA feature on the open new ticket form. This will cause sometimes you will receive the ticket that contains of spam, and this will bother your ticket system. In order to decrease the spam ticket, you can implement the security code (CAPTCHA) feature as you can see from this URL: <a href="http://www.white-hat-web-design.co.uk/articles/php-captcha.php" target="_blank">http://www.white-hat-web-design.co.uk/articles/php-captcha.php</a> on your osTicket form. Please try the following steps.<span id="more-270"></span></p>
<ol>
<li>Download the file from this URL: <a href="http://www.white-hat-web-design.co.uk/articles/captcha.zip">http://www.white-hat-web-design.co.uk/articles/captcha.zip</a>.</li>
<p></p>
<li>Extract the .zip file above, then upload two files: <strong>CaptchaSecurityImages.php</strong> and <strong>monofont.ttf</strong> into the main or root directory of your osTicket.</li>
<p></p>
<li>Open <strong>include\class.ticket.php</strong> file, and find this code:

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strcasecmp</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$origin</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'web'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//Help topic only applicable on web tickets.</span>
            <span style="color: #000088;">$fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'topicId'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'int'</span><span style="color: #339933;">,</span>      <span style="color: #0000ff;">'required'</span><span style="color: #339933;">=&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'error'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'Select help topic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>after that code, add the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">            <span style="color: #666666; font-style: italic;">// Begin of MOD CAPTCHA, added by Masino Sinaga, July 17, 2009</span>
            <span style="color: #000088;">$fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'security_code'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'code'</span><span style="color: #339933;">,</span>     <span style="color: #0000ff;">'required'</span><span style="color: #339933;">=&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'error'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'Please type correct CAPTCHA code'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #666666; font-style: italic;">// End of MOD CAPTCHA, added by Masino Sinaga, July 17, 2009</span></pre></div></div>

</li>
<li>
Open <strong>\include\class.validator.php</strong> file, and find this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">            <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'text'</span><span style="color: #339933;">:</span>
            <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'string'</span><span style="color: #339933;">:</span>
                <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span></pre></div></div>

<p>before that code above, please add the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">            <span style="color: #666666; font-style: italic;">// Begin of MOD CAPTCHA, added by Masino Sinaga, July 17, 2009</span>
            <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'code'</span><span style="color: #339933;">:</span>
                <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'security_code'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'security_code'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
                <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">errors</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$k</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$field</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'error'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>             
            <span style="color: #666666; font-style: italic;">// End of MOD CAPTCHA, added by Masino Sinaga, July 17, 2009</span></pre></div></div>

</li>
<li>
Open <strong>\include\client\open.inc.php</strong> file, and find this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">defined</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'OSTCLIENTINC'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Kwaheri rafiki!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Say bye to our friend..</span></pre></div></div>

<p>after that code above, please add the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Begin of CAPTCHA feature, added by Masino Sinaga, July 17, 2009</span>
<span style="color: #990000;">session_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// End of CAPTCHA feature, added by Masino Sinaga, July 17, 2009</span></pre></div></div>

<p>find also this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">    &lt;tr&gt;
        &lt;th&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #009900;">&#40;</span>I_C_OPEN_ATTACHMENT<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/th&gt;
        &lt;td&gt;
            &lt;input type=&quot;file&quot; name=&quot;attachment&quot;&gt;&lt;font class=&quot;error&quot;&gt;&amp;nbsp;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$errors</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'attachment'</span><span style="color: #009900;">&#93;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/font&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>then after that code above, please add this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!-- Begin of CAPTCHA feature, added by Masino Sinaga, July 17, 2009 --&gt;
    &lt;tr&gt;
        &lt;th&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #009900;">&#40;</span>I_C_OPEN_SECURITY_CODE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/th&gt;
        &lt;td valign=&quot;middle&quot;&gt;
            &lt;img src=&quot;CaptchaSecurityImages.php?width=100&amp;height=38&amp;characters=6&quot;/&gt;
            &lt;input id=&quot;security_code&quot; name=&quot;security_code&quot; type=&quot;text&quot; size=&quot;15&quot;&gt;&lt;font class=&quot;error&quot;&gt;&amp;nbsp;*&amp;nbsp;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$errors</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'security_code'</span><span style="color: #009900;">&#93;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/font&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;!-- End of CAPTCHA feature, added by Masino Sinaga, July 17, 2009 --&gt;</pre></div></div>

</li>
</ol>
<p>Please note, in some part of the code above, you will find constant(s), and the other side, you will also find the sentence that has not been converted to its constant. This happened because some of the code have not been translated to the language file. Please adjust them with your need. Thank you for your understanding.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F09%2F11%2Fhow-to-add-captcha-security-code-in-osticket-system-1-6-rc5%2F&amp;title=How%20to%20Add%20Captcha%20Security%20Code%20in%20osTicket%20System%201.6%20RC5" id="wpa2a_6"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/09/11/how-to-add-captcha-security-code-in-osticket-system-1-6-rc5/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How to Translate Your Blog Title and Description Using qTranslate Plugin</title>
		<link>http://www.openscriptsolution.com/2009/09/05/how-to-translate-your-blog-title-and-description-using-qtranslate-plugin/</link>
		<comments>http://www.openscriptsolution.com/2009/09/05/how-to-translate-your-blog-title-and-description-using-qtranslate-plugin/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 10:22:14 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[description]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[qTranslate]]></category>
		<category><![CDATA[QuickTags]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=191</guid>
		<description><![CDATA[Since qTranslate plugin introduced its new feature about QuickTags, we can now translate our field content to another languages so easily. Simply just add this language tag &#91;:en&#93; for English translation at the beginning of your English field  content, and also add another language tag at the beginning of your field content that contains of [...]]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://wordpress.org/extend/plugins/qtranslate/" target="_blank">qTranslate plugin</a> introduced its new feature about <a href="http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&amp;t=385" target="_blank">QuickTags</a>, we can now translate our field content to another languages so easily. Simply just add this language tag <strong>&#91;:en&#93;</strong> for English translation at the beginning of your English field  content, and also add another language tag at the beginning of your field content that contains of the words or sentences in your language. At this moment, I will show you how to translate the blog title and description by adding the tags related to the languages that I use (English and Indonesian). <span id="more-191"></span></p>
<ol>
<li>Go to your admin panel, then click on <strong>Settings</strong> -&gt; <strong>General</strong></li>
<li>At the <strong>Blog Title</strong> directive, add the language tag. For example, your Blog Title is: <strong>My First Website</strong>. Change it become:<br />
<strong>&#91;:en&#93;My First Website&#91;:id&#93;Situs Pertamaku</strong></li>
<li>At the <strong>Tagline</strong> directive, also add the language tag. For example, your Tagline is: <strong>This is my first website. </strong>Change it become:<br />
<strong>&#91;:en&#93;This is my first website&#91;:id&#93;Ini situs pertamaku</strong></li>
<li>Save your settings by click on <strong>Save Changes</strong> button at the bottom of the page.</li>
</ol>
<p>Now, when you choose English as the current language from your language selector, then it will show you as:</p>
<p><strong>My First Website<br />
This is my first website</strong></p>
<p>and when you switch its language become Indonesian language, it will show you as:</p>
<p><strong>Situs Pertamaku<br />
Ini situs pertamaku</strong></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F09%2F05%2Fhow-to-translate-your-blog-title-and-description-using-qtranslate-plugin%2F&amp;title=How%20to%20Translate%20Your%20Blog%20Title%20and%20Description%20Using%20qTranslate%20Plugin" id="wpa2a_8"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/09/05/how-to-translate-your-blog-title-and-description-using-qtranslate-plugin/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Adjust MicroKid Related Posts v2.3 with qTranslate v2.4.3 Plugins</title>
		<link>http://www.openscriptsolution.com/2009/08/22/adjust-microkid-related-posts-v2-3-with-qtranslate-v2-4-3-plugins/</link>
		<comments>http://www.openscriptsolution.com/2009/08/22/adjust-microkid-related-posts-v2-3-with-qtranslate-v2-4-3-plugins/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 14:44:53 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[adjust]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[MicroKid]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[qTranslate]]></category>
		<category><![CDATA[related]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=29</guid>
		<description><![CDATA[I have been using qTranslate plugins for the last two days. I love this plugins so much since it is a simple plugins, yet easy to use and also has the powerful feature until now, especially when I edit or add the new post. Simply click the tab regarding to the language you want. If [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using <a href="http://wordpress.org/extend/plugins/qtranslate/" target="_blank"><strong>qTranslate</strong></a> plugins for the last two days. I love this plugins so much since it is a simple plugins, yet easy to use and also has the powerful feature until now, especially when I edit or add the new post. Simply click the tab regarding to the language you want. If I compare with the other translate plugins, qTranslate is still the best, at least for me. <span id="more-29"></span></p>
<p>Today I started to use <a href="http://www.microkid.net/wordpress/related-posts/" target="_blank"><strong>MicroKid Related Posts</strong></a> plugins for displaying the Related Posts at the bottom of the post. Unfortunately, I found a little bit problem after I have succeeded to implement this plugins. What was that? Well, since the post title has been saved by qTranslate plugins in one field in wp_posts table for all active languages, then each time the post title displayed, it contains of the title post belong to those all languages, and there is no space between them.</p>
<p>For example: I already have a post with title in English &#8220;Welcome to My World&#8221; whereas in Indonesian language this has the meaning as &#8220;Selamat datang di Dunia Saya&#8221;. For those of you who has not tried this plugins, the value for the post_title field would be like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!--:en--&gt;Welcome to My World&lt;!--:--&gt;&lt;!--:id--&gt;Selamat datang di Dunia Saya&lt;!--:--&gt;</pre></div></div>

<p>that is why when it displayed the result will become like this:</p>
<p>&#8220;<strong>Welcome to My WorldSelamat datang di Dunia Saya</strong>&#8221;</p>
<p>whereas between one title with another belongs to other language does not separated by space character, and I think this is something that looks like not so good.</p>
<p>When I search this post and then select this post title as related post for my new post, then the title of this related post will become: &#8220;Welcome to My WorldSelamat datang di Dunia Saya&#8221;. As you can see, that post_title being shown contains of the both active language; English and Indonesian. I think it would be better if it should be like this:</p>
<p><strong>Welcome to My World</strong> if the selected language is English,<br />
or:<br />
<strong>Selamat datang di Dunia Saya</strong> is the selected language is Indonesian.</p>
<p>This is an interested challenge for me. So I started to search the script related to this, and trying to make it came true.</p>
<p>So, here was I made:</p>
<p><strong>1.</strong> Open <strong>mrp-search.php</strong> file belongs to MicroKid Related Posts plugins, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>55
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$results</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$result</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></td></tr></table></div>

<p>then replace with this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>55
56
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$results</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$result</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$related_post_title</span> <span style="color: #339933;">=</span> wp_specialchars<span style="color: #009900;">&#40;</span>qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage<span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>also, find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>63
64
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt; &lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;
     title=&quot;View this post&quot; target=&quot;_blank&quot;&gt;&amp;rsaquo;&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>and replace with this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>63
64
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$related_post_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt; &lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;
     title=&quot;View this post&quot; target=&quot;_blank&quot;&gt;&amp;rsaquo;&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>We have done with the mrp-search.php file.</p>
<p><strong>2.</strong> The next step is that we have to edit the code in <strong>microkids-related-posts.php</strong> file.<br />
Open the file and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>95
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_posts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$related_post_id</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$related_post_title</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></td></tr></table></div>

<p>replace with this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>95
96
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_posts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$related_post_id</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$related_post_title</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$related_post_title</span> <span style="color: #339933;">=</span> wp_specialchars<span style="color: #009900;">&#40;</span>qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage<span style="color: #009900;">&#40;</span><span style="color: #000088;">$related_post_title</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>also, find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>317
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_posts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$related_post_id</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$related_post_title</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></td></tr></table></div>

<p>and replace with this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>317
318
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_posts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$related_post_id</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$related_post_title</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$related_post_title</span> <span style="color: #339933;">=</span> wp_specialchars<span style="color: #009900;">&#40;</span>qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage<span style="color: #009900;">&#40;</span><span style="color: #000088;">$related_post_title</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then, find also this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>367
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_posts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$related_post_id</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$related_post_title</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></td></tr></table></div>

<p>and replace with this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>367
368
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_posts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$related_post_id</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$related_post_title</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$related_post_title</span> <span style="color: #339933;">=</span> wp_specialchars<span style="color: #009900;">&#40;</span>qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage<span style="color: #009900;">&#40;</span><span style="color: #000088;">$related_post_title</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>That&#8217;s all. Now the title post in <strong>Related Posts</strong> section will look better than before. You can see the result in the bottom of this post at the <strong>Related Posts</strong> section, when you display a post with full-mode.</p>
<p>This has been tested and working good in <strong>MicroKid Related Posts version 2.3</strong> and <strong>qTranslate version 2.4.3</strong>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F08%2F22%2Fadjust-microkid-related-posts-v2-3-with-qtranslate-v2-4-3-plugins%2F&amp;title=Adjust%20MicroKid%20Related%20Posts%20v2.3%20with%20qTranslate%20v2.4.3%20Plugins" id="wpa2a_10"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/08/22/adjust-microkid-related-posts-v2-3-with-qtranslate-v2-4-3-plugins/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Poedit: Translation Tools for WordPress</title>
		<link>http://www.openscriptsolution.com/2009/08/22/poedit-translation-tools-for-wordpress/</link>
		<comments>http://www.openscriptsolution.com/2009/08/22/poedit-translation-tools-for-wordpress/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 09:12:06 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[bahasa]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[multi]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[poedit]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=16</guid>
		<description><![CDATA[The first time I used WordPress for this website, I was using inove theme (of course, after several hours surfing through the WordPress.org website and test some of them in my localhost website). I love this theme because it has the translatation feature with the language files, including my language, Indonesian. Besides that, the theme [...]]]></description>
			<content:encoded><![CDATA[<p>The first time I used WordPress for this website, I was using <strong>inove</strong> theme (of course, after several hours surfing through the WordPress.org website and test some of them in my localhost website). I love this theme because it has the translatation feature with the language files, including my language, Indonesian. Besides that, the theme layout is so simple, yet clean and powerful enough. <span id="more-16"></span></p>
<p>Unfortunately, I saw that some words have not been translated, yet, such as <strong>Categories</strong> and <strong>Archives</strong>. So I decided to investigate from which files those words belong, and thought that &#8220;How do I translate the language file in WordPress?&#8221; and &#8220;Do I have to use such a tools?&#8221;.</p>
<p>Well, Got it! Firsf of all, I found the file that contains of those words. They were located in <strong>sidebar.php</strong> file.</p>
<p>I found this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Categories<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span></pre></div></div>

<p>I compared with the other strings that have been translated, then I found it should be translated using <strong>_e()</strong> function, and that code above should be like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;h3&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Categories'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'inove'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h3&gt;</pre></div></div>

<p>I also did the same way with the <strong>Archives</strong> word.</p>
<p>After that, based on my logic, I thought that there should be another step(s) that I had to do in order to display my language on the web page, later. Then I  search for the translation file regarding to my language and I found them in \wp-content\themes\inove\languages\ directory. I saw that there were 2 files regarding my languages. They are:</p>
<p>1) id_ID.po<br />
2) id_ID.mo</p>
<p>Since that was the first time I opened those 2 files, then I thought that the first one (id_ID.po) was the file where I should added those 2 words above, because the second file (id_ID.mo) was the binary file that generated by such a special tools. Until here, I still did not find out how to generate the second file with .mo extension.</p>
<p>So I added  these code in id_ID.po file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">#: sidebar.php:121
msgid &quot;Categories&quot;
msgstr &quot;Kategori&quot;
&nbsp;
#: sidebar.php:155
msgid &quot;Archives&quot;
msgstr &quot;Arsip&quot;</pre></div></div>

<p>While I was adding and translating those words, I found a special handling for the words that contain of variable. Take a look the code below:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">#: archive.php:50
#, php-format
msgid &quot;% comments&quot;
msgstr &quot;% komentar&quot;</pre></div></div>

<p>From the code above, I took a conclusion that <strong>%</strong> is the first variable. Of course there will be a next question, then: How if there will be more than one variable in a string? The answer we can see from the code below:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">#: comments.php:91
#: functions.php:563
#, php-format
msgid &quot;%1$s at %2$s&quot;
msgstr &quot;%1$s pada %2$s&quot;</pre></div></div>

<p>Yes, we can see that both variables differentiate one to each other with <strong>%1</strong> and <strong>%2</strong>. And one more thing, Poedit automatically added a line <strong>#, php-format</strong> if a string contains of variable(s) such as that code above. It means that this code contains of php-format.</p>
<p>The mission still has not completed yet. Afterwards, I went to the WordPress website, and found this resource regarding Translating in WordPress: <a href="http://codex.wordpress.org/Translating_WordPress" target="_blank">http://codex.wordpress.org/Translating_WordPress</a> . At the beginning, I did not know how to generate this id_ID.mo file. Then I tried to download one of the recommended tools. It was <strong>Poedit</strong> and I downloaded it from <a href="http://www.poedit.net/" target="_blank">http://www.poedit.net/</a> or <a href="http://sourceforge.net/projects/poedit/" target="_blank">http://sourceforge.net/projects/poedit/</a> and installed it on my notebook.</p>
<p>I opened the id_ID.po file with <strong>Poedit</strong> or double-click the file from Windows Explorer, and it directly opened with <strong>Poedit</strong>. I saw that there were some words that needed to translate besides those 2 words that I mentioned before above. After I ensured everything is okay, then I saved the file, and&#8230; abrakadabra&#8230; I saw from Windows Explorer, that the &#8220;Date Modified&#8221; of the id_ID.mo file has the same &#8220;Date Modified&#8221; with the id_ID.po file.</p>
<p>Well, I was so glad that time. I took a conclusion that each time I saved the id_ID.po file, then Poedit will automatically generate the id_ID.mo file. So, this is indeed, the tools that I have been looking for! It has been answered now how to generate id_ID.mo file automatically based on the last condition in id_ID.po file.</p>
<p>I uploaded the id_ID.po, id_ID.mo, and sidebar.php script file to my web server according to the appropriate sub directory. Now those words have been successfully displayed with my own language.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F08%2F22%2Fpoedit-translation-tools-for-wordpress%2F&amp;title=Poedit%3A%20Translation%20Tools%20for%20WordPress" id="wpa2a_12"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/08/22/poedit-translation-tools-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Make a Multi-Language Web Content Page</title>
		<link>http://www.openscriptsolution.com/2009/08/21/how-to-make-a-multi-language-web-content-page/</link>
		<comments>http://www.openscriptsolution.com/2009/08/21/how-to-make-a-multi-language-web-content-page/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 16:32:05 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[bahasa]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[halaman]]></category>
		<category><![CDATA[isi]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[multibahasa]]></category>
		<category><![CDATA[multilanguage]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[qTranslate]]></category>
		<category><![CDATA[situs]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[translasi]]></category>
		<category><![CDATA[translate]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=8</guid>
		<description><![CDATA[Today was the first time I used WordPress for building this website. I have been looking for a CMS that support for multi-language web content page. I need that each time my visitor read an article in full-mode and they choose one of the languages, then the content of that article will be translated to [...]]]></description>
			<content:encoded><![CDATA[<p>Today was the first time I used WordPress for building this website. I have been looking for a CMS that support for multi-language web content page. I need that each time my visitor read an article in full-mode and they choose one of the languages, then the content of that article will be translated to the new language. <span id="more-8"></span></p>
<p>Then after serveral hours surfing through the Internet, I found a WordPress plugins that has the ability to switch/translate the content of a page to the selected language. The plugins&#8217; name is <strong>qTranslate</strong> that you can find from here: <a title="qTranslate plugins" href="http://wordpress.org/extend/plugins/qtranslate/" target="_blank">http://wordpress.org/extend/plugins/qtranslate/</a> . I downloaded qTranslate version 2.4.3 that compatible with WordPress version 2.8.4 or later.</p>
<p>Incredible! This plugins is really useful as I have been looking for. The most important thing that I like from this plugins is: user will become easier while creating a new article, since there was new tabs as many as the language that being enabled or used. Therefore, we can switch from one to another tab to translate to the new language only from one form.</p>
<p>Another advantage that you get when you use this plugins is: every post for all active languages will be saved in one record. Thus, this will keep your database size smaller, than if every post for each language will be saved in separate record.</p>
<p>But, it has small weakness, especially if you deactivate this plugins after you have some posts that added or updated with this multi-language feature. The tag as I mentioned above will be displayed since it was located in one field. Therefore, if you want to use or currently using this qTranslate plugins, please reconsider not to deactivate it after you have posts that made with this plugins. Except if you want to spend your time to edit the field contains of that separator tag in database.</p>
<p>Now, I am starting to use WordPress, and had fallen in love with it since I knew and found this qTranslate plugins.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F08%2F21%2Fhow-to-make-a-multi-language-web-content-page%2F&amp;title=How%20to%20Make%20a%20Multi-Language%20Web%20Content%20Page" id="wpa2a_14"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/08/21/how-to-make-a-multi-language-web-content-page/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
