• 0
Login to follow this  
ezIQchad

Localization Variables

Question

Hello,

I'm tying to improve my app's error messages using Localizations.

I see on some error messages there are variables or parameters that provide the user with some very valuable information.

  • Value cannot be shorter than %s characters.
  • Value cannot be larger than %n characters.
  • Are you sure you want to delete %n records.
  • %p authorization failed.
  • Cannot redirect to %p
  • etc.

Does anybody know how to use these, or where I can find a list of the variables we can use and how to?

 

 

Thanks and ThinkEZ

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0
15 hours ago, ezIQchad said:

Hello,

I'm tying to improve my app's error messages using Localizations.

I see on some error messages there are variables or parameters that provide the user with some very valuable information.

  • Value cannot be shorter than %s characters.
  • Value cannot be larger than %n characters.
  • Are you sure you want to delete %n records.
  • %p authorization failed.
  • Cannot redirect to %p
  • etc.

Does anybody know how to use these, or where I can find a list of the variables we can use and how to?

 

 

Thanks and ThinkEZ

Hi ezlQchad

You can define listed variables within Localization settings.

Please clarify how you would like to use these variables?   

I have a doubt that these variables can be customized, expect to change their order in the message text.

 

Regards,

vitalikssssss

screenshot.jpg

Share this post


Link to post
Share on other sites
  • 0
On 7/6/2017 at 2:11 AM, Vitalikssssss said:

Please clarify how you would like to use these variables?   

I want to see a list of available variables I can use here or there.

What specifically brought me to this question were File Size error messages and a Date Format error messages that are vague and nondescript.

 

I know I can change the wording, which helps, but I'd like to use the cool variables like "Are you sure you want to delete %n records" in the rest of my error messages.

 

Does anybody know how to use these cool variables?

 

Share this post


Link to post
Share on other sites
  • 0
9 hours ago, ezIQchad said:

I want to see a list of available variables I can use here or there.

What specifically brought me to this question were File Size error messages and a Date Format error messages that are vague and nondescript.

 

I know I can change the wording, which helps, but I'd like to use the cool variables like "Are you sure you want to delete %n records" in the rest of my error messages.

 

Does anybody know how to use these cool variables?

 

Hi ezlQchad,

Please note that each variable is assigned to the particular error message ("Element" column).

I am afraid that you will not be able to use variables in different messages.

 

 

Regards,

vitalikssssss

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Login to follow this