Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 7 months ago.

Assisted by: Prosenjit Barman.

Author Posts
June 15, 2023 at 1:50 am #13828815

kelvinL-3

My site's default language is Traditional Chinese, I want to change the placeholder '姓名' to '名字', when I try to edit it from String Translation, I can't change it.

Refer to the form, I didn't add my custom placeholder

	<div class="row form-group">
		<div class="col-sm-6">
			[cred_field field='warranty-last-name' force_type='field' class='form-control' output='bootstrap' value="[current_user_last_name]"]
		</div>
		<div class="col-sm-6">
			[cred_field field='warranty-first-name' force_type='field' class='form-control' output='bootstrap' value="[current_user_first_name]"]
		</div>
	</div>

My admin user profile default language set to English, I don't know why when I visit the String Translation, it switch to Traditional Chinese, when I select the strings, it only has the delete string function, please advise how I can change the text

Screenshot 2023-06-15 at 9.47.05 AM.png
Screenshot 2023-06-15 at 9.44.57 AM.png
June 15, 2023 at 8:29 am #13830307

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support. I would be happy to assist you in this matter.

I understand that you want to modify the default placeholder text. Please note that the default text can only be changed at the original location where it was initially added. The string translation plugin can only help you in adding translations for the strings. Using that, it is not possible to modify the default texts.

However, From the code you've shared, it appears that the Form fields are created using the "Toolset Types" plugin and rendered using the default shortcode for Form fields. Would you please edit the Field in Toolset and check if any Placeholder is added there or not? If you find a placeholder text, please modify it according to your requirements.

In case if you do not see any placeholder in that section, you can include the "Placeholder" argument within the "[cred_field]" shortcode that you've added to the code and Insert your desired Placeholder text there. Afterward, update the translation of the placeholder using String Translation.

Related documentation:
Including Placeholder argument in Shortcode: https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred_field

I hope it will help. But, feel free to let me know if you need further assistance or clarification in this matter. I will be happy to help you.

Best Regards,
Prosenjit

June 15, 2023 at 3:00 pm #13833629

kelvinL-3

Dear Prosenjit Barman,

Do you mean if my site's default language is non-English, then I should set the custom field with the default language?

June 16, 2023 at 5:28 am #13836179

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,

The contents of the default post should always have to be in the default language. For example: if the default language of the site is Chinese, then the contents of the default post/page/custom field should have to be in the Chinese language.

So, Yes, you should set the custom field contents in the default language.

I hope I'm able to address your query. But, feel free to let me know if you need further assistance or clarification in this matter. I will be happy to assist you.

Best Regards,
Prosenjit

June 16, 2023 at 3:46 pm #13841545

kelvinL-3

I have just chat with WPML, here is the url https://wpml.org/forums/topic/wpml-chat-support-ticket-by-kelvinl-3-1686925211/

I finally can change more of the field name and placeholder but only two validation message from generic fields not able to be translated. Please advise how I can find them out from String Translation.

I did add all strings with 此欄必填 from Translate texts in admin screens, after adding, I visit the String Translation and search 此欄必填 ( hidden link ), I do translate all text but the validation message still not be translated (see screenshot)

Here is the source code to both select

				<div class="col-sm-4 bod-field">
					[cred_generic_field type='select' field='gf-bod-month']
					{
					"required":1,
					"default":[],
					"options":[{"value":"","label":"BOD MM"},{"value":"1","label":"Jan"},{"value":"2","label":"Feb"},{"value":"3","label":"Mar"},{"value":"4","label":"Apr"},{"value":"5","label":"May"},{"value":"6","label":"Jun"},{"value":"7","label":"Jul"},{"value":"8","label":"Aug"},{"value":"9","label":"Sep"},{"value":"10","label":"Oct"},{"value":"11","label":"Nov"},{"value":"12","label":"Dec"}]
					}
					[/cred_generic_field]
				</div>
				<div class="col-sm-4 bod-field">
					[cred_generic_field type='select' field='gf-bod-day']
					{
					"required":1,
					"options":[ [get_day_range] ]
					}
					[/cred_generic_field]
				</div>

Screenshot 2023-06-16 at 11.38.58 PM.png
Screenshot 2023-06-16 at 11.43.16 PM.png
June 19, 2023 at 7:30 am #13847635

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

Glad to hear that one of the issues is solved now.

Now, regarding the issue with translating the required field message- Since the required message is not showing as properly translated even after correctly translating them, a closer inspection will require to understand the root cause.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please make a backup of site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit