New Landing How can we help? Atelier Child-theme translation

Viewing 15 posts - 1 through 15 (of 19 total)
  • Posted in: Atelier
  • #179009
    NMillard
    Member
    Post count: 115

    I’ve tried to put my translated language files into the child-theme, but it doesnt seem to work. I’ve created a folder called “language” inside the child-theme folder and placed the da_DK files there.

    Maybe I should send you my translations so that you can include them in the updates?

    #179464
    saylife
    Member
    Post count: 161

    Hi!
    I also tried to use the code in the file functions.php,but nothing works.

    * Translations can be filed in the /language/ directory.
     */
    function my_child_theme_setup() {
        load_child_theme_textdomain( 'atelier-child', get_stylesheet_directory() . '/language' );
    }
    add_action( 'after_setup_theme', 'my_child_theme_setup' );

    And this code does not work

    add_action( 'after_setup_theme', 'my_translation_child_theme_setup' );
     
    function my_translation_child_theme_setup() {
        load_child_theme_textdomain( 'atelier-child', get_stylesheet_directory() . '/language' );
    }

    What you need to do to work ?

    #179778
    cmenard
    Member
    Post count: 2

    Hi !
    Same problem… Any solution ?

    #179905
    saylife
    Member
    Post count: 161

    Hi!

    Any ideas ?

    Thoughts ?

    #180218
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you guys try to change it from language to languages ?
    Thanks

    -Rui

    #180228
    saylife
    Member
    Post count: 161

    Not working ,option.
    But I don’t understand why,if your folder is called “language”?

    Can you guys try to change it from language to languages ?
    Thanks
    -Rui

     

    #180231
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I forgot to say to rename the directory folder from language to languages.
    -Rui

    #180234
    saylife
    Member
    Post count: 161

    Does not work.

    I changed the name of the folder in the main atelier , and the atelier-child.
    And separately.

    Does not work.

    #180923
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    @cmenard, @NMillard
    Can you guys provide admin access?


    @saylife

    Already have your access. will check it.

    -Rui

    #180962
    saylife
    Member
    Post count: 161
    This reply has been marked as private.
    #181076
    NMillard
    Member
    Post count: 115

    Access to WP or FTP?

    #181293
    saylife
    Member
    Post count: 161

    I did this,but didn’t help((((

    /* LOAD THEME LANGUAGE
    	================================================== */
    	/*
    	*	You can uncomment the line below to include your own translations
    	*	into your child theme, simply create a "language" folder and add your po/mo files
    	*/
    	
    	load_theme_textdomain('swiftframework', get_stylesheet_directory_uri().'/languages');
    	
    #181323
    saylife
    Member
    Post count: 161

    Guys help , I my brain blew up , don’t know what to do.
    Kyle?

    #181970
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi guys,

    Just going to test this here to confirm the working code.

    – Ed

    #181972
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    The correct code is simply:

    
    load_theme_textdomain('swiftframework', get_stylesheet_directory().'/language');
    

    Hope that helps.

    – Ed

Viewing 15 posts - 1 through 15 (of 19 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