Please read the FAQ about translations.
“Please visit our WordPress Translate project page for this plugin for further instruction. The radio-station.pot file is located in the /languages directory of the plugin. Please send the finished translation to info@netmix.com. We’d love to include it.”
Usually, you just send the .mo and .po files and we can include them.
Sorry, let me answer the other questions.
We don’t have a way to show/hide the show hostname that is not on-air for that given week. You’re asking to tie the host to a given week on the schedule. Right now, you assign hosts to a show, but you don’t schedule hosts. That’s something we can consider for a PRO version, but we’re just not going to be able to add that to free, because that’s probably a limited use case.
You can easily hide the time zone with CSS for radio-timezone-title and radio-timezone – just used “display: none;” and it’ll remove the text.
What we have tried to do in updating this plugin is to make it more flexible by adding extra custom filters throughout the program. While we can’t provide options for every single use case, this allows you to add some custom code to filter the output.
One such filter is already in place for this in the show schedule templates: radio_station_schedule_show_hosts
… So you can do something like:
add_filter( 'radio_station_schedule_show_hosts', 'custom_show_hosts', 10, 3 );
function custom_show_hosts( $output, $show_id, $view ) {
// replacing 123 with the relevent show
if ( $show_id == 123 ) {$output = str_replace( 'and', 'or', $output );}
// note these are literal strings so need adjusting for translations
return $output;
}
Optionally you could come up with further logic and code to simply display the Host that is actually on for that week.
I’ve made a note to add a similar filter for the Host display output in widgets so that can be included in the next version.
-
This reply was modified 5 years, 2 months ago by
Tony Hayes.
seems that code block got mangled, lemme try again…
add_filter( 'radio_station_schedule_show_hosts', 'custom_show_hosts', 10, 3 );
function custom_show_hosts( $output, $show_id, $view ) {
// replacing 123 with the relevent show
if ( $show_id == 123 ) {$output = str_replace( 'and', 'or', $output );}
// note these are literal strings so need adjusting for translations
return $output;
}
-
This reply was modified 5 years, 2 months ago by
Tony Hayes.
Hello majick,
Last night i did 109 translations and hope that they are goed for you.
2.3.0 has been released and we are happy with that. for us it doesn’t change that much, except that we are missing some translations everything works great.
And now I don’t know how to handle the CSS information?
I mean the first CSS information ( You can easily hide the time zone with CSS for radio-timezone-title and radio-timezone – just used “display: none;” and it’ll remove the text. ? ) and your last block code.
Can you tell me where and in which file I can modify that?
I mean the location like: url.nl/wp-admin/radio station … etc.
Or is it in WP itself? Regards 🙂
-
This reply was modified 5 years, 2 months ago by
hotrodradio.
@hotrodradio WordPress itself has an Additional CSS field under Dashbooard > Customize where you can add custom CSS rules to your site. Some also use a child theme to add those custom rules to override theme or plugin styles.
You would add the filter @majick mentioned in your child theme’s functions.php file.
I didn’t realize you could filter the host name per @majick instructions. Sorry for the miscommunication. That’s new and even I didn’t realize the possibility.
Did you send the translation files by email?
@hotrodradio okay, great…I’ll check that and try to get it integrated within the next 24-48 hours. Please understand that with Covid-19, I have many priorities with family before my work with the plugin.