How to Translate the Submit Button in Different Languages?

I need the submit button to be translated based on the selected language. However, it currently always displays Submit in English, and I can’t find a way to change it for other languages (string replacement not work)

Our teacher doesn’t understand English, so I need to make sure the button text is properly translated when switching languages. Is there a way to achieve this?

Hi!

Are you sure that, if you change the local language on your browser to the one which doesn’t work, it still shows ‘submit’?

I just checked in the language files we use (Portuguese, English and German) and this is correctly translated in all instances.

Which languages do you use and aren’t working?

Thank you @Xavier_Bit.

I wonder if you have any way to help test using Simplified Chinese (zh_CN.UTF-8), which is also a language that has been 100% fully translated.

But I can’t upload the newest translated file in this post.


I have confirmed that my server locale, client browser language, and client operating system language are all set to Simplified Chinese (zh_CN), and the corresponding translation entries also exist.

Only English ‘Submit’ Text:
$row->addSubmit()

Available for localization:
$row->addSubmit(__('Submit'))

I hope the development team can add text to all addSubmit() functions.

I have already modified the code in my local version, and it is working well. I hope the developers can review this issue and confirm the fix.

Thank you! :raised_hands: @Xavier_Bit

1 Like