[Bf-blender-cvs] [e79312df6ee] blender-v3.3-release: I18n: translate recent files and bookmarks in the file browser

Damien Picard noreply at git.blender.org
Mon Aug 15 09:51:31 CEST 2022


Commit: e79312df6eef5a4d39752fefc6bb9cfec8699259
Author: Damien Picard
Date:   Mon Aug 15 09:48:20 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rBe79312df6eef5a4d39752fefc6bb9cfec8699259

I18n: translate recent files and bookmarks in the file browser

This is not dynamic: it only happens when the dir is added to the
list--automatically for recent files, and by the user for bookmarks.
Entries can then be manually renamed like other dirs. They will
keep the same name if the language is changed afterwards.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D15629

===================================================================

M	source/blender/editors/space_file/fsmenu.c

===================================================================

diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c
index 310c688383b..30e13235f45 100644
--- a/source/blender/editors/space_file/fsmenu.c
+++ b/source/blender/editors/space_file/fsmenu.c
@@ -443,7 +443,7 @@ void fsmenu_insert_entry(struct FSMenu *fsmenu,
         if (STREQ(tfsm->path, fsm_iter->path)) {
           icon = tfsm->icon;
           if (tfsm->name[0] && (!name || !name[0])) {
-            name = tfsm->name;
+            name = DATA_(tfsm->name);
           }
           break;
         }



More information about the Bf-blender-cvs mailing list