Tagged: x
-
AuthorPosts
-
February 15, 2017 at 4:50 pm #1372602
powerperroParticipantHi,
I followed all the steps defined here but I didn’t managed to make it work…
https://community.theme.co/kb/translation/
Created 2 files of translated strings (attached) and uploaded both to this folder on my server public_html/wp-content/themes/x-child/languages
After I added the code in the functions.php (also attached). Maybe this is not placed correctly in the file?
Then I have configured the WP is ES (like the screenshot attached).
Could you please help me?
Site: http://www.powerperro.com
Wordpress version: 4.7.2
Xversion: 4.6.4
Cornerstone version: 1.3.3
Thanks a lot.February 15, 2017 at 4:52 pm #1372607
powerperroParticipantMay I paste the funtions.php code below since it does not allow me to upload it.
I think translation strins (.po .mo are not needed).
Let me know.<?php
// =============================================================================
// FUNCTIONS.PHP
// —————————————————————————–
// Overwrite or add your own custom functions to X in this file.
// =============================================================================// =============================================================================
// TABLE OF CONTENTS
// —————————————————————————–
// 01. Enqueue Parent Stylesheet
// 02. Additional Functions
// =============================================================================// Enqueue Parent Stylesheet
// =============================================================================add_filter( ‘x_enqueue_parent_stylesheet’, ‘__return_true’ );
// Additional Functions
// =============================================================================add_action( ‘after_setup_theme’, ‘load_child_language’ );
function load_child_language() {
load_child_theme_textdomain( ‘__x__’, get_stylesheet_directory() . ‘/languages’ );
}February 16, 2017 at 12:53 am #1373117
Rue NelModeratorHello There,
Thanks for writing in! Please rename your translation files. It should be:
__x__-es_ES.po __x__-es_ES.moPlease let us know if this works out for you.
February 22, 2017 at 1:07 pm #1381727
powerperroParticipantIt worked!
Thanks a lot for your help.
Best.February 22, 2017 at 6:56 pm #1382120
FriechModeratorWe’re delighted to assist you with this.
Cheers!
February 23, 2017 at 6:15 am #1382772
powerperroParticipantSorry but I found something related that I’m not able to fix.
I have a portfolio page that has a button with the text “Sort Portfolio”.
I changed this string (ID 1436) in the theme, but is not showing the ES translation in the page.
I need to change it in other place?
Thanks a lot.February 23, 2017 at 6:20 pm #1383588
RadModeratorHi there,
It will only work if you have application or plugin that will utilize the TEXT ID based translation. Example, https://wpml.org/documentation/support/creating-multilingual-wordpress-themes/language-dependent-ids/
If you have similar plugin then I like to check it 🙂
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks!
March 5, 2017 at 5:25 am #1394964
powerperroParticipantThis reply has been marked as private.March 5, 2017 at 6:43 pm #1395445
RadModeratorHi there,
You should install WPML plugin and not the WPML Widgets, I think it’s just an addon for WPML.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1372602 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
