Osclass Support Forums

Osclass theme support => Sigma Osclass Theme => Topic started by: Aleš Tomažič on December 26, 2022, 11:06:50 AM

Title: How to translate "Select" in Custom fields
Post by: Aleš Tomažič on December 26, 2022, 11:06:50 AM
Hi

I'm struggling again to find option, to translate word "Select" which shows up, if you make new "select box" in custom fields.

I translated word "Select" in core.po and I can't find it, anywhere else.

Did anyone managed to translate this?

Thanks
Title: Re: How to translate "Select" in Custom fields
Post by: MB Themes on December 26, 2022, 12:50:59 PM
It will be in core translation file.
If missing, update translation files from source code
Title: Re: How to translate "Select" in Custom fields
Post by: Aleš Tomažič on December 26, 2022, 01:53:45 PM
It will be in core translation file.
If missing, update translation files from source code

Hi

It's not missing, it's included in core.po, but the site doesn't react to translation.

Do you know where can I translate it manualy?
Title: Re: How to translate "Select" in Custom fields
Post by: MB Themes on December 27, 2022, 06:05:46 PM
oc-includes/osclass/frm/Field.form.class.php

Code: [Select]
            echo '<option value="">'. __('Select', 'osclass')." ". $field['s_name'].'</option>';

I think there is typo and it should be:
Code: [Select]
            echo '<option value="">'. __('Select')." ". $field['s_name'].'</option>';
Title: Re: How to translate "Select" in Custom fields
Post by: Aleš Tomažič on December 28, 2022, 04:55:26 PM
oc-includes/osclass/frm/Field.form.class.php

Code: [Select]
            echo '<option value="">'. __('Select', 'osclass')." ". $field['s_name'].'</option>';

I think there is typo and it should be:
Code: [Select]
            echo '<option value="">'. __('Select')." ". $field['s_name'].'</option>';


It's working :D :D :D

I was looking for this translation for 3 hours, and finaly give up. You saved me again  :D
Thank you very much  ;D
Title: Re: How to translate "Select" in Custom fields
Post by: MB Themes on December 28, 2022, 05:42:44 PM
Download & install Notepad++
Download your osclass installation into desktop.
Notepad++ has feature to search across all files within folder (recursively).
It can save hours...
Title: Re: How to translate "Select" in Custom fields
Post by: Aleš Tomažič on December 29, 2022, 02:47:58 PM
Download & install Notepad++
Download your osclass installation into desktop.
Notepad++ has feature to search across all files within folder (recursively).
It can save hours...

Thanks  ;)