New Landing How can we help? Cardinal Translation issue

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Cardinal
  • #119972
    VdEW
    Member
    Post count: 73

    Hi,

    I need help to change the translation for some text areas.

    I want to change the text in the search field after writing something that is not in the content.(see ATTACHMENT)

    I find this Text area in wp-content > themes > cardinal > language > de_DE.po

    and changed it to something else like I do normaly with POEDIT but nothing changed after uploading.

    Where to find the right file ore how to change this part?

    Thanks for support!

    #119975
    VdEW
    Member
    Post count: 73
    This reply has been marked as private.
    #120218
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Not sure if I understand correctly your request. In the original code the sentences that need to be translated are

    “No results”
    “No search results could be found, please try another query.”

    And can be found also in the original code in cardinal\swift-framework\core\sf-header.php

    
    $search_results_ouput .= '<h6>'.__("No results", "swiftframework").'</h6>';
    $search_results_ouput .= '<p>'.__("No search results could be found, please try another query.", "swiftframework").'</p>';
    

    Are you editing the de_DE.po with Poedit and generate the .mo file and upload to the server again?

    Also check this additional documentation.

    Translation

    -Rui

    #120439
    VdEW
    Member
    Post count: 73

    Hi Rui,

    yes I edit the de_De.po with Poedit and generate the .mo file and uploaded it to the server. That is how it works normaly. Am I right?

    If I change it directly in the php. is it ok or can this cause some kind of issue?

    Thank you for the additional documentation! I tried wpml before (I think with Dante) but I prefer using Poedit.

    #120479
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Yes, you are doing it right.

    The only problem of changing it in the source file is when you need to update the theme.

    Guess you translate this lines
    https://www.dropbox.com/s/m5texsd6f96tdw6/translation_problem.png?dl=0

    Also realize you have a cache plugin and a CDN, maybe the site is still getting an older cached version. Try to purge all the caches and deactivate the cache plugin just for testing.

    -Rui

    #121134
    VdEW
    Member
    Post count: 73

    Hi Rui,

    the .po translation is now working like it should.

    Thank you!

    #121181
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. No problem.
    -Rui

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