Re: How to store different languages
From: J.O. Aho <user_at_example.net>
Date: Mon, 22 Apr 2019 23:27:50 +0200
Message-ID: <gi6pumFbmk7U1_at_mid.individual.net>
>
> I created a db in english and it'll be the main language but I should
> translate ingredients page also in other languages roughly ten!
>
> This data will be connected to a mobile app so in this app (like what
> happen for Instagram) every pages will have just icons (this will help
> me because icons don't need translation!) but in the ingredient page I
> should show ingredients in ten languages!
>
> This is what I should do, obviously other people will help me but I'd
> like to have an idea about it!
Date: Mon, 22 Apr 2019 23:27:50 +0200
Message-ID: <gi6pumFbmk7U1_at_mid.individual.net>
[Quoted] On 22/04/2019 18.51, ^Bart wrote:
>> Depending on the language you use to code the rest of your system >> with, it may already have a good way to handle internationalization, >> so the name of things in the database may just be the "translation >> key", which then used to select the correct text for the language to >> be used. >> >> This will make searching a bit more complex, but it may be better (and >> faster) to not have everything in the database.
>
> I created a db in english and it'll be the main language but I should
> translate ingredients page also in other languages roughly ten!
>
> This data will be connected to a mobile app so in this app (like what
> happen for Instagram) every pages will have just icons (this will help
> me because icons don't need translation!) but in the ingredient page I
> should show ingredients in ten languages!
>
> This is what I should do, obviously other people will help me but I'd
> like to have an idea about it!
[Quoted] [Quoted] For example in Android it's quite simple to do the translations with
help of the string.xml, see
https://developer.android.com/training/basics/supporting-devices/languages.html?hl=en
There should bi similar files in iOS too.
-- //AhoReceived on Mon Apr 22 2019 - 23:27:50 CEST