diff options
author | Arnout Engelen <arnout@bzzt.net> | 2022-10-27 20:13:48 +0200 |
---|---|---|
committer | Arnout Engelen <arnout@bzzt.net> | 2022-10-27 20:16:47 +0200 |
commit | 087deb9f1b45b9d9227cf5e82a18b21c6f788ff6 (patch) | |
tree | f0a919a45bc513981d5ea5e765b81815ef11a8fc /core/templates/layout.user.php | |
parent | 304c1b9b61b20dfa3c1f07e8a914f0661d91704d (diff) | |
download | nextcloud-server-087deb9f1b45b9d9227cf5e82a18b21c6f788ff6.tar.gz nextcloud-server-087deb9f1b45b9d9227cf5e82a18b21c6f788ff6.zip |
Disable browser translations
This will tell the browser not to translate the text on the page,
since this is very confusing given the good existing translation
support in Nextcloud and the fact that the language the Nextcloud
UI is set to might not match the language the content of the
instance is in, leading to surprising effects.
Better to disable it and remove the confusion.
Fixes #34857
Signed-off-by: Arnout Engelen <arnout@bzzt.net>
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 6fccfb6fa40..8ed5234bd28 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -13,7 +13,7 @@ $getUserAvatar = static function (int $size) use ($_): string { } ?><!DOCTYPE html> -<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" > +<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" translate="no" > <head data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>" data-requesttoken="<?php p($_['requesttoken']); ?>"> <meta charset="utf-8"> <title> |