[Bug]: If I don't set the directive: 'force_lingual' => 'it', the links are always written in English
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
when I send the link url of a folder or a file nextcloud does not take into account the language set by the user or the default language set in config.php simply continues to indicate in English the writing: "- a safe home for all your data " while if I use the option 'force_language' => 'it', it is then correctly set in Italian I attach the 2 screenshots to make you understand
Steps to reproduce
-
Get a link to a file or folder
-
Send the URL via Telegram, WhatsApp, or similar
-
You'll notice that the text is always in English, regardless of the user's language.
Expected behavior
I expect that the links will be in the language set by the user or in the default language.
without me forcing the language by excluding the users' choice
Nextcloud Server version
32
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the report. Start by reproducing a shared file or folder link with a user language and default language configured, then compare the generated preview text with and without force_language. Done means the preview follows the user or default language without forcing that setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- internationalization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100