Archive 17/01/2023.

Some ideas for internationalization

1vanK
  1. There is an object that stores all the strings in all languages
  2. This object has a property “current language”
  3. This object has a method that returns a string with a certain identifier in the current language
  4. When changed property “language” called a event
  5. Any object can subscribe to this event and update their data when it occurs

Example:

drive.google.com/open?id=0B_XuF … G5WbWRpdFk

p.s. the source is very very dirty, it’s only test

1vanK

We need only one database for strings. Is it a good idea to implement it as a subsystem?

1vanK

Updated version. Now loading strings from *.json.

drive.google.com/open?id=0B_XuF … HNYTi1RYW8

Bananaft

?, !!!

But i’m sure, it would be much better to store each language in separate file.

1vanK

[quote=“Bananaft”]?, !!!

But i’m sure, it would be much better to store each language in separate file.[/quote]

I have not yet finished github.com/urho3d/Urho3D/pull/783 , but it is already possible

thebluefish

Simply amazing work dude!

rasteron

Great work 1vank! looks like it officially came through. really curious in trying this one out.

jmiller

Great work, 1vank!
An important feature (and great that Urho enjoys such a diverse user-base already).