summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-07-06 09:23:01 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-07-06 09:23:01 +0200
commit7b848368d52ea84f3ce8e8b8792263de9f394c60 (patch)
tree8f71ac812da6f606959c96ebf45a74b4bdf6f3e9 /core/templates
parentde9ab49558b04c143f5c2d78ecc38651f6881fb9 (diff)
downloadnextcloud-server-7b848368d52ea84f3ce8e8b8792263de9f394c60.tar.gz
nextcloud-server-7b848368d52ea84f3ce8e8b8792263de9f394c60.zip
Add locale to templates
It was already added to the user template but we should add it to all templates. Else apps that want the locale but use special templating (hi richdocuments!) will fail. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.base.php2
-rw-r--r--core/templates/layout.guest.php2
-rw-r--r--core/templates/layout.public.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php
index 0529521bcdd..2d4fc726661 100644
--- a/core/templates/layout.base.php
+++ b/core/templates/layout.base.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-requesttoken="<?php p($_['requesttoken']); ?>">
<meta charset="utf-8">
<title>
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index a53cd82fcfd..ae685959351 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.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-requesttoken="<?php p($_['requesttoken']); ?>">
<meta charset="utf-8">
<title>
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index abd7e942c04..78f46f48a5a 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.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>