I need some help with localizing data in an embedded derby database. So far the project will support only two languages and thats Swedish and English.
I am a beginner at internationalization I have not gotten that very far in this area. This is more of a question to se how this is done in real world applications.
I know how do change the language in an application
But its the database part that I am having great issues with. Could someone start an example that populate a localized database table with words in any languages.
How do you localize your applications when it comes to the database part?
What kind of data is this? How is it structured, and what purpose does it have?
The most common use of localized text is to display the GUI in different languages, based on the user's choice of language. Those texts would generally be held in properties files in the Java world. You can find extensive tutorials on that at https://docs.oracle.com/javase/tutorial/i18n/intro/.
One is the database itself. When you create a database, one of the parameters that generally forms it is the code page that its tables will use. It often has a default, such as UTF-8, and thus many people won't see it, but it's important if you have I18N requirements. A strictly ASCII code page, for example, couldn't manage Swedish text, as it's strictly un-decorated USA characters. NOT English, incidentally. No £ symbol! ASCII-Z, on the other hand, extends to most European alphabets. UTF-8 and Unicode can handle even more, going all the way up to Chinese and cuneiform.
So you want to make sure you can hold everything properly.
Then there's the consideration of the applications themselves. General business data would typically not be segregated by language. Señor Rodrigues is still Señor Rodrigues no matter what language you are using. But if you're storing constant values such as a list of application error messages, you'd either have a different table for each language or - more likely - have one table with a language key. But after that, the burden is on the application.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.