Re: How to store different languages

From: Luuk <luuk_at_invalid.lan>
Date: Tue, 23 Apr 2019 19:42:14 +0200
Message-ID: <5cbf4e74$0$22343$e4fe514c_at_news.xs4all.nl>


On 22-4-2019 23:27, J.O. Aho wrote:
> 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!

>
> 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.
>

and in dotnet:
https://docs.microsoft.com/en-us/dotnet/framework/resources/

https://docs.microsoft.com/en-us/dotnet/framework/resources/retrieving-resources-in-desktop-apps

-- 
Luuk
Received on Tue Apr 23 2019 - 19:42:14 CEST

Original text of this message