translate left panel
This commit is contained in:
@@ -37,6 +37,8 @@
|
||||
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BLF_api.h"
|
||||
|
||||
#include "BKE_context.h"
|
||||
|
||||
|
||||
@@ -117,7 +119,7 @@ uiBut *uiDefAutoButR(uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, int ind
|
||||
}
|
||||
case PROP_COLLECTION: {
|
||||
char text[256];
|
||||
sprintf(text, "%d items", RNA_property_collection_length(ptr, prop));
|
||||
sprintf(text, _("%d items"), RNA_property_collection_length(ptr, prop));
|
||||
but= uiDefBut(block, LABEL, 0, text, x1, y1, x2, y2, NULL, 0, 0, 0, 0, NULL);
|
||||
uiButSetFlag(but, UI_BUT_DISABLED);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user