Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1372602
    powerperro
    Participant

    Hi,
    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.

    #1372607
    powerperro
    Participant

    May 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’ );
    }

    #1373117
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Please rename your translation files. It should be:

    
    __x__-es_ES.po
    __x__-es_ES.mo

    Please let us know if this works out for you.

    #1381727
    powerperro
    Participant

    It worked!
    Thanks a lot for your help.
    Best.

    #1382120
    Friech
    Moderator

    We’re delighted to assist you with this.

    Cheers!

    #1382772
    powerperro
    Participant

    Sorry 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.

    #1383588
    Rad
    Moderator

    Hi 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 credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks!

    #1394964
    powerperro
    Participant
    This reply has been marked as private.
    #1395445
    Rad
    Moderator

    Hi there,

    You should install WPML plugin and not the WPML Widgets, I think it’s just an addon for WPML.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1372602 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>