<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - lang parameter of loleaflet.html"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=130110">130110</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lang parameter of loleaflet.html
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice Online
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>timar74@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>I tested Nextcloud integration but the problem is general. We need to
distinguish language variant and locale.
Steps to reproduce:
* Set Nextcloud language to English (US)
* Set Nextcloud locale to Swiss German
* Open spreadsheet in Collabora Online from a template with Swiss German spell
check language
Expected results:
* Collabora Online UI (e.g. menu bar) is in English
* Collabora Online spell check is in Swiss German
* Collabora Online local (e.g. cell format) is in Swiss German
Actual results:
* Collabora Online UI (e.g. menu bar) is in English
* Collabora Online spell check is in Swiss German
* Collabora Online locale (e.g. cell format) is in English
Nextcloud passes lang=en-ch which is weird (English as spoken in Switzerland?),
but Online falls back to en-US presumably.
Another example:
* Set Nextcloud language to English (US)
* Set Nextcloud locale to English (UK)
Nextcloud passed lang=en-gb. The Online JavaScript UI changed to en-GB (e.g.
"Colour") but tunneled dialog still came in en-US (e.g. "Color").
Another example:
* Set Nextcloud language to Portuguese (Brazil)
* Set Nextcloud locale to Portuguese (Portugal)
Nextcloud passed lang=pt-pt unexpectedly, thus the UI turned into Portuguese
(Portugal).
So on Online side, there should be a better interface.
* Existing lang parameter should expect a BCP 47 language tag or something
similar for UI language of Online (both js and tunneled stuff from core).
* There should be a new locale parameter and integrations should use it.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>