]> source.dussan.org Git - nextcloud-server.git/commitdiff
Disable browser translations 34858/head
authorArnout Engelen <arnout@bzzt.net>
Thu, 27 Oct 2022 18:13:48 +0000 (20:13 +0200)
committerArnout Engelen <arnout@bzzt.net>
Thu, 27 Oct 2022 18:16:47 +0000 (20:16 +0200)
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>
core/templates/layout.base.php
core/templates/layout.guest.php
core/templates/layout.public.php
core/templates/layout.user.php

index d8a54bfec2e3eec8daa6bc03d80c48b2d865e1e1..b4cc9acd194af6c8be58f57e2fece0e68f708f90 100644 (file)
@@ -1,5 +1,5 @@
 <!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-requesttoken="<?php p($_['requesttoken']); ?>">
                <meta charset="utf-8">
                <title>
index c275d9746b719af5511b845445d3e6dbe91f9f1a..17f64e16edcc329cdb3e577bca71dfb11af0108f 100644 (file)
@@ -1,5 +1,5 @@
 <!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
 <?php if ($_['user_uid']) { ?>
        data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>"
index 7cff44fbc044043042116a85be9471af44dfc335..736a49eff224e75f1cadad18b1a73d97605097ae 100644 (file)
@@ -1,5 +1,5 @@
 <!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-requesttoken="<?php p($_['requesttoken']); ?>">
        <meta charset="utf-8">
        <title>
index 6fccfb6fa40ef08da836d3ad9588c2efa5c446e4..8ed5234bd28a7fbce7e708570b760cc78bdb9801 100644 (file)
@@ -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>