Skip to content

Too specific locale fi_FI #869

@kohtala

Description

@kohtala

Steps to reproduce

  1. Open Firefox or Chrome, configure Finnish as preferred language
  2. Remove config/config.php default_language.
  3. Share a link, open the link in Firefox or Chrome

Expected behaviour

Should see the link page in Finnish language.

Actual behaviour

Shows the link page in English.

Browser sends "Accept-Language: fi,en-US;q=0.7,en;q=0.3". The undefined default_language lets Nextcloud determine language from this request header. Nextcloud has language fi_FI, but no fi. Therefore Nextcloud defaults to en. Internet Explorer 11 has option to select both fi and fi-FI language, where fi-FI correctly selects the Nextcloud fi_FI language. Firefox and Chrome allow only fi language. Also, if Nextcould had language fi, but no fi_FI, I think Accept-Language of fi_FI would fall back to fi (see OC\L10N\Factory::findAvailableLanguages in lib/lib/private/l10n/factory.php). Therefore I think it is wrong that Nextcloud has specific fi_FI instead of the less specific fi. The same issue seems to be with other languages as well (af, am, bg, cs, cy, fy, hu, ka, ku, ms, mt, my, nb, nn, sw, tg, th, tl, ur, by looking at core/l10n), and I'm not sure if every language should have a generic fallback.

Server configuration

Operating system: Linux, openSUSE 13.2

Web server: Apache

Database: MySQL

PHP version: 5.6.1

Nextcloud version: Nextcloud 9.0.53 (stable)

Updated from an older Nextcloud/ownCloud or fresh install: fresh

Where did you install Nextcloud from: nextcloud.com nextcloud-9.0.53.tar.bz2

Signing status:
No errors have been found.

List of activated apps:
Enabled:

  • activity: 2.2.1
  • admin_audit: 1.0.0
  • comments: 0.2
  • dav: 0.1.6
  • federatedfilesharing: 0.1.0
  • federation: 0.0.4
  • files: 1.4.4
  • files_pdfviewer: 0.8.1
  • files_sharing: 0.9.1
  • files_texteditor: 2.1
  • files_trashbin: 0.8.0
  • files_versions: 1.2.0
  • files_videoplayer: 0.9.8
  • firstrunwizard: 1.1
  • gallery: 14.5.0
  • notifications: 0.2.3
  • password_policy: 1.0.0
  • provisioning_api: 0.4.1
  • systemtags: 0.2
  • templateeditor: 0.1
  • theming: 0.1.0
  • updatenotification: 0.1.0
    Disabled:
  • encryption
  • external
  • files_external
  • user_external
  • user_ldap
  • user_saml

The content of config/config.php:
{
"system": {
"passwordsalt": "_REMOVED SENSITIVE VALUE",
"secret": "_REMOVED SENSITIVE VALUE
",
"trusted_domains": [
"_REMOVED SENSITIVE VALUE"
],
"datadirectory": "_REMOVED SENSITIVE VALUE
",
"overwrite.cli.url": "_REMOVED SENSITIVE VALUE",
"htaccess.RewriteBase": "/",
"dbtype": "mysql",
"version": "9.0.53.0",
"dbname": "_REMOVED SENSITIVE VALUE
",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "_REMOVED SENSITIVE VALUE",
"dbpassword": "_REMOVED SENSITIVE VALUE
",
"logtimezone": "UTC",
"installed": true,
"instanceid": "_REMOVED SENSITIVE VALUE",
"singleuser": false,
"skeletondirectory": "_REMOVED SENSITIVE VALUE
",
"mail_from_address": "noreply",
"mail_smtpmode": "php",
"mail_domain": "_REMOVED SENSITIVE VALUE_"
}
}

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Firefox 48.0 or Chrome 52.0.2743.116 m

Operating system: Windows 7 Pro

Logs

Web server error log

Empty

Nextcloud log (data/nextcloud.log)

Unrelated errors
Error PHP Undefined variable: share at .../lib/private/share20/manager.php#996
Error PHP Undefined index: id at .../core/ajax/share.php#229
Error PHP Cannot modify header information - headers already sent by (output started at .../3rdparty/sabre/http/lib/Sapi.php:83) at .../3rdparty/sabre/http/lib/Sapi.php#63

Browser log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions