when use SFSErrorCodes.setErrorMessage,Some information does not contain,like
Username: *** is already in use
Email address: ** is already in use
How to solve it?
Multilingual,SFSErrorCodes.setErrorMessage
-
- Posts: 3
- Joined: 05 Aug 2022, 04:41
Re: Multilingual,SFSErrorCodes.setErrorMessage
Hi,
the error messages are provided in this format:
Where the %s is a placeholder for the user name and zone name respectively, which are generated at runtime.
The above example is in Java, if you're using C# there is a different placeholder but the mechanism is the same. If you want to localize the messages in another language you should translate the text but keep the same amount of placeholders.
For example if we had to translate the above message from English to Italian it would look like this:
"L'utente %s è già loggato nella Zona %s"
Hope it helps
the error messages are provided in this format:
Code: Select all
"User %s is already logged in Zone %s"
Where the %s is a placeholder for the user name and zone name respectively, which are generated at runtime.
The above example is in Java, if you're using C# there is a different placeholder but the mechanism is the same. If you want to localize the messages in another language you should translate the text but keep the same amount of placeholders.
For example if we had to translate the above message from English to Italian it would look like this:
"L'utente %s è già loggato nella Zona %s"
Hope it helps
Re: Multilingual,SFSErrorCodes.setErrorMessage
Hello @Lapo and thank you for this information. I also got this error message. But I hope with your help I can solve the problem.
My website : chatbot agency
Re: Multilingual,SFSErrorCodes.setErrorMessage
Zenobe wrote:Hello @Lapo and thank you for this information. I also got this error message. But I hope with your help I can solve the problem.
You didn't say what error message you're getting.
Thanks
Who is online
Users browsing this forum: No registered users and 141 guests