Plugin Author
Tim W
(@timwhitlock)
Loco Translate lets you translate the strings the author makes available. If you can’t see them then perhaps they’re not translatable. I can’t tell you unless you provide a download for your plugin.
Plugin Author
Tim W
(@timwhitlock)
This download does not seem to include the Opening Times widget you’re asking about. Where does it come from?
Plugin Author
Tim W
(@timwhitlock)
That is the same download. There is no opening times widget in that plugin.
If you want my help looking at your problem, please provide me with steps so that I can display the same content you have a problem with.
Plugin Author
Tim W
(@timwhitlock)
Right, well I can see that this code is where your missing strings are. So have you tried translating it? If you have a problem doing so, please explain what the problem is.
With this program, practically everything was translated. Only this Loco do not find any days at all.
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Plugin Author
Tim W
(@timwhitlock)
Loco Translate will find strings in properly configured themes and plugins. Your ProteusWidgets download is neither a theme, nor a plugin. That means that if you want Loco Translate to find its POT file (which contains your day strings), you will have to put it into a theme or a plugin and configure Loco Translate to know what to do with it. What have you done with this code? How is it installed in your site?
I do not know. That was already there. But I managed to find where everything is.
I will invent something
widget-opening-time.php
public function __construct() {
parent::__construct();
// Set the right order of the days
$start_of_week = get_option( ‘start_of_week ‘ ); // integer [0,6], 0 = Sunday, 1 = Monday …
$this->days = array(
‘Sun’ => esc_html__( ‘Sunday’, ‘proteuswidgets’ ),
‘Mon’ => esc_html__( ‘Monday’, ‘proteuswidgets’ ),
‘Tue’ => esc_html__( ‘Tuesday’, ‘proteuswidgets’ ),
‘Wed’ => esc_html__( ‘Wednesday’, ‘proteuswidgets’ ),
‘Thu’ => esc_html__( ‘Thursday’, ‘proteuswidgets’ ),
‘Fri’ => esc_html__( ‘Friday’, ‘proteuswidgets’ ),
‘Sat’ => esc_html__( ‘Saturday’, ‘proteuswidgets’ ),
);
$this->rotate_days( $start_of_week );
}
Plugin Author
Tim W
(@timwhitlock)
I have already seen this code from your download link. If you can’t tell me how you’ve installed this code then I can’t give you the help you’re asking for.
integrated into theme “RepairPress”. I don’t know how.