Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Dante
  • #290980
    heinetz
    Member
    Post count: 63

    Hi,

    I found language files. Is it possible, to copy them to childtheme and modify translations in childtheme?

    best,
    heinetz

    #291002
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can do this without any problem. Copy the full language directory at child theme and this code only at functions.php of child theme.
    load_theme_textdomain( 'swiftframework', get_stylesheet_directory() . '/language' );
    Thanks
    Mohammad

    #291037
    heinetz
    Member
    Post count: 63

    perfect! thx

    #291045
    David Martin – Support
    Moderator
    Post count: 20834

    Thanks Mohammad

    #291263
    heinetz
    Member
    Post count: 63

    … that works for text in the content, but it doesn’t affect the Admin-Panel. I tried to translate Clients.

    is there any way to do this also?

    best,
    heinetz

    #291402
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code also at functions.php of child theme.

    load_theme_textdomain( ‘swift-framework-admin’, get_stylesheet_directory() . ‘/language’ );

    Thanks
    Mohammad

    #291459
    heinetz
    Member
    Post count: 63

    Hi Mohammad,

    thanks, that works perfect! I changed the strings in file before:

    /themes/dante/swift-framework/custom-post-types/clients-type.php

    … now it is one file less, I could not customize in my child-theme … but others ;(

    I also changed a few things (screenshots of diff attached) in:

    /themes/dante/swift-framework/page-builder/builder/shortcodes/team.php

    Just to get the most out of your theme:

    Is it possible to make the changes in my child-theme?

    best,
    heinetz

    #291514
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Have you made translation string text in team.php ?

    Thanks
    Mohammad

    #291533
    heinetz
    Member
    Post count: 63

    Sorry I’ve forgotten the attachments. There you can see what I’ve done …

    Btw. I found an error in single.php. The String “Posted by …” hasn’t been translated.

    echo sprintf(__('Posted by <span itemprop="author" class="fn">%1$s</span> on <span class="date updated">%2$s</span> in %3$s', 'swiftframework'), $post_author, $post_date, $post_categories);

    While it has been translated in single.jobs correctly I copied the snipped from there and now it works:

    echo sprintf(__('Posted by <a href="%2$s" rel="author" itemprop="author" class="fn">%1$s</a> on <span class="date updated">%3$s</span> in %4$s', 'swiftframework'), $post_author, get_author_posts_url(get_the_author_meta( 'ID' )), $post_date, $post_categories);

    beste,
    heinetz

    Attachments:
    You must be logged in to view attached files.
    #291777
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Dont make changes like this. If any text string dont translate then try to use this plugin https://wordpress.org/plugins/real-time-find-and-replace/. It will help you definitely.
    Thanks
    Mohammad

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