<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Thematic Child Theme Language</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 22 May 2013 02:54:21 +0000</pubDate>

<item>
<title>helgatheviking on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26819</link>
<pubDate>Fri, 04 May 2012 20:43:19 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">26819@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;sure thing.  wish i had read your post a bit more closely the first time.... could've solved that sooner.
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26818</link>
<pubDate>Fri, 04 May 2012 20:20:36 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">26818@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Yes, that is right :))&#60;/p&#62;
&#60;p&#62;I have lost almost a day with it, but at least I have learned something. :)&#60;/p&#62;
&#60;p&#62;Thank you.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26812</link>
<pubDate>Fri, 04 May 2012 13:06:47 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">26812@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;sounds like a facepalm moment  :)&#60;/p&#62;
&#60;p&#62;this should work to echo&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php _e(&#38;#39;by&#38;#39;, &#38;#39;aeryn&#38;#39;)); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and to return:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php __(&#38;#39;by&#38;#39;, &#38;#39;aeryn&#38;#39;)); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>bogh on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26810</link>
<pubDate>Fri, 04 May 2012 07:50:32 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">26810@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;That one is working too, my problem was on the php line, I haven't used sprintf/printf(__() or _e()) correctly, all I needed for this was _e().&#60;/p&#62;
&#60;p&#62;I use it like that now:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;load_child_theme_textdomain(&#38;quot;acamas&#38;quot;, STYLESHEETPATH . &#38;#39;/languages&#38;#39;);

$locale = get_locale();
$locale_file = STYLESHEETPATH . &#38;quot;/languages/$locale.php&#38;quot;;
if ( is_readable( $locale_file ) )
	require_once( $locale_file );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now it works perfectly.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26804</link>
