Merge pull request #671 from gracile-fr/localize-locators-labels

Add localized locator labels
This commit is contained in:
Dan Stillman 2015-05-21 02:19:16 -04:00
commit 8352934009
5 changed files with 19 additions and 7 deletions

View file

@ -115,7 +115,7 @@ var Zotero_Citation_Dialog = new function () {
var i = 0;
for(var value in locators) {
var locator = locators[value];
var locatorLabel = locator[0].toUpperCase()+locator.substr(1);
var locatorLabel = Zotero.getString('citation.locator.'+locator.replace(/\s/g,''));
// add to list of labels
var child = document.createElement("menuitem");
child.setAttribute("value", value);

View file

@ -79,8 +79,7 @@ var Zotero_QuickFormat = new function () {
var menu = document.getElementById("locator-label");
var labelList = document.getElementById("locator-label-popup");
for each(var locator in locators) {
// TODO localize
var locatorLabel = locator[0].toUpperCase()+locator.substr(1);
var locatorLabel = Zotero.getString('citation.locator.'+locator.replace(/\s/g,''));
// add to list of labels
var child = document.createElement("menuitem");

View file

@ -64,7 +64,7 @@ var Zotero_CSL_Editor = new function() {
var locators = Zotero.Cite.labels;
for each(var type in locators) {
var locator = type;
locator = locator[0].toUpperCase()+locator.substr(1);
locator = Zotero.getString('citation.locator.'+locator.replace(/\s/g,''));
pageList.appendItem(locator, type);
}

View file

@ -189,9 +189,6 @@
<!ENTITY zotero.citation.keepSorted.label "Keep Sources Sorted">
<!ENTITY zotero.citation.page "Page">
<!ENTITY zotero.citation.paragraph "Paragraph">
<!ENTITY zotero.citation.line "Line">
<!ENTITY zotero.citation.suppressAuthor.label "Suppress Author">
<!ENTITY zotero.citation.prefix.label "Prefix:">
<!ENTITY zotero.citation.suffix.label "Suffix:">

View file

@ -677,6 +677,22 @@ citation.showEditor = Show Editor…
citation.hideEditor = Hide Editor…
citation.citations = Citations
citation.notes = Notes
citation.locator.page = Page
citation.locator.book = Book
citation.locator.chapter = Chapter
citation.locator.column = Column
citation.locator.figure = Figure
citation.locator.folio = Folio
citation.locator.issue = Issue
citation.locator.line = Line
citation.locator.note = Note
citation.locator.opus = Opus
citation.locator.paragraph = Paragraph
citation.locator.part = Part
citation.locator.section = Section
citation.locator.subverbo = Sub verbo
citation.locator.volume = Volume
citation.locator.verse = Verse
report.title.default = Zotero Report
report.parentItem = Parent Item: