Skip Navigation

[Resolved] Where can I find the files ini, po and mo, to be able to translate?

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 2 voices.

Last updated by Luo Yang 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#881962
2.png
unnamed.jpg

Tell us what you are trying to do? I have to translate into English part of the Cred Denunciation form (ID: 37054). (Attached image unnamed.jpg) at hidden link. And also
  in hidden link (Attached image 2.png) I want to change "add new " to Spanish "añadir nuevo",
I know there is a payment translator but I'm not interested at the moment.
Where can I find the files ini, po and mo, to be able to translate? Not only in Cred but in all Toolset.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#882066

Hello,

In CRED plugin, there are two folders storing the language local files:
1) CRED translation files: :
\cred-frontend-editor\library\toolset\cred\embedded\locale\

2) Toolset common translation files:
\cred-frontend-editor\vendor\toolset\toolset-common\languages

In your case, you can also translate the "Add new" text with wordpress built-in filter hook "gettext", for example, add below codes into your theme file functions.php:

add_filter('gettext', 'my_func2', 10, 3);
function my_func2($translated_text, $untranslated_text, $domain){
	if($translated_text == 'Add new' && $domain = 'wpv-views'){
		$translated_text = 'Add new in your language';
	}
	return $translated_text;
}
#882501
2.png

Thanks "add new" I have been able to change it perfectly.
How can I change in "Attached files" load "select file" "no selected file"? They are in Spanish and I want to translate it into English

hidden link

#882609

There isn't such a built-in feature within CRED form, the file filed is created with HTML tag:

<input name="myFile" type="file">

The text "select file" and "no selected file" will be changed according to your browser settings,

see similar thread:
https://stackoverflow.com/questions/5138719/change-default-text-in-input-type-file

Each browser has it's own rendition of the control and as such you can't change either the text or the orientation of the control.

More help:
hidden link

#882684

I get it,
On this website, I have told WordPress that the main language is English. Everything has changed except
I think my toolset is in Spanish, I can change only for this web page hidden link that is in the English version.

#882785
file-field.JPG

In my localhost, with the Chrome browser in English, it does display the text in English, see screenshot: file-field.JPG, so there isn't the problem you mentioned above:
https://toolset.com/forums/topic/where-can-i-find-the-files-ini-po-and-mo-to-be-able-to-translate/#post-882501
"select file" "no selected file"? They are in Spanish ...

Can you try with a English browser and confirm it?

I assume the original question of this thread has been resolved:
https://toolset.com/forums/topic/where-can-i-find-the-files-ini-po-and-mo-to-be-able-to-translate/#post-881962

To avoid any more misunderstand, please create new thread if you have new questions, and describe detail steps to duplicate the same problem, that will help other users
https://toolset.com/forums/topic/where-can-i-find-the-files-ini-po-and-mo-to-be-able-to-translate/#post-882684

#882849

Muchas gracias

#886350

You are welcome