Use multi-idiom texts with pre-compilation support
LanguageSys is class for use in internationalized applications.
It handles the access to language files with the definition of texts for each supported idiom. These language files are in the .ini format.
It is also possible to pre-compile the definitions of language files to reduce the processing time.
This class approach is highly object oriented, so it makes the language definitions accessible as variables of the class itself.
It comes with a system to retrieve a list of all the available languages in
a given directory where the language files are located.
Language identifiers conform to RFC 1766 recommendations.
LanguageSys is also aviable for some other programming languages, eg. for Python. For more details see the homepage.
In german:
Diese Klasse ist dazu da, ein Programm in verschiedenen Sprachen bereitzustellen.
Sie übernimmt dabei das Auslesen von Sprachdateien, welche im Stil einer INI Datei aufgebaut sind.
Es ist auch möglich, die INI Dateien vorzukompilieren (precompiling), um so die Geschwindigkeit des Abarbeitens zu erhöhen.
Dieses System setzt auf hohe Objektorientiertheit, so werden alle ausgelesenen aliase als member-Variablen der eigenen Klasse zur Verfügung gestellt.
Des weiteren beinhaltet diese Klasse ein System, um anhand des Verzeichnisses mit den Sprachdateien eine Liste zu erstellen, die wiedergibt, welche Sprachen verfügbar sind.
Die Sprachen werden nach RFC1766 unterschieden.
LanguageSys ist auch für einige andere Programmiersprachen verfügbar, zum Beispiel für Python. Mehr details hierzu auf der Homepage.
Formatiert einen Timestamp in ein lesbares deutschprachiges Format.
Formatiert einen Timestamp in ein lesbares deutschprachiges Format. Es kann z.B. mit $datum->anzahl_der_tage die Anzahl der Tage des aktuellen Monats ermittelt werden. Ich hab dies deshalb gemacht, da in den Mailingslisten immer wieder Probleme mit den Datumsfunktionen auftreten. und ein Code wie date("t") für den Neuling eben nicht besonders ausssagekräftig ist - $datum->anzahl_der_tage hingegen schon!
This class can be used to compute the dates of Christian holidays that change depending on the year.
It takes a given year as parameter . The class can compute the date on the given year for the Ascension, Easter Pentecost, Ash Wednesday aud Good Friday days.
The code and comments are in French. In French:
Calcule les dates des fêtes de Pâques, Assension, Pentecôte, Mercredi des Cendres et Vendredi Saint pour l'année spécifiée (valable de 1582 à 2500).
This class is meant to manipulate dates in several formats. It also can perform a few types date operations and output the dates in formats that can be easily be translated to different languages.
You can take a look at the documentation.htm file for a complete guide and detailed description in French. The documentation is not yet translated to English but the methods used in the class may be easily understandable).
In French:
Cette classe permet de manipuler très facilement différents formats de dates suivant différents langages. Je vous laisse découvrir la documentation détaillée pour voir quelles en sont les spécificités.