gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-deployment] branch master updated: more acurate lang


From: gnunet
Subject: [GNUnet-SVN] [taler-deployment] branch master updated: more acurate language detection
Date: Sat, 16 Dec 2017 21:26:20 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new e4bf87b  more acurate language detection
e4bf87b is described below

commit e4bf87bdca07c4ad1a6a3b875ff94014f5cf2faf
Author: Florian Dold <address@hidden>
AuthorDate: Sat Dec 16 21:26:04 2017 +0100

    more acurate language detection
---
 etc/nginx/nginx.conf | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf
index e397fed..9c08dc0 100644
--- a/etc/nginx/nginx.conf
+++ b/etc/nginx/nginx.conf
@@ -58,10 +58,16 @@ http {
         # for now it's good enough.
         map $http_accept_language $index_redirect_uri {
           default "en";
-          ~en "en";
-          ~de "de";
-          ~fr "fr";
-          ~es "it";
+          # prefer language that's first in the list
+          ~^en "en";
+          ~^de "de";
+          ~^fr "fr";
+          ~^es "it";
+          # if none matches, take one later in the list
+          ~,en "en";
+          ~,de "de";
+          ~,fr "fr";
+          ~,es "it";
         }
 
        ##

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]