Page MenuHome

File browser system folders doesn't change with interface language.
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: Radeon RX550/550 Series ATI Technologies Inc. 4.5.14736 Core Profile Context 20.8.3 27.20.12027.1001

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-10 21:55, hash: rB66078594d130
Worked: (newest version of Blender that worked as expected)

Short description of error
File browser system folders doesn't change with interface language

Exact steps for others to reproduce the error
Be sure to remember visually where language menu is :)

  1. In preferences change language to Simplified Chinese (I haven't tried others)
  2. Close Blender (with autosave preferences)
  3. Open Blender
  4. In preferences change language to English
  5. Open file browser (save file)

System folders are in chinese until next Blender restart.
If system folder is in Recent folders, it has chinese name forever.

Event Timeline

Richard Antalik (ISS) changed the task status from Needs Triage to Confirmed.Sep 15 2020, 2:25 PM

I guess I will confirm this for myself

Julian Eisel (Severin) triaged this task as Low priority.Sep 21 2020, 12:45 PM
Julian Eisel (Severin) changed the subtype of this task from "Report" to "Bug".

I'm not sure if I am following the instructions correctly, but...

I start Blender in English. I select File/Open and I see a display like this:

I go straight into Preferences (without restarting Blender) and change my language to Chinese. I then select File / Open and see this:

This seems right. And I get the same result if I close and restart the program at any point. Am I missing a step or not understanding the complaint?

Okay, I have seen it screw up, but in fairly narrow circumstance...

Working: Within a single blender session, so not restarting at any time, I can switch between English and Chinese and back again any number of times, and each time will see the correct System List.

Working: I am in Chinese and then change language to English, THEN file/open I will see the System list correctly. Then close blender and restart and I still see the correct System List names

Working: I am in English and then change language to Chinese, but then immediately close blender. When I open it again the System List is properly in Chinese.

Broken: I am in Chinese and then change language to English, but then immediately close blender. When I open it again the System List is Chinese until I restart.

And while debugging I have been unable to see the issue - it works correctly every time.

I checked this in debug build, and I was able to reproduce.

You should not be calling IFACE_("Pictures") in fsmenu_read_system this will cause the msgid to be translated, and when you switch languages it will use the translated text as msgid, come up empty and stick with the previous translation.

fsmenu_add_windows_folder(fsmenu,
                          FS_CATEGORY_SYSTEM_BOOKMARKS,
                          &FOLDERID_Pictures,
                          "Pictures",
                          ICON_FILE_IMAGE,
                          FS_INSERT_LAST);

makes it work for me.

I can fix it. @Ray Molenkamp (LazyDodo) figured it out. My own mistake with that area.