主权项 |
1. On a computer system, a method to retrieve grammatically accurate text from a localization resource, the method comprising:
receiving a content indicator that indicates the content of the text to be retrieved; receiving a content limiter that imposes a limitation on the content; selecting from the localization resource a string corresponding to the content indicator, the localization resource comprising an array of strings, each including a range to be compared to the content limiter, and associated with the range, text to be presented on a user interface of the computer system if the content limiter is within the range; parsing the selected string to find a range that brackets the content limiter; and retrieving from the string text associated with the found range. |