I would be very carefull developing my own translation solution. 
In order to efficiently manage translations you need tools to 
sort, merge, clean and version your translations. Do you really 
have the skill and resources to make and maintain all these tools 
yourself?



I am still partial to the way GNU gettext handles translations in 
for instance C and PHP. The concept is to just write your pages 
in whichever language you want, and then wrap the literal text 
strings in a function call.

An example from a PHP project I did:
<h2>Acceptable Use Policy</h2>
becomes:
<h2><?php echo gettext("Acceptable Use Policy") ?></h2>
or the shorthand:
<h2><?php echo _("Acceptable Use Policy") ?></h2>


 From this source code you generate a so called Portable Object 
with all the strings and room for the translation. See for 
instance the following translation
http://www.pgadmin.org/locale/af_ZA/LC_MESSAGES/pgadmin3_website.po

You can translate these Portable Objects in for instance poEdit 
http://www.poedit.org/screenshots.php for use you compile them to 
serialized objects (for PHP, basically removes comments and 
whitespace) or to resource bundles (for Java). If a translation 
is incomplete the untranslated string will be shown. (Using Java 
Resource Bundles an error will be thrown.)
Using these simple portable objects in CF is pretty trivial.


But my preference for this solution is just that, my preference. 
The important thing is that you choose carefully for a full 
toolchain for generating, maintaining and using your 
translations, whether that be based on gettext or resource bundles.

Jochem


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203940
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to