Celebrat was written by Johan Walles (d92-jwa@nada.kth.se), lots of times on different platforms. The first (DOS) version probably saw the light of day back in -93. This GPL:ed Unix version was created towards the end of 1998. It's really useful. Promise.
The latest version can be found att
"http://www.student.nada.kth.se/~d92-jwa/code/celebrat".
Further down, this file describes how to translate Celebrat into your own favourite language. But first, some general stuff.
General stuff
To compile and install celebrat; do "./configure ; make install" in the directory where you found the file you are currently reading.
Celebrat requires a data-file in your home directory called ".celebrat". An example data file is created the first time you run Celebrat, then you can modify it to your preference.
The data file will look something like this:
--- Cut here ---
[Birthday]
6/4 Johan's mother
12/9 Johan Walles
12/25 Jesus
[Name-day]
12/9 Anna
[Festivity]
12/25 Christmas
[Temporary]
12/11 you're going to the dentist
12/5 you should send an expensive present to Johan
--- Cut here ---
If you then run celebrat on the fourth of december, the output should be:
--- Cut here ---
Tomorrow you should send an expensive present to Johan.
Thursday five days from now is Johan's birthday.
Thursday five days from now is Anna's name-day.
One week from now you're going to the dentist.
--- Cut here ---
Note that the headlines in the data-file are internationalised by gettext if you use any other language than English, so the example data-file will look a bit different then.
Translating Celebrat to a new language
The file ABOUT-NLS describes how to make use of your system's localisation features. If you want to translate Celebrat to a new language, this is how:
- In the "po" directory, copy "celebrat.pot" to "LL.po" where LL is the ISO 693 two-letter code for your language. Some country codes can be found in the ABOUT-NLS file in the top directory of the distribution.
- Add the new language to the ALL_LINGUAS variable in the top "configure.in" file. ALL_LINGUAS is space separated, so for Swedish and French the line would read `ALL_LINGUAS = "sv fr"´.
- Translate all the strings in the .po file you just created. The new translations come to effect when you do `make install´ (I think).
When you've translated Celebrat to a new language, I'd appreciate very much if you e-mailed me the changes at d92-jwa@nada.kth.se. Thanks a bunch!
/Johan
