<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>WordPress Ideas &#187; Topic: Optimize i18n for plugins and themes</title>
		<link>http://wordpress.org/extend/ideas/topic/optimize-i18n-for-plugins-and-themes</link>
		<description>WordPress Ideas &#187; Topic: Optimize i18n for plugins and themes</description>
		<language>en-US</language>
		<pubDate>Wed, 23 May 2012 03:59:42 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://wordpress.org/extend/ideas/rss/topic/optimize-i18n-for-plugins-and-themes" rel="self" type="application/rss+xml" />

		<item>
			<title>Nikolay Bachiyski on "Optimize i18n for plugins and themes"</title>
			<link>http://wordpress.org/extend/ideas/topic/optimize-i18n-for-plugins-and-themes#post-16484</link>
			<pubDate>Mon, 29 Mar 2010 08:24:59 +0000</pubDate>
			<dc:creator>Nikolay Bachiyski</dc:creator>
			<guid isPermaLink="false">16484@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<p>Plugins can choose where to put their translations. The convention is to use <code>languages</code> sub-folder.</p>
<p>There is more information on:</p>
<p><a href="http://codex.wordpress.org/I18n_for_WordPress_Developers" rel="nofollow">http://codex.wordpress.org/I18n_for_WordPress_Developers</a></p>
<p>On the textdomain issue: all the solutions we have tried have been too hackish and unstable. The lack of namespaces disturbs any clean way to do this.
</p>]]></description>
					</item>
		<item>
			<title>the-jedi on "Optimize i18n for plugins and themes"</title>
			<link>http://wordpress.org/extend/ideas/topic/optimize-i18n-for-plugins-and-themes#post-4966</link>
			<pubDate>Mon, 10 Mar 2008 17:41:36 +0000</pubDate>
			<dc:creator>the-jedi</dc:creator>
			<guid isPermaLink="false">4966@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<p>I think i18n support for Wordpress external elements should be clarified to ease their maintain and contributions.</p>
<p>Here is a proposal of structure :<br />
+ wp-content/<br />
+- i18n/<br />
-- catalog.pot<br />
-- fr_FR.mo</p>
<p>+- plugins/<br />
+-- i18n/<br />
---- provider/<br />
----- catalog.pot<br />
----- fr_FR.mo<br />
+-- sample-plugin/<br />
+--- i18n/<br />
----- catalog.pot<br />
----- fr_FR.mo<br />
---- README.txt<br />
---- sample-plugin.php</p>
<p>+- themes<br />
+-- sample-theme/<br />
+--- i18n/<br />
----- catalog.pot<br />
----- fr_FR.mo</p>
<p>* wp-content/i18n<br />
Contains all translation related to WP (the equivalend of the languages/ directory)<br />
* plugins/i18n<br />
Contains all global translations for providers (actually located in plugins/provider-fr_FR.mo for example)<br />
* plugins/sample-plugin/i18n<br />
Contains translations specific to a plugin<br />
* themes/sample-theme/i18n<br />
Contains translations specific to a theme</p>
<p>It would be good to complete that with a textdomain_namespace('provider/; ./') to implicitly use i18n files located in i18/provider/{locale_LOCALE}.mo} and sample-plugin/i18n/{locale_LOCALE}.mo}. The goal is to avoid usage of __('Text', 'textdomain') which is a real pain.</p>
<p>i18n files at the root of the plugin directory is not esthetic and difficult to explain to users.</p>
<p>With that everything is coined up and can give ideas to introduce some conventions.
</p>]]></description>
					</item>

	</channel>
</rss>

