- This topic has 9 replies, 3 voices, and was last updated 9 years, 11 months ago by Theme Horse Support Team.
-
AuthorPosts
-
December 5, 2014 at 10:22 am #19114info39Participant
How do I change the text read more to my language in the widget Theme Horse Services?
December 8, 2014 at 5:56 am #19164Theme Horse Support TeamKeymasterHi info39,
You need to create a .po and .mo file for language translation.
Thank you!December 16, 2014 at 12:06 pm #19447info39ParticipantHi!
I have put the swedish .po and .mo files in child/languages. But it doesnt work.
Then I added new .php file with only this text:<?php
load_theme_textdomain( ‘frontier’, get_stylesheet_directory() . ‘/languages’ );
?>
But that doesnt work either. Any suggestions?
Thanks
December 17, 2014 at 5:40 am #19477Theme Horse Support TeamKeymasterHi info39,
Go to the dashboard -> setting -> general and at the last of the page, there is site language and select your language and click on save changes.
View this screenshot
http://awesomescreenshot.com/00d41ows74Hope this may help you
Thank you!December 17, 2014 at 7:20 am #19482catherinehedbergParticipantHi!
I have already set my language there to swedish.Any other suggestions?
December 17, 2014 at 11:00 am #19489Theme Horse Support TeamKeymasterHi catherinehedberg,
Just create a functions.php file inside child theme directory and copy the language folder from the parent theme and add your translation file ( .po and .mo file ),Just add this file inside functions.php
load_theme_textdomain( 'interface', get_stylesheet_directory() . '/languages' );
Then it works.
Thank you!
December 19, 2014 at 7:59 am #19548info39ParticipantHi!
Still no luck.
Now I have upgraded to pro, any changes in the code?I copied the language folder (with a .pot file) to the child folder. Then I put the .po and .mo file inside that file.
My only text in my fuctioons.php file in the child thme folder is:
<?php
load_theme_textdomain( ‘interface’, get_stylesheet_directory() . ‘/languages’ );
?>
If nothing works, can I change some code in the Theme Horse Services- widget file? Were is that located.
Thanks
December 22, 2014 at 7:52 am #19620Theme Horse Support TeamKeymasterHi info39,
If you change the code then while updating to our new version all your customisation code will be lost. So we recommended not to change the code.
Just create two file
1> style.css and
2>functions.phpUnder functions.php adding this code its correct
<?php load_theme_textdomain( 'interface', get_stylesheet_directory() . '/languages' ); ?>
and under style.css add the below code.
/* Theme Name: Interface Child Theme URI: https://www.themehorse.com Description: Interface Child customization Author: Theme Horse Author URI: Template: interface Version: 1.0.0 Tags: Text Domain: interface */ @import url("../interface/style.css");
Thank you!
December 22, 2014 at 1:26 pm #19638info39ParticipantHi!
I know I have to have a child, I have that and still no luck.
I will just try it without this widget.Thanks anyway.
December 23, 2014 at 5:47 am #19664Theme Horse Support TeamKeymasterOk Sure but i just tried here in my local server and its working fine.
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.