New Landing How can we help? Themeforest Theme Support Dante Backend translation

Viewing 15 posts - 1 through 15 (of 23 total)
  • Posted in: Dante
  • #127029
    wildfox
    Member
    Post count: 58

    Hi,

    I just bought your great them and I was wondering if it is possible to translate Swift Page Builder and Meta Options. Etheir with poEdit or with WPML.
    My french client won’t be able to create content if it is in english.

    regards

    #127058
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    There is an language file for the admin located in
    cardinal\swift-framework\language

    Duplicate the english file and rename it to fr_FR.po

    Not sure if it has everything but is what we have.

    -Rui

    #127078
    wildfox
    Member
    Post count: 58

    ok… many keychains are missing so I can’t use it. Shortcodes features and infos are not translatable, what if a client doesn’t speak english? This should be internationalisable. It’s a shame.

    The only way is to modify hard coded files, it would be a mess and update a new version of the theme would not be possible if I do that.

    So no solution?

    #127100
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I understand not everything in the admin is translated but the content of the shortcodes is ready for translation. For instance if you search for “Widget title” you will find it in line 5077.

    Unfortunately only by changing the files where no translation exist.

    -Rui

    #127108
    wildfox
    Member
    Post count: 58

    Thank you for that precision.
    The theme seems to be very stable and complete now and there is no any major update since june.
    Are you planning to add new features in the coming months?

    #127111
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Will have to forward this last question for the development team.
    Thanks.

    -Rui

    #127197
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @wildfox

    Yes, we will be providing updates in the coming months.

    – Ed

    #127527
    wildfox
    Member
    Post count: 58
    This reply has been marked as private.
    #127814
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    @wildfox – of course, thank you for the contribution. Just attach a zip here and we will include it.

    Appreciate it.

    – Ed

    #128451
    wildfox
    Member
    Post count: 58

    ok, as soon as I have time to do it, I will proceed as requested.
    My pleasure 😉

    #128458
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Thanks.
    -Rui

    #135823
    wildfox
    Member
    Post count: 58

    Hi,

    I’m making a new fr_FR.pot file for my child theme containing all missing keychains (meta options for post/page).
    Everything works fine excepted for buttons.

    I’d like to get translated buttons displayed in post/page meta options tabs.

    They can be found in dante/swift-framework/meta-box/inc/fields/image-advanced.php. For example line 70:
    $i18n_title = apply_filters( 'rwmb_image_advanced_select_string', _x( 'Select or Upload Images', 'image upload', 'rwmb' ), $field );

    So I added the following code in my pot:

    #. Text in function
    #: dante/swift-framework/meta-box/inc/fields/image-advanced.php:70
    msgid "Select or Upload Images"
    msgstr "Sélectionner ou charger des images"

    It is not translated. Did I missed something?
    What about that _x, should I declare it differently?

    Regards

    #135826
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    The domain text for the example you gave is rwmb that is the meta-box framework text domain.

    what is the location file of the .mo you changed?

    -Rui

    #135854
    wildfox
    Member
    Post count: 58

    I’ve duplicate the file from dante/swift-framework/language/en_US.po, then I renamed it to fr_FR.pot so I could add all missing meta options keychains in it.
    Now the fr_FR.mo is in my child theme (child-theme/swift-framework/language/).
    Everything works fine for all meta options keychains, excepted for buttons.

    #135994
    wildfox
    Member
    Post count: 58

    Hi,

    I tried something else without success.
    I created a new pot file and placed the mo file in my child theme with that path:
    my-child-theme/swift-framework/meta-box/inc/fields
    Then I added the following function in my child theme functions.php

    function my_child_theme_setup() {
        load_child_theme_textdomain( 'swift-framework-admin', get_stylesheet_directory() . '/swift-framework/language' );
        load_child_theme_textdomain( 'rwmb', get_stylesheet_directory() . '/swift-framework/meta-box/inc/fields' );
    }
    add_action( 'after_setup_theme', 'my_child_theme_setup' );

    The first load is for Meta Options tabs content and it’s fine.
    Any help would be nice.

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