|
Locale-Sensitive JavaScript Method
Internationalization (I18n) Method OverviewThis method extracts characters from a string, starting a the 0-based startIndex and up to, but not including endIndex, or the rest of the characters in
the string if endIndex isn't specified. Click here (w3schools) and here (MDN) for additional details. I18n IssuesWhether or not calling
Suggested ReplacementUse the If the string is to be displayed to the user, then you may need to first retrieve the string from a resource file based on locale. The startIndex and endIndex values may also need to change if the text is changing. In addition, if the string is to have characters from outside the 16-bit Basic Multilingual Plane, you will need to count those as two characters when determining
the startIndex and endIndex parameters. See the Globalyzer will detect this method and report it as an I18n issue. If you have determined that the call is being handled correctly, you can use Globalyzer's Ignore Comment functionality to ensure that it isn't picked up in a subsequent scan.
|