helgeerbe / picframe

Picture frame viewer for raspi, controlled via mqtt and automatticly integrated as mqtt device in homeassistant.
MIT License
114 stars 32 forks source link

Geolocation data not in set language #419

Open sapnho opened 1 day ago

sapnho commented 1 day ago

Last weekend, I completely reinstalled my PictureFrame to have all the Wayland/labwc stuff not just on my testing system but also on production.

Everything went rather smoothly but I can't figure out how I can get PicFrame to show the geolocation data in German. Which it did on my old system.

I have set locale: "de_DE.utf8" # "locale -a" shows the installed locales which could used

and have the locales installed on the Raspberry Pi:

pi@picframe:~ $ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
C
C.utf8
de_DE.utf8
en_GB.utf8
en_US.utf8
POSIX

I also deleted the pictureframe.db3 database and rebooted, thinking that there might be old language information in there.

Any thoughts?

sapnho commented 1 day ago

Is it possible to have a different default locale than the one chosen in Bookworm (if it is installed)?

sapnho commented 1 day ago

Ah, I can answer that question myself. The language set in configuration.yaml must be the default locale of Bookworm.

And you must update sudo nano /etc/default/locale accordingly manually because raspi-config doesn't do it.

LANG="de_DE.UTF-8"
LC_CTYPE="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"

followed by

export LANG="de_DE.UTF-8"
export LC_CTYPE="de_DE.UTF-8"
export LC_ALL="de_DE.UTF-8"
sapnho commented 1 day ago

Time for a write up: https://www.thedigitalpictureframe.com/personalizing-pi3d-pictureframe-how-to-localize-your-photo-geodata-in-any-language/