I would tend to agree, what solution do we have (apart from forcing the different offices to provide the 5 languages) ?
We had the same kind of disucussion today about the background layer. We talked about it and it seems that the only thing we ll keep is the position and zoom level. When one changes the topic all the layers will be removed the default background will be applied and the rest will be updated as well. I think it has to be considered as an application within an application.
Apparently it is the appropriate tradeoff to make it happen politically speaking. 
Even the urls will be topic specific.
map.sachplan.admin.ch -> map.geo.admin.ch?topic=sachplan

This is my understanding of the situation... I think this should be clarified and confirmed next week.

Envoyé depuis un mobile Samsung

-------- Message d'origine --------
De : Éric Lemoine <notifications@github.com> 
Date :  
A : geoadmin/mf-geoadmin3 <mf-geoadmin3@noreply.github.com> 
Cc : loicgasser <loicgasser4@gmail.com> 
Objet : Re: [mf-geoadmin3] Change available languages according to the topic #196 (#219) 
 
In src/components/translation/TranslationDirective.js:

> @@ -29,6 +25,23 @@
>                  gaPermalink.updateParams({lang: value});
>                });
>  
> +              function hasLang(langs) {
> +                for (var i = 0; i < langs.length; i++) {
> +                  if (langs[i].value === $translate.uses()) {
> +                    return true;
> +                  }
> +                }
> +                return false;
> +              };
> +
> +              scope.$on('gaTopicChange', function(event, topic) {
> +                if (!hasLang(topic.langs)) {
> +                  // lang not in topic, fallback to default code
> +                  scope.lang = scope.options.fallbackCode;
So the user selects some languag, then some topic, and if the topic doesn't support his language the app will switch languages automatically, and effectively changes the language of the whole interface. Doesn't sound like good user experience to me. What do you think?

—
Reply to this email directly or view it on GitHub.