 independents
Subscriber
|
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!!
|
 themex
Key Master
|
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.
|
 gotg
Subscriber
|
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’ );
}
|
 themex
Key Master
|
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.
|
 Insightds
Subscriber
|
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
|
 themex
Key Master
|
Do you use wordpress in english? Make sure that you’ve not renamed the files then, if your language code is en_US.
|