Page MenuHome

Fix T93456: Properly translate operator on splash screen
ClosedPublic

Authored by Jesse Yurkovich (deadpin) on Nov 29 2021, 4:03 AM.

Details

Summary

Use the translation API to lookup the pre-formatted string.

Diff Detail

Repository
rB Blender

Event Timeline

Jesse Yurkovich (deadpin) requested review of this revision.Nov 29 2021, 4:03 AM
Jesse Yurkovich (deadpin) created this revision.
Bastien Montagne (mont29) requested changes to this revision.Nov 29 2021, 9:03 AM

I do not understand that patch... First of all, explicit call to iface_ should not be needed here, those overriding text parameters of UI layout functions are automatically extracted. And you do can find this string in all the POs (and the blender.pot) files in i18n repo already...

So if it is not currently translated in the UI, the issue lies somewhere else.

This revision now requires changes to proceed.Nov 29 2021, 9:03 AM

The issue is that it's a formatted string, so "Load 2.93 Settings" is the value that is passed in and attempted to be translated.

Oooooh right, good call.

Thanks, then LGTM.

This revision is now accepted and ready to land.Nov 29 2021, 10:53 AM

And think this is OK for 3.0 too.