Search tours in Spanish

Themes Forums Midway WordPress Theme Search tours in Spanish

  • Author
    Posts
  • #303

    independents
    Member

    Hi Themex,

    How can I change in the home page, the words of the search  tours.  I want to change the words -All destination, All types, Departures date and Arrival date and write in Spanish this words. Thank you!!

    #304
    themex
    themex
    Member

    Usually i use POEdit for translation
    http://www.poedit.net/

    1. Open midway/languages/en_US.po file in POEdit
    2. Then change words in the right column.
    3. Then save this file and click generate .mo file (in the same folder).
    4. Then rename en_US.mo to es_ES.mo if your wordpress inSpanish for
    example (es_ES is spanish language code).
    5. That’s all.

    You can translate any WP theme in this way.

    #368

    gotg
    Member

    Hi,

    What would the proper function be to add the en_US.po file to a Midway child theme?

    I’ve tried the function below but it does not work.

    My directory structure is Child Theme > languages

    add_action( ‘after_setup_theme’, ‘my_child_theme_setup’ );

    function my_child_theme_setup(){
    load_child_theme_textdomain( ‘my_child_theme’, get_template_directory() . ‘/languages’ );
    }

     

    #375
    themex
    themex
    Member

    Hi, you don’t need to load texdomain to the child theme – you can load just style.css for customizing and all php code will be run from the parent theme and will be translated.

    #666

    Insightds
    Member

    Hi I tried to follow the instructions above downloaded the program made translate ect.

    Then I updated the file to the server with the following lines however the website is not changing.

    #. Text in function
    #: midway/framework/functions.php:95
    msgid “day”
    msgstr “hour”

    #. Text in function
    #: midway/framework/functions.php:95
    msgid “days”
    msgstr “hours”

    Cheers

    Will

    #669
    themex
    themex
    Member

    Do you use wordpress in english? Make sure that you’ve not renamed the files then, if your language code is en_US.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.