I18n: Use rpt_ instead of tip_ to translate reports

This was the case in:
- FBX add-on
- Cycles OSL
This commit is contained in:
Damien Picard
2025-09-24 22:28:08 +02:00
committed by Bastien Montagne
parent 2750cc1a70
commit 7ec15a3a98
2 changed files with 10 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ from __future__ import annotations
import bpy
import _cycles
from bpy.app.translations import pgettext_tip as tip_
from bpy.app.translations import pgettext_rpt as rpt_
def osl_compile(input_path, report):
@@ -307,7 +307,7 @@ def update_script_node(node, report):
sockets.remove(sockets[identifier])
else:
ok = False
report({'ERROR'}, tip_("OSL query failed to open %s") % oso_path)
report({'ERROR'}, rpt_("OSL query failed to open %s") % oso_path)
else:
report({'ERROR'}, "OSL script compilation failed, see console for errors")
@@ -359,7 +359,7 @@ def update_custom_camera_shader(cam, report):
del custom_props[prop]
else:
ok = False
report({'ERROR'}, tip_("OSL query failed to open %s") % oso_path)
report({'ERROR'}, rpt_("OSL query failed to open %s") % oso_path)
else:
report({'ERROR'}, "Custom Camera shader compilation failed, see console for errors")