A database may be accessed by people who speak various different languages. Business is often conducted across national boundaries and language boundaries. Data may be shared among different participants in the business, so the same underlying data may be accessed by people in different countries who speak different languages.
One or more language packs may be installed for a given computer or application. These language packs generally contain the words, in a particular language, for certain actions or objects. For example, an E-mail program might display a line that contains the subject of an e-mail message. When displaying the subject line, the program may display a label for this line, where the particular label that is shown depends on the language in which the person using the program wants to receive the information. The language pack provides the appropriate word for the label. Thus, for such an E-mail program, the English language pack may indicate that the subject field is to be labeled “subject”; the French and Spanish language packs for the same program may indicate that the same field is to be labeled “sujet” and “sujeto”, respectively. Similarly, language packs may be used with databases. For example, “invoice” and “factura” are the English and Spanish words, respectively, for the same accounting concept. Thus, a given field in an accounting database might be labeled “invoice” in English and “factura” in Spanish.
When a database provides data to a client application, the database may provide labels for the data in a symbolic form. For example, the database may indicate that a particular column of data is of type “1”. There may be language information available to the client indicating what the number “1” means in different language—e.g., that “1” means “invoice” in English, “factura” in Spanish, etc. The client may allow a user to switch between different languages, or may be able to use a default language choice that has been pre-specified. However, in this scenario the database does not serve content in a user's chosen language. Normally, the database is not aware of the user's chosen language. Thus, the database serves content in symbolic form, and it is the client that converts the symbolic information into a language.
A database may provide content in a user's chosen language. The database may store a record that associates a language choice with a particular user. When the user logs on to the database, the database may look up the user's language choice based on the logon credentials. Language conversion information, such as a language-pack resource file, may be used to convert the symbolic information in data records into the user's chosen language.
A user may specify an explicit language choice, or the user's choice of language may be inferred from the language of a query that the user issues to obtain the data records. When the database has ascertained the user's language choice, the database may store an association between the user and the language choice, so that choice may be used for future requests from the same user. Also, when the language choice is ascertained, the database may determine whether it has a local copy of the conversion information (e.g., resource file) for that language. If the conversion information does not exist on the database, then the database may obtain the conversion information from the user's client or machine. For example, the database may copy, from the client, the language-pack resource file the user's chosen language.
When a language choice has been registered for a user and the database has the appropriate language conversion information, the database may serve content to a client in the user's chosen language. For example, a spreadsheet file may contain a connection to a database as a source of data. When the spreadsheet filed is opened by a spreadsheet program on behalf of a particular user, the user's logon credentials may be provided to the database in order to obtain the data that is referenced in the spreadsheet file. When the database serves the data, it may look up the user's language choice based on the logon credentials, and may serve data to the client in that chosen language.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
People who speak different languages may access the same data. Business is often transacted across national and language boundaries, so people may wish to access the same accounting records, medical records, legal records, etc., in different languages.
In a database, many data may have descriptive labels. For example, a data element is normally associated with a type or attribute. In a tabular representation of data, this type or attribute appears as the column header, which is often a verbal name or label. For example, a banking database might have a table with three columns representing a customer's name, branch, and account number. The words that are used to label these columns would be different in different language—e.g., “name” in English, “nom” in French, “nombre” in Spanish, etc. In addition to data attributes, the data elements themselves could have different representations in different languages. For example, a column of data may contain Boolean values, which could be represented as “true” and “false” in English, “vrai” and “faux” in French, etc.
Data is often stored in the database in a symbolic representation. For example, in the above-mentioned banking table, the column that contains names could be labeled “1”, the column that contains branches could be labeled “2”, etc. Particular concepts that are relevant to particular types of data (e.g., invoices, payments, accounts, etc.) could be assigned particular symbolic representations, numeric or otherwise. As another example, the Boolean values true and false could be represented as “0” and “1”. Or, symbols could be assigned to particular data types or attributes.
Databases are often accessed through client applications. For example, a spreadsheet, an accounting program, an inventory program, etc., may retrieve data from the database. Such a program may present the data to a user in some way, or may facilitate some type of interaction with the data. These programs may employ a language pack to convert symbol in the database into the symbols (e.g., words) of a particular language. Such a language pack may have a label indicating the language and/or country to which the language pack applies (e.g., “English—United States”, or “English—United Kingdom”). The language pack may also have a resource file, which describes how symbolic information in the database is to be converted into a particular language. For example, the resource file may contain associations between symbols in the database and words in the language (e.g., “1”==“name”, “2”==“branch”, etc.). The application may allow a user to switch between languages (if the appropriate language packs for the various languages are installed on the computer on which the language pack is to be used), or may present data based on a pre-selected language. These translations are generally performed by the client application using the language pack. The database typically does not serve content that is “localized” for a particular user in a particular language, since the database does not know the user's language choice and typically does not have the resource file or other language-conversion information.
In one example, the subject matter described herein may allow the database to provide such localized content based on a particular user's language choice. The database may identify the user based on the logon credentials that are used to access the data. The database may store an association between a particular user and that user's language of choice. The database may store the resource file for that language, and may obtain the resource file from the user's client if the database does not already have the resource file. The database may use the resource file to convert the symbols in data records into a particular language, and may then serve content to a client in that language. Data that has been converted to a particular language could be stored in the database for future use. Or, the data could be re-converted each time the data is demanded.
Turning now to the drawings,
Database 102 may be accessed by or through client application 110. Client application 110 could be any type of application. For example, client application 110 may be a spreadsheet program that presents, and allows interaction with, data that is specified in a spreadsheet file 140. Spreadsheet file 140 could specify a connection 142 to database 102, so that database 102 would be a source or data for that spreadsheet file. Thus, a spreadsheet program is an example of a client application that accesses data from database 102. An accounting program (such as MICROSOFT OFFICE ACCOUNTING) could access business data that is stored in database 102, and is thus another example of client application 110. A delivery company may use database 102 to store tracking information about packages. A courier may use a handheld device to interact with this information (e.g., to retrieve information about packages, or to register the fact that a package has been delivered), in which case the software that runs on the handheld device is an example of client application 110. Moreover, a plug-in or add-on to another application could access database 102, in which case such plug-in or add-on would be an example of application 110. Any type of software that interacts with data in database 102 could be an example of client application 110.
User 112 is a person or other entity that operates client application 110. User 112 could be any type of human or non-human entity that operates application 110—e.g., a person who operates a computer for personal or business use, an Information Technology (IT) administrator, a “bot”, etc. User 112 engages in some type of interaction 114 with client application 110. Interaction 114 may be performed through a keyboard, pointing device, touch-screen, barcode reader, or any other type of mechanism.
The data stored in database 102 may be protected by a mechanism that either grants or denies access based on a particular entity's authorization to access the data. Thus, database 102 may collect logon credentials 116 before allowing a client to access data stored in database 102. Logon credentials 116 identify a particular user that is requesting access to the data. Database 102 may use this information about a user's identity to store a language choice for that user. For example, users with the logon identifiers “Joe”, “Nigel”, “José”, and “Pierre” may all have accounts with database 102. These users may be from the United States, the United Kingdom, Spain, and France, respectively. Database 102 may obtain, for each user, a language choice. This language choice may be recorded, for example, in table 118, which may be stored in database 102. Table 118 may contain data records 120, which indicate the various users' respective language choices—e.g., United States English (“EN-US”) for Joe, United Kingdom English (“EN-UK”) for Nigel, and so forth. Table 118 may be stored in a file or in some other manner.
The language choice may be obtained in any manner. For example, user 112 could explicitly provide the user's language choice 122 to database 102. Or, user 112 could submit a request to obtain data records from database 102 (such as query 124), and the user's language choice could be inferred from the language in which that request is written. An explicit choice of language, and a request from which a language choice may be inferred, are both examples of an indication of user 112's language choice.
A client may have a language pack 126, which includes a resource file 128. Resource file 128 is an example of conversion information that may be used to convert symbolic information into a particular language. Resource file 128 may provide associations between symbols or elements of a data representation (such as the numbers used in attributes 108) and elements in a particular language. (The words in a particular language may be viewed as the symbols, or elements, of that language. Thus, resource file 128 may viewed containing a correspondence between one set of symbols and another set of symbols.) For example, as noted above, the symbols “1” and “2” in table 104 may represent the English concepts of “invoice” and “amount.” Resource file 128 may provide support for the Spanish language, and thus may define a correspondence such as “1”=“factura”, “2”=“cantidad”, etc. The symbol “1” and “2” could be used as keys to look up corresponding Spanish words in resource file 128. When database 102 receives a language choice for a particular user, it may determine whether it has the appropriate conversion information for the chosen language. If database 102 does not have the appropriate conversion information, it may obtain that conversion information. Resource file 128 is an example of the conversion information. Database 102 may obtain the resource file 128 (or other conversion information) by requesting the file from client application 110, or a machine on which client application 110 runs. Once database 102 has received resource file 128 (or other conversion information), that resource file may be stored in database 102.
Database 102 may receive a query 124, or other type of request to provide a data record. Database 102 may provide a result 130 in response to query 124. Result 130 may comprise, for example, one or more data records that are stored in database 102, or a representation of those records in some language. For example, in response to a query that seeks a set of invoices and their amounts, database 102 could provide table 104, including the symbolic column headers (attributes 108). The column headers could then be converted into a language by client application 110 using a language pack. However, if database 102 has received a particular user's choice of language and the appropriate conversion information (e.g., resource file 128), database 102 may provide a representation of table 104 in the appropriate language—e.g., a table that is based on table 104, but that has names in some language substituted for the symbolic column headers. A table that has been converted in this way is a representation of the original table 104, in the sense that the converted table may not have exactly the same information as the original table 104 (e.g., the column headers may be names instead of symbols), but a table that results from such a conversion, nonetheless, represents the information in table 104. The converted column headers from table 104 are examples of records that have been converted from a symbolic form into a particular language.
At 302, a user's logon credentials are received, and the user's language choice is obtained. As previously noted, the user could make an explicit choice of language, which is one example of how a language choice could be received. As another example, a determination as to the user's language choice could be inferred from the language in which a request for data is made, such as the language of a query. If conversion information for that language exists in the database (as determined at 304), then the process ends. If the conversion information for that language does not exist, then it is determined whether the application has conversion information (such as a resource file) for the language (at 306). If the language does have such conversion information, then the conversion information for the language is populated to the database (at 308). If no conversion information is available in the database or from the application, then a default language (e.g., United States English) may be set as the user's choice (at 310).
Computer 500 includes one or more processors 502 and one or more data remembrance components 504. Processor(s) 502 are typically microprocessors, such as those found in a personal desktop or laptop computer, a server, a handheld computer, or another kind of computing device. Data remembrance component(s) 504 are components that are capable of storing data for either the short or long term. Examples of data remembrance component(s) 504 include hard disks, removable disks (including optical and magnetic disks), volatile and non-volatile random-access memory (RAM), read-only memory (ROM), flash memory, magnetic tape, etc. Data remembrance component(s) are examples of computer-readable storage media. Computer 500 may comprise, or be associated with, display 512, which may be a cathode ray tube (CRT) monitor, a liquid crystal display (LCD) monitor, or any other type of monitor.
Software may be stored in the data remembrance component(s) 504, and may execute on the one or more processor(s) 502. An example of such software is language choice software 506, which may implement some or all of the functionality described above in connection with
The subject matter described herein can be implemented as software that is stored in one or more of the data remembrance component(s) 504 and that executes on one or more of the processor(s) 502. As another example, the subject matter can be implemented as software having instructions to perform one or more acts of a method, where the instructions are stored on one or more computer-readable storage media. These instructions, when executed, may cause a computer to perform a method. The instructions to perform the acts could be stored on one medium, or could be spread out across plural media, so that the instructions might appear collectively on the one or more computer-readable storage media, regardless of whether all of the instructions happen to be on the same medium.
In one example environment, computer 500 may be communicatively connected to one or more other devices through network 508. Computer 510, which may be similar in structure to computer 500, is an example of a device that can be connected to computer 500, although other types of devices may also be so connected.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Number | Name | Date | Kind |
---|---|---|---|
5148541 | Lee et al. | Sep 1992 | A |
5442782 | Malatesta et al. | Aug 1995 | A |
5778356 | Heiny | Jul 1998 | A |
5835912 | Pet | Nov 1998 | A |
7318087 | Hauduc et al. | Jan 2008 | B2 |
20030182632 | Murdock et al. | Sep 2003 | A1 |
20050004933 | Potter | Jan 2005 | A1 |
20050044065 | McArdle | Feb 2005 | A1 |
20050137845 | Carroll et al. | Jun 2005 | A1 |
20060047499 | Chen et al. | Mar 2006 | A1 |
20060047710 | Hu et al. | Mar 2006 | A1 |
20060074894 | Remahl et al. | Apr 2006 | A1 |
20060149716 | Polo-Malouvier | Jul 2006 | A1 |
20070177993 | Nakamichi et al. | Aug 2007 | A1 |
20070265827 | Wall et al. | Nov 2007 | A1 |
20070266024 | Cao | Nov 2007 | A1 |
20080016112 | Reddy et al. | Jan 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20090254524 A1 | Oct 2009 | US |