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?
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?