Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are several reasons that you would want to do this, but the only great reason is if you are going to localize your application into another language. </p> <p>If you are using resource strings there are a couple of things to keep in mind.</p> <ol> <li><p>Include format strings whenever possible in the set of resource strings you want localized. This will allow the translator to reorder the position of the formatted items to make them fit better in the context of the translated text.</p></li> <li><p>Avoid having strings in your format tokens that are in your language. It is better to use these for numbers. For instance, the message: <br /><br /> "The value you specified must be between {0} and {1}"</p> <p>is great if {0} and {1} are numbers like 5 and 10. If you are formatting in strings like "five" and "ten" this is going to make localization difficult.</p></li> <li><p>You can get arround the readability problem you are talking about by simply naming your resources well.<br /><br /> string someString = string.Format(Properties.Resources.IntegerRangeError, minValue, maxValue );</p></li> <li><p>Evaluate if you are generating user visible strings at the right abstraction level in your code. In general I tend to group all the user visible strings in the code closest to the user interface as possible. If some low level file I/O code needs to provide errors, it should be doing this with exceptions which you handle in you application and consistent error messages for. This will also consolidate all of your strings that require localization instead of having them peppered throughout your code. </p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload