i18n: code cleanup and fixing unneeded translation (when partial translation is used only)

This commit is contained in:
2011-09-19 15:10:38 +00:00
parent fed2994697
commit 706a2c80f0
101 changed files with 363 additions and 272 deletions

View File

@@ -116,7 +116,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, UI_translate_do_iface(N_("%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;