How to: Nationalisation of a DataEase 8 application
DataEase used to do special versions language versions up to version 6.x but have since 7.0 only delivered a English version of DataEase with some national files for sorting etc. In 7.2 we did a trial version in German, but we found very little interest for it and have since concentrated again on english.
The interest in DE8 has been great and in 2014 it seems that most developers want to develop in an English version but be able to deliver an application in local languages.
The old "way" caused a lot of trouble since applications didn't travel well as the language specific stuff was translated and integrated in the code.
In this little article with included sample we try to inspire you on how to fix your own "nationalisation".
The main problem with using an English version of DataEase is things like Spell functions and yes/no. These are functions that a lot of users have grown fond of and want to use but it doesn't look nice when Weekdays are spelt in English in France, Norway, Germany etc.
Same goes for Yes/No.
The latter is very easy to fix, simply use a choice field instead. This way the application will travel as well since the translation of Yes/No to Ja/Nein or Oui/Non wont affect it.
The second one is Weekday() or rather SpellWeekday(). Weekday only give you the day of the week from 1 to 7, while SpellWeekday() give you the day in clear language for the number 1 to 7.... do we see an opportunity to play with it here?
Yes, definitely. Weekday only give us a number so that is "international" so we simply have to find a way to interpret that into the correct spelling.
And that is simpler than you think. Choices are really stored as numbers, so by simply key the days in a choice field in the correct order and insert Weekday(etc) in the derivation we are there.
If you look in the attached sample you will see how to add different languages in one field etc, by simple arithmetic.
This will do for today, it is just meant to set your mind off so you start thinking down new roads rather than constantly visiting the same places.
Published: 30/09/14 - 21:59:53 (Mr. DataEase)
Last changed: 27/10/14 - 09:04:48 (Ulrik Jacob Hoegh - Krohn)