From ca9cdba2df8231e88575c0d56df1f72efc819950 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 1 Dec 2021 21:55:04 -0500 Subject: Fix: Add tooltip translation marker to disabled hints This was overlooked, as it seems there's no way for these strings to be translated currently. Generally it's not that clear whether `N_` or `TIP_` should be used in this case, but `TIP_` seems more consistent. To avoid the cost of the translation lookup when the UI text isn't necessary, we could allow the disabled hint argument to be optional. Differential Revision: https://developer.blender.org/D13141 --- source/blender/editors/space_file/asset_catalog_tree_view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/space_file/asset_catalog_tree_view.cc b/source/blender/editors/space_file/asset_catalog_tree_view.cc index 1b1517b7289..2b1bcb3ae0d 100644 --- a/source/blender/editors/space_file/asset_catalog_tree_view.cc +++ b/source/blender/editors/space_file/asset_catalog_tree_view.cc @@ -516,7 +516,7 @@ bool AssetCatalogDropController::has_droppable_asset(const wmDrag &drag, } } - *r_disabled_hint = "Only assets from this current file can be moved between catalogs"; + *r_disabled_hint = TIP_("Only assets from this current file can be moved between catalogs"); return false; } -- cgit v1.2.3