desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Translation issues still unresolved

Open AinzRimuru opened this issue 9 months ago • 15 comments

⚠️ Before submitting, please verify the following: ⚠️

Bug description

I have updated to the latest version, but the language is still not updated to the language of my computer (Simplified Chinese). The language used by the software is still English after a certain update.

Steps to reproduce

No need to do anything

Expected behavior

Show Chinese

Which files are affected by this bug

None

Operating system

Windows

Which version of the operating system you are running.

Windows11

Package

Official Windows MSI

Nextcloud Server version

30.0.2

Nextcloud Desktop Client version

3.16.2

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • [ ] Default internal user-backend
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Nextcloud Server logs


Additional info

Image

AinzRimuru avatar Mar 29 '25 10:03 AinzRimuru

thanks for reporting this issue again! the one that we resolved with #8081 was affecting macOS only.

in that PR I also added some extra logs at application startup to help with diagnosing issues regarding translations there. --> can you please try a daily build and post the first few log lines? (I'm interested in the ones that contain application.cpp:)

nilsding avatar Mar 29 '25 14:03 nilsding

I installed the daily build. The version now displayed is: 3.17.0 alpha (Windows). I don't see the logs containing what you describe. @nilsding

AinzRimuru avatar Mar 29 '25 15:03 AinzRimuru

@AinzLimuru thanks for providing the logs I was interested in these two lines (found them in 20250329_2254_nextcloud.log.0.gz):

2025-03-29 22:54:23:142 [ info nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-29568\client-building\desktop\src\gui\application.cpp:1006 ]:	System UI languages are: QList("zh-Hans-CN", "zh-CN", "zh", "en-US", "en-Latn-US", "en")
2025-03-29 22:54:23:142 [ info nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-29568\client-building\desktop\src\gui\application.cpp:1009 ]:	selected application language: "zh_Hans_CN"

seems like we need to update the language substitution function used during application startup... I'll see what I can do

nilsding avatar Mar 29 '25 15:03 nilsding

Thank you for your efforts. @nilsding

AinzRimuru avatar Mar 29 '25 15:03 AinzRimuru

Also noticed on some macOS environment (English UI occurs despite the operating system language is in French). Two tests with desktop client 3.14 and 3.16 : same result.

Jerome-Herbinet avatar Apr 04 '25 12:04 Jerome-Herbinet

@Jerome-Herbinet try a daily macOS build -- with #8081 merged this should work again.

will be part of ~~3.16.3 and~~ 3.17.0

nilsding avatar Apr 04 '25 13:04 nilsding

@AinzLimuru for the time being if you're on a daily build >= 20250408 you can enforce the UI language by setting this in your %APPDATA%/Nextcloud/nextcloud.cfg:

[General]
language=zh_CN

This doesn't resolve the autodetection issue however, so I'll leave this issue open.

nilsding avatar Apr 09 '25 08:04 nilsding

@nilsding Windows 11 is configured with language=zh_CN but it doesn't work. Maybe you need to explicitly add the language selection option in the settings.

gloryandel avatar Apr 09 '25 12:04 gloryandel

@nilsding This temporary solution worked, thanks.

AinzRimuru avatar Apr 09 '25 14:04 AinzRimuru

3.16.3 same ,Could this be a compatibility issue with the older configuration? I add language=zh_CN to nextcloud.cfg seems not worked

ted423 avatar Apr 17 '25 01:04 ted423

I must have misread; it seems an alpha version is required.

ted423 avatar Apr 17 '25 02:04 ted423

@ted423 Download it from here. https://download.nextcloud.com/desktop/daily/

AinzRimuru avatar Apr 17 '25 04:04 AinzRimuru

@ted423 sorry for that, I got confused where this config change would end up in 😅

as it's already available in the daily builds it'll be part of 3.17.0

nilsding avatar Apr 17 '25 05:04 nilsding

3.16.3 same ,Could this be a compatibility issue with the older configuration? I add language=zh_CN to nextcloud.cfg seems not worked

3.17.2 I used the method provided by #8096 to edit %APPDATA%\Nextcloud\nextcloud.cfg and added language=zh_CN under [General], successfully setting the language to Chinese.

Image Image

Xuaner183 avatar Sep 30 '25 15:09 Xuaner183

The Windows client version 4.01 still requires editing Nextcloud.cfg to specify a language that is consistent with the operating system.

ywtoly avatar Nov 26 '25 06:11 ywtoly

@nilsding I tested the command line dism /online /get-intl and it returned the correct language information. Is it possible to improve the language selection process based on this?

AinzRimuru avatar Dec 16 '25 02:12 AinzRimuru

@AinzRimuru while it would be possible in theory, it's rarely a good idea to invoke an external command just to e.g. determine the language/locale to be used.

nilsding avatar Dec 16 '25 07:12 nilsding

@AinzRimuru while it would be possible in theory, it's rarely a good idea to invoke an external command just to e.g. determine the language/locale to be used.

My idea is whether it's possible to mimic the implementation of DISM to call system functions.

AinzRimuru avatar Dec 16 '25 07:12 AinzRimuru

@nilsding @AinzRimuru Try #9108 ?

findlayfeng avatar Dec 16 '25 09:12 findlayfeng