Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
HI,
I need translate “Opening time” to another language.
Where I can find to do this?
PICTURE -> https://image.ibb.co/kpmohT/Capture.jpg
Hi Rafresh,
Unfortunately, the widget you’re working on isn’t one of ours so we’re not able to provide specifics on adjusting this text. I can, however, state it’s likely adjustable via plugins like Loco Translate. I would reach out to the developers for assistance with this.
Loco Translate I has tried before, but he does not see them
Hi Rafresh
If this is a Proteus Themes widget which it looks too be, it would be best to reach out to their support team and let them know you’re having trouble locating the “Opening Time” string with Loco Translate. They can then take a look, ensure the string is translatable and assist with the problem in Loco Translate.
I contacted for this, but they will not do anything. There is no solution.
Unfortunately, the string in question isn’t within our code base. As a result, there isn’t anything we can do as we don’t control the code for this widget. Sorry I don’t have more.
from where it is “PT Opening Time”?
The string is within the Proteus Themes widget. If it isn’t translatable by Loco Translate then that means the string isn’t localized.
Put another way, does this problem persist when you insert this widget into a regular theme widget area at AppearanceWidgets? This problem is independent of SiteOrigin, your task is to translate a string in a widget created by Proteus. Unfortunately, SiteOrigin isn’t part of the problem at all. Hope that helps to explain the situation.
I’ve emailed Proteus on your behalf, they’ve let us know:
Here is detailed guide on how to translate everything in our themes -> https://www.proteusthemes.com/help/translate-theme-another-language/
Yes, those string have been localised. WPML is our supported translation plugin and everything is working perfectly with it.
Hope that helps.
An interesting problem…
If you find this method to complex, you can translate your theme with Loco translate plugin, but you will not be able to translate our widgets on newer themes.
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 );
}
Glad to hear you’ve taken a look. Please, open a support topic with Proteus on their support desk if any further questions arise, I’m sure they can lend a hand. All the best.