Methods, systems and computer program products for national language support using a multi-language property file
First Claim
Patent Images
1. A method of providing national language support for an application, said method being performed by execution of software in a data processing system, said method comprising:
- generating a multi-language property file by processing each individual property file of a plurality of individual property files, wherein each individual property file comprises a file name comprising a label appended to a class and further comprises file content comprising a key value and a translated text pertaining to the label, wherein the key value is a member of the class, wherein said processing each individual property file comprises generating a translation and recording the generated translation in the multi-language property file, wherein the generated translation comprises the translated text and a key comprising the label appended to the key value, wherein the label is null, consists of a language identifier, or consists of the language identifier and a locale identifier, and wherein the translated text of each said translation is formatted in a character set that is displayable in a natural font of a language represented by the translated text;
ascertaining, from an operating system of the data processing system, a language identifier and a locale identifier, wherein execution of a language independent application is configured to be performed in a locale identified by the ascertained locale identifier and to display text in accordance with a first key value and in a language identified by the ascertained language identifier;
executing the application in the locale identified by the ascertained locale identifier;
during said executing the application, selecting from the multi-language property file a translation whose label comprises a key value that matches the first key value and whose label further comprises the ascertained language identifier and the ascertained locale identifier of the executing application or whose label comprises the ascertained language identifier but not the ascertained locale identifier of the executing application or whose label is null;
during said executing the application, displaying the translated text of the selected translation in the language identified by the ascertained language identifier.
2 Assignments
0 Petitions
Accused Products
Abstract
National language support for an application is provided by recording translations of a text string in corresponding different languages in a single property file so as to allow display of the translations in the property file. One of the translations of the text string recorded in the property file is selected for use by an application based on a locale associated with the execution of the application and the selected one of the translations is used in the execution of the application.
27 Citations
10 Claims
-
1. A method of providing national language support for an application, said method being performed by execution of software in a data processing system, said method comprising:
-
generating a multi-language property file by processing each individual property file of a plurality of individual property files, wherein each individual property file comprises a file name comprising a label appended to a class and further comprises file content comprising a key value and a translated text pertaining to the label, wherein the key value is a member of the class, wherein said processing each individual property file comprises generating a translation and recording the generated translation in the multi-language property file, wherein the generated translation comprises the translated text and a key comprising the label appended to the key value, wherein the label is null, consists of a language identifier, or consists of the language identifier and a locale identifier, and wherein the translated text of each said translation is formatted in a character set that is displayable in a natural font of a language represented by the translated text; ascertaining, from an operating system of the data processing system, a language identifier and a locale identifier, wherein execution of a language independent application is configured to be performed in a locale identified by the ascertained locale identifier and to display text in accordance with a first key value and in a language identified by the ascertained language identifier; executing the application in the locale identified by the ascertained locale identifier; during said executing the application, selecting from the multi-language property file a translation whose label comprises a key value that matches the first key value and whose label further comprises the ascertained language identifier and the ascertained locale identifier of the executing application or whose label comprises the ascertained language identifier but not the ascertained locale identifier of the executing application or whose label is null; during said executing the application, displaying the translated text of the selected translation in the language identified by the ascertained language identifier. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method of providing national language support for an application, said method being performed by execution of software in a data processing system, said method comprising:
-
generating a multi-language property file by processing each individual property file of a plurality of individual property files, wherein each individual property file comprises a file name and further comprises file content comprising a key value and a translated text, wherein the key value is a member of a class, wherein said processing each individual property file comprises generating a translation and recording the generated translation in the multi-language property file, wherein the generated translation comprises the translated text and a key comprising a keyword appended to the key value, and wherein the translated text of each said translation is formatted in a character set that is displayable in a natural font of a language represented by the translated text; ascertaining, from an operating system of the data processing system, a locale identifier and a list of characters of a language associated with a locale identified by the ascertained locale identifier, wherein execution of a language independent application is configured to be performed in the locale and to display text in accordance with a first key value and in the language associated with the locale; executing the application in the locale; during said executing the application, selecting from the multi-language property file a translation whose label comprises a key value that matches the first key value and subsequently determining in response to the keyword in the selected translation that the characters in the translated text in the selected translation are within the ascertained list of characters of the language associated with the locale; during said executing the application, displaying the translated text of the selected translation in the language associated with the locale. - View Dependent Claims (10)
-
Specification