Commit: 2683b74cb3ff5089cdffd9d3c498ec15cc99d0ec Author: Damien Picard Date: Wed Nov 16 12:02:50 2022 +0100 Branches: blender-v3.4-release https://developer.blender.org/rB2683b74cb3ff5089cdffd9d3c498ec15cc99d0ec
I18n: make screen capture image name translatable The default name when saving a screen capture in an unsaved .blend file is "screen.<ext>". This can be translated. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D16486 =================================================================== M source/blender/editors/screen/screendump.c =================================================================== diff --git a/source/blender/editors/screen/screendump.c b/source/blender/editors/screen/screendump.c index 569d6c2793c..89bb7158b30 100644 --- a/source/blender/editors/screen/screendump.c +++ b/source/blender/editors/screen/screendump.c @@ -29,6 +29,8 @@ #include "BKE_report.h" #include "BKE_screen.h" +#include "BLT_translation.h" + #include "RNA_access.h" #include "RNA_define.h" #include "RNA_prototypes.h" @@ -164,7 +166,8 @@ static int screenshot_invoke(bContext *C, wmOperator *op, const wmEvent *event) } /* extension is added by 'screenshot_check' after */ - char filepath[FILE_MAX] = "//screen"; + char filepath[FILE_MAX]; + BLI_snprintf(filepath, FILE_MAX, "//%s", DATA_("screen")); const char *blendfile_path = BKE_main_blendfile_path_from_global(); if (blendfile_path[0] != '\0') { BLI_strncpy(filepath, blendfile_path, sizeof(filepath)); _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
