skiwithpete / alarmpi

This is the latest version of the alarm clock for Raspberry Pi project.
116 stars 49 forks source link

Support for other languages - Inclusion of num2words #14

Open HawkingJan opened 8 years ago

HawkingJan commented 8 years ago

Hi,

actually I want to "teach" my alarmpi installation German. The replacements of some hard coded strings (e.g. the bbc reference in get_news.py or the text explanation of the weather and some others) was easily done and I'm not sure if would be worth the effort to have the text completely separated from the code). The change of better_spoken_numbers.py is actually a bit more complicated. I wonder if you are aware of the num2words package https://github.com/savoirfairelinux/num2words Maybe it is a good idea to switch to have a "lang=" in the main section of alarm.config and switch to this external package then to build the numbers your self?