<?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>Joe Song &#187; PHP</title> <atom:link href="http://joesong.com/category/development/php-development/feed/" rel="self" type="application/rss+xml" /><link>http://joesong.com</link> <description>Development, music.</description> <lastBuildDate>Tue, 22 Jun 2010 04:37:09 +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>Overriding Drupal Login Form Messages via Localization</title><link>http://joesong.com/2010/03/overriding-drupal-login-form-messages-via-localization/</link> <comments>http://joesong.com/2010/03/overriding-drupal-login-form-messages-via-localization/#comments</comments> <pubDate>Fri, 19 Mar 2010 16:22:32 +0000</pubDate> <dc:creator>josephsong</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[drupal 6]]></category> <category><![CDATA[forms]]></category> <category><![CDATA[localization]]></category> <category><![CDATA[programming]]></category><guid
isPermaLink="false">http://joesong.com/?p=991</guid> <description><![CDATA[Altering form messages in Drupal via i10n.]]></description> <content:encoded><![CDATA[<h3>Sx</h3><p>We want something besides the default messaging for user forms in Drupal. They are still in English, but just custom to our application. Also, we don&#8217;t need to override all of them, just a few. And, we are using Drupal 6.</p><h3>Dx</h3><p>Drupal is set up to automatically translate form messaging. Using this mechanism, we can cleanly alter the messages to appear just as we would like them to appear. We create a custom language and set it as the default. We only make the few translations that we need and Drupal falls back on the default English for stuff we don&#8217;t translate.</p><p>To setup the custom language:</p><ol
class="default_list"><li>Make sure the Locale module is enabled and that you have permissions to use it (both to Administer Languages and for the Translate Interface)</li><li>Go to Site Configuration -&gt; Languages -&gt; Add Language</li><li>Open the Custom Language form</li><li>Fill in the form with something like:<br
/> Language code: en-MySite<br
/> Language name in English: MySite<br
/> Native language name: MySite<br
/> Path prefix: mysite (this is only a placeholder and won&#8217;t be needed later)<br
/> Language domain: [blank]<br
/> Direction: Left to right</li><li>Click the Add custom language</li><li>Go to Site Configuration -&gt; Languages and choose en-MySite as the default language, click Save Configuration</li></ol><p>To make the faux translations:</p><ol
class="default_list"><li>Go to Site Building -&gt; Translate Interface -&gt; Search</li><li>Search for a particular string by something it contains, say, &#8220;username&#8221;.</li><li>Find your string in the search results and click edit. Enter your translation and submit it.</li><li>Repeat for other strings as necessary.</li></ol><h3>Tx</h3><p>So, we end up with a clean faux translation of the default strings into your application-specific copy.</p> ]]></content:encoded> <wfw:commentRss>http://joesong.com/2010/03/overriding-drupal-login-form-messages-via-localization/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>On abandoning the Zend Framework (for now)</title><link>http://joesong.com/2009/02/on-abandoning-the-zend-framework-for-now/</link> <comments>http://joesong.com/2009/02/on-abandoning-the-zend-framework-for-now/#comments</comments> <pubDate>Fri, 27 Feb 2009 20:20:18 +0000</pubDate> <dc:creator>josephsong</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://joesong.com/?p=431</guid> <description><![CDATA[So, I thought I&#8217;d give the Zend Framework a try. Please, keep in mind that this was a short trial and the real reason for leaving the framework was a specific unmet need for intermediate LDAP support. I plan on coming back to it and giving it a fuller run but I have to go [...]]]></description> <content:encoded><![CDATA[<p>So, I thought I&#8217;d give the <a
href="http://framework.zend.com/" target="_blank">Zend Framework</a> a try. Please, keep in mind that this was a short trial and the real reason for leaving the framework was a specific unmet need for intermediate LDAP support. I plan on coming back to it and giving it a fuller run but I have to go elsewhere for the moment.</p><p>SO, THIS IS A QUICK IMPRESSION.</p><p>What I liked:</p><ul><li>lots of flexibility in names and paths</li><li>seemed like reliably tested code</li><li>default directory structure leaves public in top level of project</li><li>LOVED, absolutely LOVED that the project manager replied to my twitter instantly</li></ul><p>What I disliked:</p><ul><li>does not ship with a full default directory structure (Rend fixes this, but still). Give me a suggestion and I can change it if the default doesn&#8217;t work for me</li><li>minimal LDAP support (auth only). More is coming I know (its in the incubator), and I have a very specific need for it. I&#8217;m not going to hold it against ZF. But a guy&#8217;s gotta search when he wants to find people at work.</li><li>documentation. A long list of anchors in a longer page? Really? Plus, where, exactly, are the 500 examples in 6 languages?</li><li>there is a lot of typing. Maybe I was following the wrong tutorial but I have to tell the model that the $_POST['title'] should go into the title column when I insert the row? I feel like it could match those for me.</li><li>mixed Camel_And_Deliminated variable names. This is a nitpicky thing, but typing an underscore followed by a capital letter is hard for my hands for some reason.</li><li>error messaging. If I had used the framework before I would probably find the error messaging tight and focused. But, since I had not, it took a bit to figure out what was causing my errors. Probably a shortcoming in my brain architecture, but the errors didn&#8217;t seem obvious.</li><li>Google support. This is out of Zend&#8217;s control I know, but I was searching and searching for zend tutorial, zend framework tutorial, zend connect to database, etc. and only found a couple of tutorials that were up-to-date and well written. One was Zend&#8217;s quickstart (which only has sqlite) and the other was <a
href="http://akrabat.com/zend-framework-tutorial/" target="_blank">here</a> (which is the one I followed for db stuff).</li></ul><p>So, there it is.</p> ]]></content:encoded> <wfw:commentRss>http://joesong.com/2009/02/on-abandoning-the-zend-framework-for-now/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: joesong.com @ 2010-07-31 09:31:15 -->