diff --git a/chrome/content/zotero/xpcom/utilities_internal.js b/chrome/content/zotero/xpcom/utilities_internal.js index 587b8f0087..dc09a08566 100644 --- a/chrome/content/zotero/xpcom/utilities_internal.js +++ b/chrome/content/zotero/xpcom/utilities_internal.js @@ -1561,6 +1561,18 @@ Zotero.Utilities.Internal = { }, + /** + * Adds a localized colon to a string (which is usually just a colon, but, e.g., in French + * there's a space before it) + * + * @param {String} + * @return {String} + */ + stringWithColon: function (str) { + return Zotero.getString('punctuation.colon.withString', str); + }, + + resolveLocale: function (locale, locales) { // If the locale exists as-is, use it if (locales.includes(locale)) { diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 9ebb0a3c4d..f43341d0ed 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -116,6 +116,7 @@ about.getInvolved = Want to help? [Get involved] today! punctuation.openingQMark = “ punctuation.closingQMark = ” punctuation.colon = : +punctuation.colon.withString = %S: punctuation.ellipsis = … install.quickStartGuide = Zotero Quick Start Guide