From 7b848368d52ea84f3ce8e8b8792263de9f394c60 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 6 Jul 2018 09:23:01 +0200 Subject: [PATCH] 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 --- core/templates/layout.base.php | 2 +- core/templates/layout.guest.php | 2 +- core/templates/layout.public.php | 2 +- 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 @@ - + 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>