java - How do I internationalize catalogs? -


i have internationalize project, not tags of application, have internationalize catalogs too, e.g.

countries:

  • es : méxico, alemania, inglaterra, etc.
  • en : mexico, germany,england,etc

i don't want to create model next:

create table country (   id_country int not null auto_increment,   name_es varchar(100) not null,   name_en varchar(100) not null,   ....................,   primary key (`id_country`)); 

are there best practice, pattern design or framework solve problem ? because think common problem. i'm considering next model :

create table country (   id_country int not null auto_increment,   name varchar(100) not null,   languaje varchar(100) not null,   primary key (`id_country`)); 

the problem i'm going have many foreign keys 1 country queries going more complicated.

i'm using java, spring boot, spring data, javaserver faces, primefaces.

i hope can me.

thanks

honestly set, found having translations in xml flexible, , better incorporate in version control. human practices easier.

however database allows flexible usage, filtering, sorting etcetera.

something can have evaluation use: reports, integrity checks, statistics.

table texts     id       int auto_incr -- internally     key      varchar 30 -- public key in software     comment  varchar 80 -- translator info, noun, in menu     categ    varchar 20 -- glossar entry / menu / / tooltip     sortkey  varchar 20 -- order translation     ...  table locales     locale   varchar 10  table translations     textid   int     locale   varchar 160 

the idea prepare , coordinate work translators. translation memory formats export / import translating services. glossary quite important have consistent terms. effort put in translation @ dev side improves quality, , saves work around.

the production database can excerpt, or generated java listresourcebundle: array of strings.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -