button name

Responsive WordPress theme suitable for Schools, Colleges or educational websites.
GK User
Tue Oct 21, 2014 2:33 pm
how to change the button name "READ MORE ..." to "+ INFORMAÇÕES..."
User avatar
Senior Boarder

GK User
Tue Oct 21, 2014 10:18 pm
Hello,

Which read more exactly? From the News Show Pro widget, category view, post listings? Could you provide an URL with this "read more" button? And do you want to translate all theme texts or only this word?
User avatar
Moderator

GK User
Tue Oct 21, 2014 11:03 pm
like to translate all texts theme
User avatar
Senior Boarder

GK User
Wed Oct 22, 2014 8:00 am
User avatar
Moderator

GK User
Wed Oct 22, 2014 3:59 pm
Wonder, could do translations, but the locations featured in the picture are not translated

Another help, it is possible to change the date, instead of 10:00 pm to 22:00?
User avatar
Senior Boarder

GK User
Thu Oct 23, 2014 9:30 am
Did you change the wordpress language? Because names of the months should be translated. Regarding the "When" word it's from News Show Pro plugin, so you should also translate this plugin (pot file is also included).

If you want to change time format, please replace this fragment from University/content-event.php file
Code: Select all
<span class="gk-event-hours">
                 <time datetime="<?php echo $date_start->format('G:i'); ?>" class="gk-event-time-start"><?php echo $date_start->format('g:i a'); ?></time> -
                 <time datetime="<?php echo $date_end->format('G:i'); ?>" class="gk-event-time-end"><?php echo $date_end->format('g:i a'); ?></time>
                </span>

into
Code: Select all
<span class="gk-event-hours">
                 <time datetime="<?php echo $date_start->format('G:i'); ?>" class="gk-event-time-start"><?php echo $date_start->format('G:i'); ?></time> -
                 <time datetime="<?php echo $date_end->format('G:i'); ?>" class="gk-event-time-end"><?php echo $date_end->format('G:i'); ?></time>
                </span>
User avatar
Moderator

GK User
Thu Oct 23, 2014 4:57 pm
Follow as informed me, however it was not possible to translate and change the dates, the rest of the site were changed, only those fields as image, it was not possible to translate.

My website is: www.dgson.info
User avatar
Senior Boarder

GK User
Fri Oct 24, 2014 8:41 am
Please edit content-event.php file and replace this fragment:

Code: Select all
$date_start = new DateTime(get_post_meta( $post->ID, 'gkevent_date_start', true ));
$date_end = new DateTime(get_post_meta( $post->ID, 'gkevent_date_end', true ));
$counter_start = new DateTime(get_post_meta( $post->ID, 'gkevent_counter_start', true ));

with:
Code: Select all
$date_start = new DateTime(get_post_meta( $post->ID, 'gkevent_date_start', true ));
$date_end = new DateTime(get_post_meta( $post->ID, 'gkevent_date_end', true ));
$counter_start = new DateTime(get_post_meta( $post->ID, 'gkevent_counter_start', true ));
$datemonth_start = $wp_locale->get_month($date_start->format('m') );
$datemonth_end = $wp_locale->get_month($date_end->format('m') );


and this one:
Code: Select all
<span class="gk-event-period">
                <time datetime="<?php echo $date_start->format('d-m-Y'); ?>" class="gk-event-date-start"><?php echo $date_start->format('d F Y'); ?></time> -
                <time datetime="<?php echo $date_end->format('d-m-Y'); ?>" class="gk-event-date-end"><?php echo $date_end->format('d F Y'); ?></time>
               </span>

with:
Code: Select all
<span class="gk-event-period">
                <time datetime="<?php echo $date_start->format('d-m-Y'); ?>" class="gk-event-date-start"><?php echo $date_start->format('j ') . $datemonth_start . $date_start->format(' Y '); ?>
                </time> -
                <time datetime="<?php echo $date_end->format('d-m-Y'); ?>" class="gk-event-date-end"><?php echo $date_end->format('j ') . $datemonth_end . $date_end->format(' Y '); ?></time>
               </span>


I'll add these improvements in the next theme update, regarding other things like "when" word, like I said it's from News Show Pro plugin, not the theme files, so you should translate the plugin, or change it directly in wp-content/plugins/gk-nsp directory.
User avatar
Moderator

GK User
Fri Oct 24, 2014 11:53 am
Please change also this line at the beginning:
Code: Select all
global $gk_tpl;

into:
Code: Select all
global $gk_tpl, $wp_locale;
User avatar
Moderator

GK User
Sat Oct 25, 2014 4:36 am
I made the changes, however the page went blank and exhibited no content
User avatar
Senior Boarder

GK User
Mon Oct 27, 2014 8:08 am
If you have blank/white page, probable made some mistakes, you can send me a PM with FTP access to your website, then I'll be able to check it exactly.
User avatar
Moderator

GK User
Mon Oct 27, 2014 2:07 pm
Send the access data via private message.
User avatar
Senior Boarder

GK User
Mon Oct 27, 2014 3:34 pm
Now should be ok, please check and let me know.
User avatar
Moderator

GK User
Mon Oct 27, 2014 3:46 pm
Perfect, thank you so much for your help and support, God bless you more and more.
User avatar
Senior Boarder

GK User
Mon Oct 27, 2014 7:08 pm
I am not able to locate the files to translate these two buttons on the main page
User avatar
Senior Boarder

GK User
Mon Oct 27, 2014 7:38 pm
I'm unable to translate this button also
User avatar
Senior Boarder

GK User
Tue Oct 28, 2014 8:07 am
These buttons (both) are from News Show Pro plugin, wp-content/plugins/gk-nsp so you should translate this plugin (pot file is included in languages directory).
User avatar
Moderator

GK User
Tue Oct 28, 2014 2:37 pm
I made the changes in the translation file as shown previously, but this is not working, inslusive the caption "More news" does not exist in the translation file
User avatar
Senior Boarder

GK User
Tue Oct 28, 2014 8:10 pm
Please download and update your wp-content/plugins/gk-nsp directory, because I've updated langauge file recently:
https://github.com/GavickPro/GK-News-Show-Pro

Regarding the "More news" - you can change this text in your Dashboard, News Show Pro settings -> Link format tab and "Link text" option.
User avatar
Moderator

GK User
Tue Oct 28, 2014 10:40 pm
I copied and pasted all the files from GK-News-Show-Pro "gk-nsp" folder re-did the translations but the site still appearing "Read more" ...

Sorry for the inconvenience, which is missing only this button to leave my site ready
User avatar
Senior Boarder

GK User
Wed Oct 29, 2014 7:30 am
Could you send me a PM with FTP access again? I'll try to help.
User avatar
Moderator

GK User
Wed Oct 29, 2014 2:16 pm
data sent in a private message
User avatar
Senior Boarder

GK User
Thu Oct 30, 2014 8:42 am
Your langauge files should have names: gk-nsp-pt_BR.mo and gk-nsp-pt_BR.po. I've changed filename, pleaser save your NSP widget and check the button texts.
User avatar
Moderator

GK User
Thu Oct 30, 2014 3:38 pm
Perfect, thank you so much once again, now everything is ok. God bless you.
User avatar
Senior Boarder


cron