|
Locale-Sensitive JavaScript Method
Internationalization (I18n) Method OverviewThis method searches for the match specified by the searchStringOrRegExp parameter, returning the 0-based index to the first occurrence, or -1 if the
search fails. If a simple string is passed in rather than a Click here (w3schools) and here (MDN) for additional details. I18n IssuesWhether or not calling
Suggested searchmentUse 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 searchString parameter may also need to change if the text is changing. In addition, if the string is to have non-English characters and you are using a 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.
|