Claims
- 1. A computer system comprising:a plurality of resource modules corresponding to multiple languages, each resource module containing localized resources for the corresponding language; a plurality of executable modules, wherein at least some of the executable modules contain a shared-resource reference, wherein each shared-resource reference identifies a set of resource modules corresponding to different languages; a resource handler that receives requests for localized resources from identified executable modules, wherein in response to a request that identifies an executable module having a shared-resource reference, the resource handler (a) selects one of the set of resource modules identified by the shared-resource reference in accordance with a language identifier that is obtained independently of the request to the resource handler and (b) provides requested localized resources from the selected one of the resource modules.
- 2. A computer system as recited in claim 1, wherein different ones of the executable modules contain the same shared-resource reference.
- 3. A computer system as recited in claim 1, wherein the shared-resource reference is a file identifier and the resource handler selects one of the set of resource modules by modifying the file identifier in accordance with the language identifier.
- 4. A computer system as recited in claim 1, wherein each resource module has a file identifier and each shared-resource reference indicates a portion of the file identifier of one or more of the resource modules.
- 5. A computer system as recited in claim 1, wherein the shared-resource references are named resources included in the executable modules.
- 6. A computer system as recited in claim 1, further comprising an operating system, wherein the resource handler is part of the operating system and wherein the language identifier is maintained by the operating system independently of application programs.
- 7. A computer system as recited in claim 1, wherein if none of the set of resource modules identified by the shared-resource reference accords with the language identifier, the resource handler selects an alternative resource module from the set of resource modules identified by the shared-resource reference in accordance with the following languages, in descending order of priority:the primary language of the language indicated by the language identifier; a system default language; the primary language of the system default language.
- 8. A computer system comprising:a plurality of resource modules corresponding to multiple languages, each resource module containing localized resources for the corresponding language; a resource handler that receives requests for localized resources from identified modules, wherein in response to a request that identifies an executable module, the resource handler (a) identifies a set of resource modules associated with the identified executable module, (b) selects one of the set of resource modules in accordance with a language identifier that is obtained independently of the request to the resource handler and (c) provides requested localized resources from the selected one of the resource modules rather than from the identified executable module.
- 9. A computer system as recited in claim 8, further comprising:one or more modules containing shared-resource references, wherein each shared-resource reference identifies resource modules corresponding to different languages; wherein the resource handler identifies the set of resource modules associated with the identified module with reference to the shared-resource reference of the identified module.
- 10. A computer system as recited in claim 8, further comprising:one or more modules containing shared-resource references, wherein each shared-resource reference identifies resource modules corresponding to different languages; wherein the resource handler identifies the set of resource modules associated with the identified module with reference to the shared-resource reference of the identified module; wherein different ones of the modules contain the same shared-resource reference.
- 11. A computer system as recited in claim 8, further comprising an operating system, wherein the resource handler is part of the operating system and wherein the language identifier is maintained by the operating system independently of application programs.
- 12. A computer system as recited in claim 8, wherein if none of the set of resource modules accords with the language identifier, the resource handler selects an alternative resource module from the set of resource modules in accordance with the following languages, in descending order of priority:the primary language of the language indicated by the language identifier; a system default language; the primary language of the system default language.
- 13. A computer system as recited in claim 8, wherein if none of the set of resource modules accords with the language identifier, the resource handler selects an alternative resource module from the set of resource modules in accordance with the following languages, in descending order of priority:the primary language of the language indicated by the language identifier; a system default language; the primary language of the system default language; English.
- 14. One or more computer-readable storage media containing data structures comprising:a plurality of resource modules corresponding to multiple languages, each resource module containing localized resources for the corresponding language; a plurality of executable modules, wherein at least some of the executable modules contain a shared-resource reference, wherein each shared-resource reference identifies a set of the resource modules corresponding to different languages; wherein the shared-resource reference allows a resource handler to automatically provide localized resources from language-specific resource modules in accordance with a language identifier that is obtained independently of a request to the resource handler and provides requested localized resources from a selected one of the resource modules.
- 15. One or more computer-readable storage media as recited in claim 14, wherein different ones of the executable modules contain the same shared-resource reference.
- 16. One or more computer-readable storage media as recited in claim 14, wherein the shared-resource reference is a file identifier.
- 17. One or more computer-readable storage media as recited in claim 14, wherein each resource module has a file identifier and each shared-resource reference indicates a portion of the file identifier of one or more of the resource modules.
- 18. One or more computer-readable storage media as recited in claim 14, wherein the shared-resource references are named resources included in the executable modules.
- 19. A method of providing resources comprising:receiving a request for an identified localized resource, wherein the request includes a module identification; in response to receiving the request, (a) selecting a resource module based on the module identification and on a language identifier that is obtained independently of the request and (b) providing the requested localized resource from the selected resource module, wherein the selecting step (a) comprises obtaining a shared-resource reference from a module identified by the module identification, wherein the shared resources reference identifies a set of resource modules corresponding to different languages; selecting one of the set of resource modules that has localized resources in the language indicated by the language identifier.
- 20. A method as recited in claim 19 wherein the selecting step (a) further comprises modifying the module identification in accordance with the language identifier.
- 21. One or more computer-readable storage media containing a computer-executable program that performs steps as recited in claim 19.
- 22. A method of providing resources comprising:receiving a request for an identified localized resource, wherein the request includes a module identification; in response to receiving the request, (a) selecting a resource module based on the module identification and on a language identifier that is obtained independently of the request and (b) providing the requested localized resource from the selected resource module; placing an entry in an alternative resource module table that holds handles corresponding to alternative resource modules, wherein the entry corresponds to the selected resource module.
- 23. A method as recited in claim 22 further comprising:receiving a subsequent request for the identified resource, wherein the request includes the module identification; and in response to receiving the subsequent request, automatically providing the requested localized resource from the selected resource module using the entry in the alternative resource module table.
RELATED APPLICATIONS
This application is a continuation-in-part of a U.S. application Ser. No. 09/134,559, filed Aug. 14, 1998, now U.S. Pat. No. 6,252,589, issued Jun. 26, 2001, entitled “Multilingual User Interface for an Operating System”, by inventors Edward S. Miller, Bjorn C. Rettig, Gregory Wilson, and Shan Xu.
US Referenced Citations (11)
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
09/134559 |
Aug 1998 |
US |
Child |
09/596236 |
|
US |