<pubDate>Thu, 03 May 2012 21:08:26 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">26804@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;this isn't my strong suit but&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Setup the language file
add_action( &#38;#39;after_setup_theme&#38;#39;, &#38;#39;pw_child_theme_language&#38;#39; );

function pw_child_theme_language() {
	// Make theme available for translation
	// Translations can be filed in the /languages/ directory
	load_child_theme_textdomain(&#38;quot;child-theme-slug&#38;quot;, STYLESHEETPATH . &#38;#39;/admin/languages&#38;#39;);

	$locale = get_locale();
	$locale_file = STYLESHEETPATH . &#38;quot;/languages/$locale.php&#38;quot;;
	if ( is_readable( $locale_file ) )
		require_once( $locale_file );
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;is exactly how i am doing it myself... i just have yet to actually try to translate anything.  is that not working?
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26802</link>
<pubDate>Thu, 03 May 2012 19:03:23 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">26802@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks you a lot for your time, I am going to send you the acamas theme with my modifications.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26801</link>
<pubDate>Thu, 03 May 2012 18:53:25 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">26801@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;It's not a matter of the code being within a function or not, but rather if the translated string is USED by a function or ECHOED out. If your function is creating html, then you still use _e(). &#60;/p&#62;
&#60;p&#62;Sorry there's no PM function that I know of. Could you maybe send me your child theme instead? I'll see if I can troubleshoot. My email is invistruct at gmail dot com.
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26798</link>
<pubDate>Thu, 03 May 2012 17:40:13 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">26798@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;The code is in a function, so I suppose I should use just __(), but this does not display the word anymore, and _e() is displaying it but with no translation.&#60;/p&#62;
&#60;p&#62;Please send me the theme somehow, it's my only hope now, because I couldn't find any other thematic child theme with language support. Is there a way to send you a private message on this forum? so I don't post my email here :)&#60;/p&#62;
&#60;p&#62;Thanks a lot.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26797</link>
<pubDate>Thu, 03 May 2012 17:25:42 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">26797@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Heh, I'm sure I could dig it out somewhere if you really need to but it is old and not using the current thematic.&#60;/p&#62;
&#60;p&#62;Just took a closer look at your translated string. What are you using the &#60;code&#62;sprintf()&#60;/code&#62; for? If you just want to echo you can write&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;author_box_author&#38;quot;&#38;gt;&#38;lt;?php _e(&#38;#39;by&#38;#39;, &#38;#39;aeryn&#38;#39;) ?&#38;gt; &#38;lt;?php  the_author_posts_link(); ?&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;__()&#60;/code&#62; is for returning the string for a function, &#60;code&#62;_e()&#60;/code&#62; is for echoing out into (x)html pages.
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26796</link>
<pubDate>Thu, 03 May 2012 17:07:58 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">26796@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I have modified the thematic's french files and they are working just fine. But I can't make that word translatable.&#60;br /&#62;
I have tried the hooked code too, but the same answer: nothing happens.&#60;/p&#62;
&#60;p&#62;I have double checked everything for hours, I have tried with more themes, in many ways, I really don't understand what's wrong. Tried it on localhost and live site too.&#60;br /&#62;
Is not my PHP code good?&#60;/p&#62;
&#60;p&#62;With some small modifications to the PHP code, the word does not even show up.&#60;br /&#62;
The word does show up (*but does not translate) when:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php printf(__(&#38;#39;by&#38;#39;, &#38;#39;aeryn&#38;#39;)) ?&#38;gt;
or
&#38;lt;?php sprintf(_e(&#38;#39;by&#38;#39;, &#38;#39;aeryn&#38;#39;)) ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The word does NOT show up when:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php sprintf(__(&#38;#39;by&#38;#39;, &#38;#39;aeryn&#38;#39;)) ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So I am not at least sure how I should do my simple php line.&#60;/p&#62;
&#60;p&#62;Would be possible for you to send me your child theme with language support?
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26795</link>
<pubDate>Thu, 03 May 2012 16:54:56 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">26795@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;So I gather everything is in french except that single word? I.e. the thematic translation is working but not your child theme's?&#60;/p&#62;
&#60;p&#62;Double check the CHILDTHEME constant. If you give the path it needs to be the full path to your child theme, like &#60;code&#62;STYLESHEETPATH . &#38;#39;/languages&#38;#39;&#60;/code&#62; FWIW, I have used the regular load_theme_textdomain() and it worked for me.&#60;/p&#62;
&#60;p&#62;What you posted above is doing the same thing, but added to a hook. That is what I meant with my question above. You could try using that, it is a good idea in general to attach things to hooks to ensure they fire when they are supposed to. Just replace your own textdomain and make sure the path points to your languages folder (i.e. &#60;code&#62;&#38;#39;/languages&#38;#39;&#60;/code&#62; instead of &#60;code&#62;&#38;#39;/admin/languages&#38;#39;&#60;/code&#62;)
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26794</link>
<pubDate>Thu, 03 May 2012 16:18:38 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">26794@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Yes, am sure I have defined the WPLANG correctly, because the rest of the theme is translated to french.&#60;br /&#62;
wp-config.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;define(&#38;#39;WPLANG&#38;#39;, &#38;#39;fr_FR&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I have tried the method with relative paths, but no luck at all.&#60;/p&#62;
&#60;p&#62;I have also found something on here: &#60;a href=&#34;http://support.presswork.me/discussion/175/recommended-way-of-handling-translations/p1&#34; rel=&#34;nofollow&#34;&#62;http://support.presswork.me/discussion/175/recommended-way-of-handling-translations/p1&#60;/a&#62;&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;// Setup the language file
add_action( &#38;#39;after_setup_theme&#38;#39;, &#38;#39;pw_child_theme_language&#38;#39; );

function pw_child_theme_language() {
	// Make theme available for translation
	// Translations can be filed in the /languages/ directory
	load_child_theme_textdomain(&#38;quot;child-theme-slug&#38;quot;, STYLESHEETPATH . &#38;#39;/admin/languages&#38;#39;);

	$locale = get_locale();
	$locale_file = STYLESHEETPATH . &#38;quot;/languages/$locale.php&#38;quot;;
	if ( is_readable( $locale_file ) )
		require_once( $locale_file );
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But I am not sure if this does not do the same thing as my code from above.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26792</link>
<pubDate>Thu, 03 May 2012 16:07:29 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">26792@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I think you are right. I'm not an expert but it would be logical to use relative paths, so that the string is referred relative to the language file.&#60;/p&#62;
&#60;p&#62;And just for troubleshooting: you are sure you have defined WP_LANG in your config file?&#60;br /&#62;
Have you added the code to a hook or is it straight in your functions.php?
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26788</link>
<pubDate>Thu, 03 May 2012 14:04:21 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">26788@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;The files from the languages folder:&#60;/p&#62;
&#60;p&#62;aeryn.pot&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;msgid &#38;quot;&#38;quot;
msgstr &#38;quot;&#38;quot;
&#38;quot;Project-Id-Version: Aeryn\n&#38;quot;
&#38;quot;Report-Msgid-Bugs-To: \n&#38;quot;
&#38;quot;POT-Creation-Date: \n&#38;quot;
&#38;quot;PO-Revision-Date: \n&#38;quot;
&#38;quot;Last-Translator: Full Name &#38;lt;your@email.com&#38;gt;\n&#38;quot;
&#38;quot;Language-Team: \n&#38;quot;
&#38;quot;MIME-Version: 1.0\n&#38;quot;
&#38;quot;Content-Type: text/plain; charset=UTF-8\n&#38;quot;
&#38;quot;Content-Transfer-Encoding: 8bit\n&#38;quot;
&#38;quot;X-Poedit-SourceCharset: utf-8\n&#38;quot;
&#38;quot;X-Poedit-KeywordsList: __;_e\n&#38;quot;
&#38;quot;X-Poedit-Basepath: .\n&#38;quot;
&#38;quot;X-Poedit-SearchPath-0: c:\\xampp\\htdocs\\development\\wp-content\\themes\\aeryn\n&#38;quot;

#: c:\xampp\htdocs\development\wp-content\themes\aeryn/admin/admin-functions.php:367
msgid &#38;quot;by&#38;quot;
msgstr &#38;quot;&#38;quot;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;fr_FR.po&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;msgid &#38;quot;&#38;quot;
msgstr &#38;quot;&#38;quot;
&#38;quot;Project-Id-Version: Aeryn\n&#38;quot;
&#38;quot;Report-Msgid-Bugs-To: \n&#38;quot;
&#38;quot;POT-Creation-Date: \n&#38;quot;
&#38;quot;PO-Revision-Date: \n&#38;quot;
&#38;quot;Last-Translator: Full Name &#38;lt;your@email.com&#38;gt;\n&#38;quot;
&#38;quot;Language-Team: \n&#38;quot;
&#38;quot;MIME-Version: 1.0\n&#38;quot;
&#38;quot;Content-Type: text/plain; charset=UTF-8\n&#38;quot;
&#38;quot;Content-Transfer-Encoding: 8bit\n&#38;quot;
&#38;quot;X-Poedit-Language: French\n&#38;quot;
&#38;quot;X-Poedit-Country: FRANCE\n&#38;quot;
&#38;quot;X-Poedit-SourceCharset: utf-8\n&#38;quot;
&#38;quot;X-Poedit-KeywordsList: __;_e;_c\n&#38;quot;
&#38;quot;X-Poedit-Basepath: .\n&#38;quot;

#: c:\xampp\htdocs\development\wp-content\themes\aeryn/admin/admin-functions.php:367
msgid &#38;quot;by&#38;quot;
msgstr &#38;quot;du&#38;quot;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;fr_FR.mo&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;Þ•,&#38;lt;PQtTÉbyProject-Id-Version: Aeryn
Report-Msgid-Bugs-To:
POT-Creation-Date:
PO-Revision-Date:
Last-Translator: Full Name &#38;lt;your@email.com&#38;gt;
Language-Team:
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: French
X-Poedit-Country: FRANCE
X-Poedit-SourceCharset: utf-8
X-Poedit-KeywordsList: __;_e;_c
X-Poedit-Basepath: .
du&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I have a feeling that the links are wrong, I saw other themes using something like:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;quot;X-Poedit-Basepath: .\n&#38;quot;
&#38;quot;X-Poedit-SearchPath-0: .\n&#38;quot;
&#38;quot;X-Poedit-SearchPath-1: ..\n&#38;quot;

#: ../admin/admin-functions.php:367
msgid &#38;quot;by&#38;quot;
msgstr &#38;quot;&#38;quot;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thank you :)
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26786</link>
<pubDate>Thu, 03 May 2012 13:38:33 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">26786@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thank you for your reply.&#60;br /&#62;
As I said above I have POT, PO, MO, in the languages folder. (*aeryn.pot, fr_FR.po and .mo, generated with Poedit ), so I don't really know what I am missing. I will post the content of the pot &#38;#38; po files, maybe I am doing something wrong there.&#60;/p&#62;
&#60;p&#62;&#34;aeryn&#34; is the name of my thematic child theme.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26783</link>
<pubDate>Thu, 03 May 2012 12:15:44 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">26783@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;The process of adding language support to a child theme is exactly the same as for any regular theme. The parent theme will not be affected by your child theme textdomain. You seem to be doing the right thing. My only question is if/how you have generated the POT file. I think that Poedit can do this (but I don't remember exactly how).&#60;/p&#62;
&#60;p&#62;Basically, every time you add/change something you need to also update that POT file. And for every language, create the po/mo file (poedit creates the .mo automatically) and translate the strings in each. &#60;/p&#62;
&#60;p&#62;Like I said, it all looks correct to me. Are you having a problem?
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26782</link>
<pubDate>Thu, 03 May 2012 11:37:29 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">26782@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I have added this to my child theme's functions.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;// Translate, if applicable
load_child_theme_textdomain(&#38;#39;aeryn&#38;#39;, CHILDTHEME . &#38;#39;/languages&#38;#39;);

$locale = get_locale();
$locale_file = CHILDTHEME . &#38;quot;/languages/$locale.php&#38;quot;;
if ( is_readable($locale_file) )
	require_once($locale_file);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I have a language folder, with POT, PO, MO.&#60;/p&#62;
&#60;p&#62;And here is what I am trying to make translatable:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;author_box_author&#38;quot;&#38;gt;&#38;lt;?php sprintf(__(&#38;#39;by&#38;#39;, &#38;#39;aeryn&#38;#39;)) ?&#38;gt; &#38;lt;?php  the_author_posts_link(); ?&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Can someone tell me what am I doing wrong please?
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26781</link>
<pubDate>Thu, 03 May 2012 11:29:59 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">26781@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Do you know a thematic child theme with language support?&#60;br /&#62;
Maybe if I see how one is made I will answer my own question...
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Thematic Child Theme Language"</title>
<link>http://themeshaper.com/forums/topic/thematic-child-theme-language#post-26779</link>
<pubDate>Thu, 03 May 2012 08:57:08 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">26779@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I was wondering if it's possible to add language files to a thematic child theme, but without overwriting the default thematic language files.&#60;br /&#62;
Basically what I need to do is to add some words, or phrases, used on my child theme.&#60;/p&#62;
&#60;p&#62;How can I do that? Do you know a tutorial for this? Or you have a good explanation for this? ... I couldn't find a relevant answer for my question, so maybe you can help.&#60;/p&#62;
&#60;p&#62;Thanks a lot.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
