New Landing How can we help? Themeforest Theme Support Neighborhood Your translation file doesn't support the multiple textdomains

Viewing 15 posts - 1 through 15 (of 36 total)
  • #110814
    tt1011
    Member
    Post count: 67

    I need to translate some text in the theme, but coding style is giving this warning and now allow me to on the theme files:

    Your translation file doesn’t support the multiple textdomains in one translation file extension.
    Please re-scan the related source files at the overview page to enable this feature.

    any ideas how to fix>?

    #111371
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You placed a similar topic a few months ago.
    http://support.swiftideas.net/forums/topic/codestyling-localization-access-error/

    Can you check file permissions in the wordpress directories?

    This is an old topic but can be related.
    https://wordpress.org/support/topic/codestyling-localization

    -Rui

    #111579
    tt1011
    Member
    Post count: 67

    I checked the file permissions, owner and group are web user, so that is fine too.

    I think the problem is, each time I upgrade the theme, I lose a file I am adding to the directory:

    themes/neighborhood/includes/swift-framework/meta-box/lang

    where should i be placing the override for this in my child theme? I need a es_PE file in there

    And by the way, there is no en_US file in there, so that is causing issues too.

    #112295
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    can you try to add the code below to you child theme function.php

    
    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    function my_child_theme_setup() {
        load_child_theme_textdomain( 'swiftframework', get_stylesheet_directory() . '/languages' );
    }

    You will need to create a folder called “languages” inside the child theme an place their your .po and .mo files

    -Rui

    #115971
    tt1011
    Member
    Post count: 67

    That function white screened the live site, i see where you got it from (http://codex.wordpress.org/Function_Reference/load_child_theme_textdomain)

    i need to figure this out, because each update to the theme overrides my edits.
    And, to make matters worse, your naming convention of the mo and po files is very generic en_EN so it’s hard to figure out what is for the theme and what is for the framework.

    #115977
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    That should work. Other customers did it without any problem.
    Can you attach the functions.php inside a zip file.

    Did you also create the directory and placed the language files inside?

    WordPress Codex is the bible to solve problems in WordPress

    -Rui

    #115988
    tt1011
    Member
    Post count: 67
    This reply has been marked as private.
    #115993
    tt1011
    Member
    Post count: 67
    This reply has been marked as private.
    #115994
    tt1011
    Member
    Post count: 67
    This reply has been marked as private.
    #116000
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Notice you gave a different name for the domain text. Guess you didn’t replaced swiframework by the other name in the rest of the parent theme?

    -Rui

    #116001
    tt1011
    Member
    Post count: 67
    This reply has been marked as private.
    #116104
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779
    This reply has been marked as private.
    #116129
    tt1011
    Member
    Post count: 67
    This reply has been marked as private.
    #116130
    tt1011
    Member
    Post count: 67
    This reply has been marked as private.
    #116131
    tt1011
    Member
    Post count: 67
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 36 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register