Flexible pluralization of localized text
First Claim
Patent Images
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 a plurality of strings, each string comprising a sequence of one or more characters and each string including;
associated with the content indicator, a first range to be compared to the content limiter, wherein the first range is delimited as a first substring of the string,associated with the first range, a first text segment to be presented on a user interface of the computer system if the content limiter is within the first range,associated with the content indicator, a second range to be compared to the content limiter, wherein the second range is delimited as a second substring of the string, andassociated with the second range, a second text segment to be presented on the user interface if the content limiter is within the second range;
parsing the selected string to determine which of the first and second ranges brackets the content limiter; and
retrieving from the string the text segment associated with the range as determined.
2 Assignments
0 Petitions
Accused Products
Abstract
One embodiment provides machine-readable memory encoding a localization resource for a computer system. The resource comprises an array of delimited strings, each string including a range to be compared to a content limiter by the computer system. Associated with the range is text to be presented on a user interface of the computer system if the content limiter is within the range.
41 Citations
19 Claims
-
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 a plurality of strings, each string comprising a sequence of one or more characters and each string including; associated with the content indicator, a first range to be compared to the content limiter, wherein the first range is delimited as a first substring of the string, associated with the first range, a first text segment to be presented on a user interface of the computer system if the content limiter is within the first range, associated with the content indicator, a second range to be compared to the content limiter, wherein the second range is delimited as a second substring of the string, and associated with the second range, a second text segment to be presented on the user interface if the content limiter is within the second range; parsing the selected string to determine which of the first and second ranges brackets the content limiter; and retrieving from the string the text segment associated with the range as determined. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. A machine-readable memory encoding a localization resource for a computer system, the resource comprising:
a plurality of delimited strings, each string including a sequence of one or more characters and each string including; a first range to be compared to a content limiter by the computer system, the first range delimited as a first substring of the string, associated with the first range, a first text segment to be presented on a user interface of the computer system if the content limiter is within the first range, wherein the first substring is adjacent to a token that stands for the first text segment, wherein the string includes a rangefinder substring and an assignment substring, and wherein the token is adjacent to the first range in the rangefinder substring and adjacent to the first text segment in the assignment substring, a second range to be compared to the content limiter, wherein the second range is delimited as a second substring of the string, and associated with the second range, a second text segment to be presented on the user interface if the content limiter is within the second range. - View Dependent Claims (16, 17)
-
18. On a computing system, a method for preparing a localization resource, the method comprising:
-
storing a delimited string, the string including a sequence of one or more characters and including a plurality of numeric ranges delimited as a plurality of substrings in the string, the string corresponding to a content indicator; storably embedding in the string the plurality of substrings and an associated plurality of text segments, each text segment to be presented on a user interface of the computer system if a numeric content limiter received in the computer system is within the numeric range delimited as a substring associated with that text segment, the content limiter representing a number or amount of an item recited commonly in the plurality of text segments; and incorporating said string, together with other strings corresponding to other content indicators, into a searchable array of the localization resource. - View Dependent Claims (19)
-
Specification