From 3409811b6c1d59916002302ccfa4719a668e835a Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 5 Nov 2010 03:11:49 +0000 Subject: [PATCH] Zotero.CreatorTypes.getLocalizedString() --- chrome/content/zotero/xpcom/data/cachedTypes.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chrome/content/zotero/xpcom/data/cachedTypes.js b/chrome/content/zotero/xpcom/data/cachedTypes.js index f3928e61b9..795efe5610 100644 --- a/chrome/content/zotero/xpcom/data/cachedTypes.js +++ b/chrome/content/zotero/xpcom/data/cachedTypes.js @@ -179,6 +179,11 @@ Zotero.CreatorTypes = new function() { } + this.getLocalizedString = function(idOrName) { + return Zotero.getString("creatorTypes."+this.getName(idOrName)); + } + + this.itemTypeHasCreators = function (itemTypeID) { if (typeof _hasCreatorTypeCache[itemTypeID] != 'undefined') { return _hasCreatorTypeCache[itemTypeID];