Jump to content
  • 0
Sign in 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

Recommended Posts

  • 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...