<?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"

			>

	<channel>

		<title>Change child theme language &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/change-child-theme-language/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/change-child-theme-language/feed/</link>
		<description></description>
		<lastBuildDate>Wed, 29 Oct 2025 08:00:40 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6527</guid>
					<title><![CDATA[Change child theme language]]></title>
					<link>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6527</link>
					<pubDate>Sat, 18 Jan 2014 00:23:37 +0000</pubDate>
					<dc:creator>Federico H</dc:creator>

					<description>
						<![CDATA[
						<p>Hi.</p>
<p>Just purchased the X theme today and am very impressed with its capabilities and how well it functions. However, I am having an issue that I&#8217;m hoping you can help me with.</p>
<p>My website (<a href="http://puromac.com" rel="nofollow">http://puromac.com</a>) is a Spanish-language blog for a podcast. We have the language set as es_ES and it works correctly in the admin screen as well as previous themes we&#8217;ve used.</p>
<p>I noticed that, even without creating my own es_ES.po file for the X theme, many terms were translated. The translated terms appear to come from the WP core translation file.</p>
<p>Because I expected to make many changes, I created a child theme, and mirrored the path /framework/lang in the child theme directory. Then I copied the default.po file from the main theme directory into the child mirrored path, changed the name to es_ES.po and set about to translate the strings. What I wanted to do specifically is translate the string &#8220;Home&#8221;, in order to change how it appears in the breadcrumbs.</p>
<p>However, creating the language file doesn&#8217;t change any of the strings that I want to affect. Any thoughts on what I might be doing wrong?</p>
<p>Incidentally, there is at least one string that isn&#8217;t wrapped with a _e() or __() call, and so it will never get translated. The first one I can ran across is the string &#8220;Read more&#8221; which appears under blog excerpts. To translate it, I had to overwrite two functions from miscellaneous.php (x_excerpt_string and x_content_string).</p>
<p>Thanks. </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6553</guid>
					<title><![CDATA[Reply To: Change child theme language]]></title>
					<link>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6553</link>
					<pubDate>Sat, 18 Jan 2014 06:56:29 +0000</pubDate>
					<dc:creator>Kory</dc:creator>

					<description>
						<![CDATA[
						<p>Hey Federico,</p>
<p>Thanks for writing in and for your kind words! We always appreciate hearing that around here.</p>
<p>Regarding the <strong>Read More</strong> strings for the excerpt and content, we have corrected this and it will be available as a native fix in the coming update. Thank you for bringing this to our attention. It&#8217;s easy for little strings like that to fly under the radar sometime, so we&#8217;re always grateful to have a little assistance in pointing out areas that we have overlooked.</p>
<p>As for the language file issue, I&#8217;m going to have another member of our staff look into this for you as soon as he is available as he is much more experienced at translation situations like this. I will make sure that he is aware of this thread and he will respond to you as soon as possible.</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6631</guid>
					<title><![CDATA[Reply To: Change child theme language]]></title>
					<link>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6631</link>
					<pubDate>Sat, 18 Jan 2014 20:32:00 +0000</pubDate>
					<dc:creator>Federico H</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks. Glad to hear you&#8217;ve caught the Read More bug.</p>
<p>I forgot to mention that I also duplicated the default.po and default.mo files into the child theme lang directory. Not sure if that was needed, but thought it might help when I wasn&#8217;t seeing my translation come through.</p>
<p>I&#8217;ll wait to hear back on the language issue.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6705</guid>
					<title><![CDATA[Reply To: Change child theme language]]></title>
					<link>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6705</link>
					<pubDate>Sun, 19 Jan 2014 10:19:04 +0000</pubDate>
					<dc:creator>Rubin</dc:creator>

					<description>
						<![CDATA[
						<p>Hey Federico,</p>
<p>what plugin are you using for translation your site? WPML? You normally should not need the default.po file after you&#8217;ve created a translation of that template file to your own native language. So you only use it as a blueprint to translate all the values into your language and then you use a plugin like WPML to utilize it. What surprises me is that you&#8217;ve said that it got translated automatic because normally you have to translate all the strings on your own. Let me know what you&#8217;ve did exactly so I can recreate your steps and look into it. Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6740</guid>
					<title><![CDATA[Reply To: Change child theme language]]></title>
					<link>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6740</link>
					<pubDate>Sun, 19 Jan 2014 15:48:17 +0000</pubDate>
					<dc:creator>Federico H</dc:creator>

					<description>
						<![CDATA[
						<p>Hi.</p>
<p>Thanks for getting back to me.</p>
<p>Regarding the automatic translation, what I mean is that a few places look like they are using WP&#8217;s translation file. For example, the dates which appear at the top of posts are in Spanish, as is the text in the comments area which normally reads &#8220;Leave a comment&#8221; (on my site it reads &#8216;Deja un comentario&#8217;). However, most strings are not being translated, such as the word &#8220;Home&#8221; in the breadcrumbs and &#8220;Search&#8221; in the search widget.</p>
<p>I&#8217;m not using a plugin at all. Perhaps that&#8217;s my problem. 🙂</p>
<p>I thought that, as with my previous themes, I could just place corresponding po and mo files in the theme&#8217;s language directory, name them correctly, and provide my translation by updating the message string (ex: msgid &#8220;Search&#8221; msgstr &#8220;Buscar&#8221;). Do child themes work differently and require a language plugin?</p>
<p>In the meantime, I&#8217;ll remove the default files from my child theme directory.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6743</guid>
					<title><![CDATA[Reply To: Change child theme language]]></title>
					<link>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6743</link>
					<pubDate>Sun, 19 Jan 2014 16:13:19 +0000</pubDate>
					<dc:creator>Rubin</dc:creator>

					<description>
						<![CDATA[
						<p>Hey Federico,</p>
<p>since we are not providing a spanish translation out of the box you have to use the <strong>default.po</strong> and translate it yourself into spanish and then use it. The best thing to start is getting poEdit or a similar program that can open .po files. Then you open our default.po file and start translating it into your own language. Once you&#8217;ve done that you save it as <strong>es_ES.po</strong> in the same folder <strong>/framework/lang/</strong>.</p>
<p>Once you&#8217;ve done that you open your wp-config.php file in your WordPress root folder and look for:</p>
<pre class="prettyprint">define('WPLANG', '');></pre>
<p>and replace it with:</p>
<pre class="prettyprint">define('WPLANG', 'es_ES');</pre>
<p>Now your theme should be fully translated.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6751</guid>
					<title><![CDATA[Reply To: Change child theme language]]></title>
					<link>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6751</link>
					<pubDate>Sun, 19 Jan 2014 16:59:37 +0000</pubDate>
					<dc:creator>Federico H</dc:creator>

					<description>
						<![CDATA[
						<p>Hi.</p>
<p>Thank you for your help. With your message as a guide, I figured out what was wrong with my set up. To help other developers with the same issue, I&#8217;ll summarize what I did.</p>
<ol>
<li>We already had WPLANG set to es_ES, which is why the admin interface and other parts of the site appeared in Spanish, so that wasn&#8217;t part of the problem.</li>
<li>I duplicated <strong>default.po</strong> and renamed the file <strong>es_ES.po</strong>.</li>
<li>Then I used poEdit to edit the file. I had tried this before, but the latest version of poEdit (1.6) was unusable on my Mac because it crashed when I tried to open any file. So, I got version 1.5.7 and that worked without crashing.
<ul>
<li>By the way, <strong>.po</strong> files are just text files so you could use a regular text editor to translate them. However, <strong>.mo</strong> files seem to have special characters in them and are built differently. poEdit properly creates a matching .mo file. I read an incorrect blog post that said I could just duplicate the .po file and rename it with a &#8220;.mo&#8221; extesion. I&#8217;m sure this was the reason my translation wasn&#8217;t working.</li>
</ul>
</li>
<li>I placed the new es_ES.po and es_ES.mo files in the <strong>parent&#8217;s</strong> /framework/lang directory. When my translation wasn&#8217;t working, I mistakenly thought that I needed to mirror the lang directory under the child theme.</li>
</ol>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6756</guid>
					<title><![CDATA[Reply To: Change child theme language]]></title>
					<link>https://theme.co/archive/forums/topic/change-child-theme-language/#post-6756</link>
					<pubDate>Sun, 19 Jan 2014 17:57:10 +0000</pubDate>
					<dc:creator>Rubin</dc:creator>

					<description>
						<![CDATA[
						<p>Hey Federico,</p>
<p>thanks for that explanation and great that everything seems to work now! If you need anything else let me know!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-child-theme-language/#post-15179</guid>
					<title><![CDATA[Reply To: Change child theme language]]></title>
					<link>https://theme.co/archive/forums/topic/change-child-theme-language/#post-15179</link>
					<pubDate>Mon, 17 Feb 2014 16:41:01 +0000</pubDate>
					<dc:creator>Thomas S</dc:creator>

					<description>
						<![CDATA[
						<p>For those who like to have the localized .po file in their child-theme directory:</p>
<p>1. create your localized .po and .mo files and save them in: child-theme-dir/lang/de_DE.po<br />
2. edit the child-theme´s function.php file and add the following lines at the beginning:</p>
<pre><code>add_action( &#039;after_setup_theme&#039;, &#039;my_child_theme_setup&#039; );
function my_child_theme_setup() {
    load_child_theme_textdomain( &#039;__x__&#039;, get_stylesheet_directory() . &#039;/lang&#039; );
}</code></pre>
<p>That´s the recommend way by the <a href="http://codex.wordpress.org/Function_Reference/load_child_theme_textdomain" rel="nofollow">wordpress codex</a>.</p>
<p>Hope that helps.<br />
Thomas</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-child-theme-language/#post-15193</guid>
					<title><![CDATA[Reply To: Change child theme language]]></title>
					<link>https://theme.co/archive/forums/topic/change-child-theme-language/#post-15193</link>
					<pubDate>Mon, 17 Feb 2014 17:05:26 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Thank you for the tip Thomas. 🙂</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

