Localized demo server

Tags: #<Tag:0x00007f0147e740b0>

(Mueller Ma) #1

I think its good to create localized sitemaps on the demo server. Especially for screenshots for the mobile apps.

(Mueller Ma) #2

I just saw that some pages are translated, e.g. http://demo.openhab.org:8080/basicui/app?w=GF_Toilet&sitemap=demo
I think it’s better to have one sitemap per language and not one mixed sitemap.

(Mueller Ma) #3

@Kai @ThomDietrich Does one of you manage the demo server?

(Kai Kreuzer) #4

Yes, I deal with the demo server.
It actually contains the (only English) demo files from the distro, but as it has the HomeBuilder installed, people are playing with it and create new items in different languages that are then picked up by the dynamic sitemap pages (like the rooms where the sitemap only refers to the group item).

The best way to avoid this is probably to remove the dynamic groups from the demo.sitemap - or create a (list of?) specific sitemaps for the different languages, which could all be added to https://github.com/openhab/openhab-distro/tree/master/features/distro-resources/src/main/resources/sitemaps - feel free to create those in a PR.

(Kuba Wolanin) #5

and I believe I should add some config property to Home Builder so it doesn’t happen at all :slight_smile:
I’m just recovering from a actual home building craze (hence my absence here) so I think I’ll submit a PR for that as well.

(Kai Kreuzer) #6

You mean a parameter that lets people play with the homebuilder, but that doesn’t create anything in the end? Yes, might be useful for this, but it could be a hidden/undocumented feature as there probably is no use for any regular setup.

(Mike Jonson) #7

This post was flagged by the community and is temporarily hidden.

(Hakan Tandogan) #8

For my own testing purposes, I have created a few docker images (four, in fact, as of now, “default”, german, french and turkish) which change their language on the fly and display a testbed setup.

If so wanted, I could port my setup to where the demo server lives, so we could have, say,

which is actually very similiar to my internal testbed setup, albeit with different domain names :smile:

(Mueller Ma) #9

IMO it’s better to have localized sitemaps and the clients should choose the sitemap based on the device’s locale. There is already that can be used as a starting point: https://github.com/openhab/openhab-distro/blob/master/features/distro-resources/src/main/resources/sitemaps/lang_en_GB.sitemap
Because Crowdin cannot deal very well with the sitemap, one has to write a script (like this https://github.com/openhab/openhab-android/tree/master/assets/store_descriptions), that takes strings from a xml file and assembles sitemap files.