Sonntag, 4. Februar 2018

Mehrsprachige Webanwendungen für viele Serverplattformen

Auf http://Automatisierung.ddns.net/de/schoenheit befindet sich ein Beispiel für eine Webanwendung, die in viele Sprachen übersetzt werden kann, indem man nur .po- und HTML-Dateien übersetzt. Sie ist in Object Pascal geschrieben. Dafür existieren Compiler für viele Betriebssysteme und CPU-Typen. Die App wurde mit der Lazarus-IDE unter Verwendung eines speziellen Packages programmiert. Wenn man Lazarus/LCL/FCL kennt, kann man sehen, was Standard und was hinzugekommen ist. Die zentrale Komponentenklasse aus dem Package ist TCGIForm. Die Methode Read einer Instanz erzeugt für Jedes Formularelement eine Komponente mit gleichem Namen, die die eingegebenen Daten enthält.

Freitag, 2. Februar 2018

Multilingual web applications for many server platforms

An example of a web application, that can be translated to many languages by translating po and HTML files, is at http://Automatisierung.ddns.net/schoenheit. It is written in Object Pascal. For that language exist compilers to many operating systems and CPU types. It was made with the Lazarus IDE by using a special package. If you know Lazarus/LCL/FCL, you can see what is default and what is additionally. A central component of the package is the TCGIForm component, that simplifies the CGI communications with an HTML form by containing compatible components.