Read more and when buttons

Responsive WordPress theme suitable for Schools, Colleges or educational websites.
GK User
Tue Dec 13, 2016 1:16 pm
I have translated University WordPress Theme on two languages in english read more and when is ok so now i want for another language to change that two buttons or links can you give me short guide how to done this because i cannot do that using widgets there is only option show hide that button
User avatar
Expert Boarder

Joshua M
Tue Dec 13, 2016 10:23 pm
Hi,
I've found this article: https://www.inkthemes.com/how-to-transl ... te-plugin/ please check "Translate text in php files" section. You can use it to change your "read more" text from University/content.php file.
User avatar
Moderator

GK User
Wed Dec 14, 2016 12:40 am
So then this is hard coded text and i cannot use University.pot file so from your example where to put translated code i have this line of code in my wp-content/themes/University/content.php
<section class="summary">
<?php the_excerpt(); ?>

<a href="<?php echo get_permalink(get_the_ID()); ?>" class="btn"><?php _e('Read more...', GKTPLNAME); ?></a>
</section>
User avatar
Expert Boarder

Joshua M
Wed Dec 14, 2016 8:55 am
No, the "read more" is not hard coded, it's placed also in University.pot file, so if you have another solution please use it.
User avatar
Moderator

GK User
Wed Dec 14, 2016 2:56 pm
I just change University/languages/University.pot and nothing happens I use test like this and there is no changes testing website is cherryfree.com
#: content-audio.php:23 content-audio.php:30 content-status.php:24
#: content-status.php:31 attachment.php:31 content-aside.php:24
#: content-aside.php:31 content-video.php:25 content-video.php:32
#: content-chat.php:23 content-chat.php:30 content-gallery.php:24
#: content-gallery.php:32 content-quote.php:24 content-quote.php:31
#: content-link.php:22 content-link.php:29 content-image.php:23
#: content-image.php:30
msgid "Read moree"
msgstr "e"

#: gavern/widgets.buddypress.php:121 content-event.php:49 content-event.php:95
#: content-staff.php:48 content.php:24 content.php:28
msgid "Read moree..."
msgstr "e"
User avatar
Expert Boarder

Joshua M
Thu Dec 15, 2016 8:54 am
University.pot file should be used as a source for creating *.po and *.mo files, modifications added to University.pot directly won't translate your website. Please use i.e. Loco Translate plugin:
https://localise.biz/wordpress/plugin/beginners
User avatar
Moderator

GK User
Thu Dec 15, 2016 3:31 pm
Using Loco i get this message
Partially configured bundle

This bundle's configuration has been automatically detected, but isn't fully complete.
No translation template for the "university" text domain
One file can't be matched to a known set of strings
Advanced configuration
Import config from XML
Check config repository
Get help with this
User avatar
Expert Boarder

Joshua M
Fri Dec 16, 2016 10:37 am
Please send me a backend and FTP access, then I'll be able to check the issue.
User avatar
Moderator

Joshua M
Tue Dec 20, 2016 12:30 am
I've installed Loco Translate on your website and "read more" is translated now, please check i.e. here:
http://cherryfree.com/?cat=238
User avatar
Moderator

GK User
Thu Dec 22, 2016 12:53 pm
Thanks it works now but could you please give me short instructions how you done ti because when i try to add new language to theme, loco gives me this message:
Using Loco i get this message
Partially configured bundle

This bundle's configuration has been automatically detected, but isn't fully complete.
No translation template for the "university" text domain
One file can't be matched to a known set of strings
Advanced configuration
Import config from XML
Check config repository
Get help with this
User avatar
Expert Boarder

GK User
Thu Dec 22, 2016 1:17 pm
I just translated GK News Show Pro Read more and it shows the same translation for both languages on home page where "NEWS Bottom I" widget
User avatar
Expert Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.