New Landing How can we help? Atelier Problem with translation on the new version

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #327745
    gbvaz
    Member
    Post count: 28

    Hello,

    I have installed the new version of the theme.
    Everything is working fine, but the translation file that I had translated which is pt_BR was overwritten by the new version.

    Now I remembered that everytime the theme will get an update, I will have to upload my translated file again.

    I would like to know if is possible to put my translated “po” and “mo” files in any WordPress folder like in the child theme folder or something, so I don’t need to upload my translate file every time the theme is updated.

    thank you,
    Regards

    #328151
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    1) Please install and activate the supplied child theme, inside the child theme functions.php file locate this:

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

    Replace with:

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

    2) Create a new folder in your child theme directory /language/.

    3) Add your .mo and .po files to the new child theme language folder.

    #328261
    gbvaz
    Member
    Post count: 28

    Hello David,

    Thanks for your reply.

    It didn’t worked at first. Does it need to have a specific name?
    My files are called “pt_BR.po” and “pt_BR.mo”.

    Is that correct?

    Thanks

    #328278
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    yes that is correct if that’s what you have in WPLANG.
    Check if the directory name you created is correct.

    -Rui

    #328504
    gbvaz
    Member
    Post count: 28

    That solved the problem
    Thanks

    #328507
    David Martin – Support
    Moderator
    Post count: 20834

    Glad to help you out!

    If you have found the theme/support useful, we appreciate it if you can leave feedback on our item if you have the time as it really helps us out.

    Thanks,
    David

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