<?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>CAIH.org &#187; patch</title>
	<atom:link href="http://caih.org/tag/patch/feed/" rel="self" type="application/rss+xml" />
	<link>http://caih.org</link>
	<description>Movies, life and python</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:23:55 +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>A small patch for ProjectPier language support</title>
		<link>http://caih.org/open-source-software/a-small-patch-for-projectpier-language-support/</link>
		<comments>http://caih.org/open-source-software/a-small-patch-for-projectpier-language-support/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 20:27:39 +0000</pubDate>
		<dc:creator>César Izurieta</dc:creator>
				<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://caih.org/?p=61</guid>
		<description><![CDATA[When using ProjectPier in a different language than English you may come to see a bug when browsing through the dashboard. Some translations include html code in their strings (because of a migration from activeCollab?). ProjectPier escapes this strings and the code leaks to the user interface. For example there is this Spanish translation: 'log [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>When using <a title="ProjectPier" href="http://www.projectpier.org/" target="_blank">ProjectPier</a> in a different language than English you may come to see a bug when browsing through the dashboard. Some translations include html code in their strings (because of a migration from activeCollab?). ProjectPier escapes this strings and the code leaks to the user interface.</p>
<p>For example there is this Spanish translation:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0000ff;">'log add projectmessages'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">%</span>s<span style="color: #0000ff;">' &lt;strong&gt;agregado&lt;/strong&gt;'</span><span style="color: #339933;">,</span></div></div>
<p>On a first instance, %s is replaced by some string that may contain html, lets say &#8220;A&amp;B&#8221;. Then ProjectPier scapes the resulting string and ends up like:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">A<span style="color: #ddbb00;">&amp;amp;</span>B <span style="color: #ddbb00;">&amp;lt;</span>strong<span style="color: #ddbb00;">&amp;gt;</span>agregado<span style="color: #ddbb00;">&amp;lt;</span>/strong<span style="color: #ddbb00;">&amp;gt;</span></div></div>
<p>And the end user-visible result is:</p>
<blockquote><p>
A&amp;B &lt;strong&gt;agregado&lt;/strong&gt;
</p></blockquote>
<p>I&#8217;ve attached a patch to this post that fixes this. This patch is a temporary solution for the problem, but a real solution would be filter the real content before it is inserted in the translated string. This is for ProjectPier v.0.8.0.3.</p>
<p>Download: <a href='http://caih.org/wp-content/uploads/2009/02/projectpier-lang.patch'>projectpier-lang.patch</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://caih.org/open-source-software/a-small-patch-for-projectpier-language-support/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
