This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
How to translate "Select" in Custom fields
« 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

*

MB Themes

Re: How to translate "Select" in Custom fields
« Reply #1 on: December 26, 2022, 12:50:59 PM »
It will be in core translation file.
If missing, update translation files from source code
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: How to translate "Select" in Custom fields
« Reply #2 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?

Marked as best answer by Aleš Tomažič on December 28, 2022, 04:53:05 PM
*

MB Themes

Re: How to translate "Select" in Custom fields
« Reply #3 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>';
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: How to translate "Select" in Custom fields
« Reply #4 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

*

MB Themes

Re: How to translate "Select" in Custom fields
« Reply #5 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...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: How to translate "Select" in Custom fields
« Reply #6 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  ;)