diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-07-17 10:08:51 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2018-06-27 13:19:40 +0200 |
commit | bf6bfad76bcf40266f7a7bdc71cbf59e8873abe7 (patch) | |
tree | 321bdc812bcdb406eec85d5405ea7d8b527a307a /core/templates/layout.user.php | |
parent | 7d8124ad66d336b99c48936e2a6a84ea4d0fef09 (diff) | |
download | nextcloud-server-bf6bfad76bcf40266f7a7bdc71cbf59e8873abe7.tar.gz nextcloud-server-bf6bfad76bcf40266f7a7bdc71cbf59e8873abe7.zip |
OC.getLocale() now returns Locale and no longer Language
Added OC.getLanguage() to get Language
<html lang=''> still gets language, though according to IETF BCP47 locale should be good.
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'core/templates/layout.user.php')
-rw-r--r-- | core/templates/layout.user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 44820c4a9a8..3cac14b4ab3 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" > +<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" > <head data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>" data-requesttoken="<?php p($_['requesttoken']); ?>"> <meta charset="utf-8"> <title> |