<?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>ClassiPress &#187; poedit</title>
	<atom:link href="http://wpclassipress.com/tag/poedit/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpclassipress.com</link>
	<description>Instantly turn your WordPress blog into a classified ads system.</description>
	<lastBuildDate>Tue, 29 Jun 2010 05:55:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Upgrading to ClassiPress v2.9.2</title>
		<link>http://wpclassipress.com/upgrading-to-classipress-v292/</link>
		<comments>http://wpclassipress.com/upgrading-to-classipress-v292/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 03:23:29 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[classified ads theme]]></category>
		<category><![CDATA[classipress upgrade]]></category>
		<category><![CDATA[poedit]]></category>
		<category><![CDATA[wordpress premium themes]]></category>

		<guid isPermaLink="false">http://wpclassipress.com/?p=523</guid>
		<description><![CDATA[Over the weekend a new version of ClassiPress was released bringing us to v2.9.2. For those of you who are still using v2.8, you&#8217;re sure going to love this update. It addresses many of the feature requests everyone thought was missing. If you haven&#8217;t already read about the new features, check out the ClassiPress Features [...]]]></description>
			<content:encoded><![CDATA[<p>Over the weekend a new version of ClassiPress was released bringing us to v2.9.2. For those of you who are still using v2.8, you&#8217;re sure going to love this update. It addresses many of the feature requests everyone thought was missing. If you haven&#8217;t already read about the new features, check out the <a href="http://wpclassipress.com/features/">ClassiPress Features</a> page to understand all the new goodies you get for free.</p>
<p>If you are already using v2.9 or v2.9.1, the main difference (besides some bug fixes) is how the ad form works and looks. There were some people who were having trouble with the modal box form button (it just wouldn&#8217;t work) but others didn&#8217;t have a problem at all.</p>
<p>Myself and my developer spent many hours working with customers trying to troubleshoot and isolate the problem. We released one patch that fixed it for some, but I still was not satisfied until it was working for everyone.<span id="more-523"></span></p>
<p>So v2.9.2 now has the sliding jquery form which is actually the original one CP used (what v2.8 uses). It will be the supported ad form going forward so it&#8217;s highly recommended you upgrade from any flavor of 2.9 to 2.9.2 immediately. If you&#8217;ve made any changes to your CP theme, I advise you to bring them over into v2.9.2 instead of trying to upgrade your existing v2.9 or v2.9.1.</p>
<p>View the changelog.txt file included in the download and you&#8217;ll see the exact changes and files affected. The /classipress/classifiedform directory has also been removed and replaced with process_form.php and post-form.php in the CP root which is how v2.8 was structured.</p>
<h4>Upgrading from v2.9 or v2.9.1</h4>
<ol>
<li>Download and unzip v2.9.2. You can get the latest version by clicking on your original e-junkie email link. If you deleted or lost the email, contact me and include the email address you used to purchase CP (your PayPal email address). Please don&#8217;t be lazy and actually look for the original email first before <a href="http://wpclassipress.com/contact/" target="_self">contacting me</a>.</li>
<li>Put your site in maintenance mode. <a href="http://wpclassipress.com/resources/">Download and install</a> this plugin if you don&#8217;t already have it.</li>
<li>Turn off any WP Cache plugins such as WP Super Cache (if applicable).</li>
<li>Rename your existing ClassiPress theme folder to &#8220;classipress_OLD&#8221;. This will essentially turn off your CP theme and use the default WP theme.</li>
<li>FTP only the v2.9.2 &#8220;classipress&#8221; folder into your themes folder. Also FTP the contents of the &#8220;plugins&#8221; folder to your WP plugins folder. Skip if you&#8217;ve already got the latest plugins.</li>
<li>Now go and activate v2.9.2 from within WordPress. You will see two that look exactly the same. Pick one and activate it. If it says v2.9.2, then you selected the correct one. If not, activate the other one.</li>
<li>Step through your CP config, settings, and payment pages and save each one. Your settings will still be the same as what you previously had before (except maybe the color scheme).</li>
<li>View your site and try submitting a new ad. You will notice the form is different than what you previously had.</li>
<li>If everything looks ok, then delete your test ad and turn off maintenance mode. Activate your cache plugin (if applicable).</li>
<li>If you were using CP in a different language (i.e. using a .mo file), you will need to update your classipress.pot and regenerate a .mo file. Read below for more details.</li>
</ol>
<h4>Upgrading from v2.8, v2.8.1, v2.8.2</h4>
<p>This upgrade will be a little more involved for those who are using the 2.8 version series. The good news is there are a lot more features and benefits in the latest release. If you haven&#8217;t already read about them, check out the <a href="http://wpclassipress.com/features/">ClassiPress Features</a> page to understand all the new goodies you get for free.</p>
<ol>
<li>Follow the first 7 steps above.</li>
<li>When you get to step #7, make sure to review the new options on each of the ClassiPress admin pages. You will see lots of new features which will need to be setup and saved. If this isn&#8217;t done correctly, you will have problems with the ad submissions. CP admin pages (configure, settings, payment) must be saved first.</li>
<li>There are three new pages you need to setup to create the dashboard, profile, and ad edit functionality. Detailed instructions can be found within the install guide in the &#8220;<a href="http://wpclassipress.com/install/">User Dashboard &amp; Profile Setup</a>&#8221; section. Please read it carefully before asking for support. Most questions asked are because people didn&#8217;t read everything. <img src='http://wpclassipress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li>Now continue with steps 8-10 listed above.</li>
</ol>
<h4>ClassiPress in your language</h4>
<p>If you are already using ClassiPress in a different language you will need to update your .po and recreate your .mo file. There is new text in v2.9.2 that needs to be translated and some text has moved to different lines. If you do not do this, your upgraded CP will not translate the text properly and look funny on your site.</p>
<p>Once you receive the new v2.9.2 .pot file, you need to open your existing translated .po file (i.e. pr_PR.po) in POEdit and select the &#8220;Update from POT file&#8221; option under the &#8220;Catalog&#8221; menu. Point it to the v2.9.2 .pot file and PoEdit will show you what text is new and needs to be translated. After you have translated the new text, save the project and then it will create your new .mo file. Overwrite your old .mo file in your /themes/classipress directory and look at your site. </p>
<h4>Questions or comments</h4>
<p>If you have any support or upgrade questions, please post them in the <a href="http://wpclassipress.com/forum/" target="_blank">online support forum</a> and NOT the comments section below. You can use the comments section below for general remarks or to thank me for spending my entire weekend preparing the upgrade for my customers. <img src='http://wpclassipress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>I am sure you will enjoy this update as it addresses the most popular requests from everyone. ClassiPress has come a long way since it&#8217;s inception last year and you can expect it to evolve even further!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpclassipress.com/upgrading-to-classipress-v292/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How to Translate a WordPress Theme</title>
		<link>http://wpclassipress.com/how-to-translate-a-wordpress-theme/</link>
		<comments>http://wpclassipress.com/how-to-translate-a-wordpress-theme/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 06:15:00 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[gettext]]></category>
		<category><![CDATA[localize wordpress]]></category>
		<category><![CDATA[poedit]]></category>
		<category><![CDATA[translate wordpress]]></category>

		<guid isPermaLink="false">http://wpclassipress.com/?p=507</guid>
		<description><![CDATA[If you are familiar with WordPress and the many plugins and themes available for it, you&#8217;ve probably come across some strangely named files like .mo, .po, and .pot. If you haven&#8217;t then the theme and/or plugin has not been designed for translation. This article explains how to take a .po file that is included with [...]]]></description>
			<content:encoded><![CDATA[<p>If you are familiar with WordPress and the many plugins and themes available for it, you&#8217;ve probably come across some strangely named files like .mo, .po, and .pot. If you haven&#8217;t then the theme and/or plugin has not been designed for translation. This article explains how to take a .po file that is included with your WordPress theme and/or plugin download and translate it into your native language.</p>
<p>Don&#8217;t have a .po or .mo file for your theme or plugin yet? Follow these steps on <a href="http://codex.wordpress.org/User:Skippy/Creating_POT_Files" target="_blank">how to generate your first WordPress .pot file</a>. Another good article with resources about how to translate WordPress into your language is <a href="http://codex.wordpress.org/Translating_WordPress" target="_blank">located here</a>.</p>
<p>So what the heck are those .mo, .po, and .pot files anyhow and why are they included in my download?</p>
<p>Well, the files aren&#8217;t really important if English is your primary language but if you want to have WordPress, a WordPress theme, or even a plugin localized in your native language then those files are golden.</p>
<ul>
<li>.mo stands for Machine Object</li>
<li>.po stands for Portable Object</li>
<li>.pot stands for Portable Object Template</li>
</ul>
<p>The file that you want is ideally a .po file since it&#8217;s the raw editable text scraped from the entire WordPress theme/plugin. The .mo file is the compiled export of the .po file which is used by WordPress.</p>
<p>Here are the steps to translate/localize a .po or .pot file into another language</p>
<ol>
<li>Download a gettext file editor like <a href="http://www.poedit.net/" target="_blank">poedit</a> and install it.</li>
<li>Open the English .po file that came with your WordPress theme or plugin with poedit. If you only got a .pot, just rename it to .po and open it in poedit.</li>
<li>Now go through and translate all the text one line at a time in the bottom box.</li>
<li>Then &#8220;File&#8221; =&gt; &#8220;Save as&#8221; to your desktop or a folder on your computer. This will output a .po and .mo file.</li>
</ol>
<p>As you can see from the screen shot below, the top part of the file contains the entire list of text that needs to be translated. Each line represents a place within the WordPress theme or plugin that stores the text. If you click on different lines, you&#8217;ll notice the section below displays that exact line of text. What&#8217;s even cooler is if you right click on any line, you&#8217;ll see a file name and line number like &#8220;comments.php line 121&#8243;. That is the exact place in the theme or plugin where this text is being used.</p>
<p style="text-align: center;"><a rel="lightbox" href="http://wpclassipress.com/wp-content/uploads/2009/06/poedit-usage.gif"><img class="aligncenter size-medium wp-image-511" style="border: 0pt none;" title="poedit-usage" src="http://wpclassipress.com/wp-content/uploads/2009/06/poedit-usage-300x272.gif" alt="poedit-usage" width="300" height="272" /></a></p>
<p>Now here&#8217;s where you need to pay attention. The blank box below that is where you will type in your translations. So in the screen shot I translated &#8220;Page not found&#8221; into Spanish by typing in the correct translation in the box below.</p>
<p><strong>Important Note</strong>: Some text characters need to be converted into html entities otherwise they will not display correctly. A very common example is a word containing an apostrophe or single quote (&#8216;) which needs to be replaced with &amp;#39; &#8212; for example, <strong>Chloe O&#8217;Brian</strong> should be written as <strong>Chloe O&amp;#39;Brian</strong>. Kind of strange I know but that&#8217;s just how the parser works. For a complete list of html entities, visit <a target="_blank" href="http://www.w3schools.com/tags/ref_entities.asp">W3Schools</a>.</p>
<p>One other thing worth mentioning. PoEdit might give you an error related to &#8220;% comments&#8221; while you try to save the file (usually when you have a K preceding it like in German, &#8220;% Kommentare&#8221;). Usually if you just ignore the error, it will save fine. I will try and fix that comment translation issue in the next release.</p>
<p>After you start making updates, you&#8217;ll notice the upper right portion of the file will begin to fill in. Once you finish the translation (make sure to save often), you will have your final raw file.</p>
<p>Now that you&#8217;ve completed your translations, you can plug-in your file and see if it works. The .po file is your editable file which you can always load back up in poedit and update. The important file is the .mo file. This is what WordPress will use and if it&#8217;s for a new theme like ClassiPress, it needs to be placed in the /wp-content/themes/classipress directory.</p>
<p>I also forgot to mention that the naming of your .mo files is very important and must match the desired locale otherwise it won&#8217;t work. The naming convention is based on the language code (e.g. pt for Portuguese) followed by the country code (e.g. _BR for Brazil). So, the Brazilian Portuguese file would be called pt_BR.mo. See the complete list of <a href="http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Language-Codes" target="_blank">language codes</a> and <a href="http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Country-Codes" target="_blank">country codes</a> to find your exact locale.</p>
<p>You will also need to make a change to your WordPress wp-config.php file (located in your WP root directory) with the correct language codes like the example below. If you don&#8217;t have a WPLANG entry then create one.</p>
<p><code>define ('WPLANG', 'pt_BR');</code></p>
<p>Assuming you&#8217;ve made all these changes, you should now be able to reload your WordPress theme and see it in your native language! If it&#8217;s not working, chances are you didn&#8217;t use the correct naming conventions for your .mo file or in your wp-config.php file. If you see part of your site translated you either didn&#8217;t translate the entire .po file or the .po file wasn&#8217;t completely translated correctly in the first place.</p>
<p>So if you recently purchased ClassiPress and a <a href="http://wpclassipress.com/resources/">language pack file</a> (.mo) is not available for your native language, you should follow the steps above and create your own. ClassiPress is designed to work with virtually any language so just take the included .po file and translation away! Make sure to <a href="http://wpclassipress.com/contact/">contact me</a> and send over a copy so others can download your language pack. You will get full credit for the work and a link back to your site in return.</p>
<h3>How to Update an Older .POT File</h3>
<p>If you&#8217;ve previously translated an older version of ClassiPress and upgraded your site to the latest version of ClassiPress, you&#8217;ll notice the translation file no longer works correctly. This is due to the fact that the ClassiPress code has changed and the old .mo language file can no longer find the text locations.</p>
<p>Before I explain how to update your old language file to include the latest text to translate, I wanted to go behind the curtain and show you how it works. The .POT file is essentially a mapping of which text should be replaced in what file. It keeps track of this by file names and line numbers. When the ClassiPress code changes, it moves the line numbers so the .MO file can no longer find the original text to translate. To better understand what I&#8217;m talking about, open the .POT file with a text editor. You&#8217;ll see a bunch of readable lines that look like this:</p>
<p>#: 404.php:24<br />
msgid &#8220;Whoops! Page Not Found.&#8221;<br />
msgstr &#8220;Whoops! No se pudo encontrar la pagina.&#8221;</p>
<p>The first line tells the language processor what file (404.php) and line number (24) the text to be translated is located on. The &#8220;msgid&#8221; is the actual text that needs to be translated and the &#8220;msgstr&#8221; is the new translation (in this case, Spanish). Pretty easy once you understand how it works, huh?</p>
<p>Ok, so let&#8217;s talk about how to update your old ClassiPress.POT file.</p>
<ol>
<li>First open your old existing translated .POT file (i.e. pr_PR.po) in POEdit. &#8220;File&#8221; =&gt; &#8220;Open&#8221;</li>
<li>Next you&#8217;ll need to compare it with the new .POT file. Do this by going to &#8220;Catalog&#8221; =&gt; &#8220;Update from POT file&#8221; and select your new .POT file.</li>
<li>Now PoEdit will show you what text is new and needs to be translated. It should also update any other changes that have been made.</li>
<li>After you have translated the new text, save the project and then it will create your new .MO file.</li>
<li>Overwrite your old .MO file in your /themes/classipress/ directory and look at your site.</li>
<li>Also make sure you&#8217;ve activated the latest version of the theme (the one that the new language file came with)</li>
</ol>
<p>Now that should be it. Once you know how to work with existing .POT files, doing the updates can be really easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpclassipress.com/how-to-translate-a-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>
