Skip to content

Commit

Permalink
update: locale variables for template editor
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Sep 21, 2024
1 parent 12e0ac9 commit fca3899
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 152 deletions.
69 changes: 39 additions & 30 deletions addon/locale/en-US/templateEditor.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -83,63 +83,72 @@ snippet-itemInLoop = in loop
.title = Content to be rendered for each item in the loop
snippet-itemAfterLoop = after loop
.title = Content to be rendered after the loop of items
-variable-type = Type
-variable-item = Zotero.Item
-variable-note = Zotero.NoteItem
-variable-annotation = Zotero.AnnotationItem
-variable-string = string
-variable-object = object
-variable-function = function
snippet-itemItems = items
.title = Type: Zotero.Item[]. The array of items to be rendered, available in beforeLoop and afterLoop stage
.title = { -variable-type }: { -variable-item }[]. The array of items to be rendered, available in beforeLoop and afterLoop stage
snippet-itemItem = item
.title = Type: Zotero.Item. The current item to be rendered, available in inLoop stage
.title = { -variable-type }: { -variable-item }. The current item to be rendered, available in inLoop stage
snippet-itemTopItem = top item
.title = Type: Zotero.Item. The top-level parent of the variable `item`, available in inLoop stage
.title = { -variable-type }: { -variable-item }. The top-level parent of the variable `item`, available in inLoop stage
snippet-itemTargetNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to which the template is attached, available in any stage
.title = { -variable-type }: { -variable-note }. The note item to which the template is attached, available in any stage
snippet-itemCopyNoteImage = copy note image
.title = Type: Function. Copy the image of the note to the clipboard, available in any stage
.title = { -variable-type }: { -variable-function }. Copy the image of the note to the clipboard, available in any stage
snippet-itemSharedObj = shared object
.title = Type: Object. A shared object that can be used to store data across different stages
.title = { -variable-type }: { -variable-object }. A shared object that can be used to store data across different stages
snippet-itemFieldTitle = title
.title = Type: string. The title of the top item
.title = { -variable-type }: { -variable-string }. The title of the top item
snippet-itemFieldAbstract = abstract
.title = Type: string. The abstract of the top item
.title = { -variable-type }: { -variable-string }. The abstract of the top item
snippet-itemFieldCitKey = citation key
.title = Type: string. The citation key of the top item
.title = { -variable-type }: { -variable-string }. The citation key of the top item
snippet-itemFieldDate = date
.title = Type: string. The publication date of the top item
.title = { -variable-type }: { -variable-string }. The publication date of the top item
snippet-itemFieldDOI = DOI
.title = Type: string. The DOI of the top item
.title = { -variable-type }: { -variable-string }. The DOI of the top item
snippet-itemFieldDOIURL = DOI or URL
.title = Type: string. The DOI or URL of the top item
.title = { -variable-type }: { -variable-string }. The DOI or URL of the top item
snippet-itemFieldAuthors = authors
.title = Type: string. The authors of the top item
.title = { -variable-type }: { -variable-string }. The authors of the top item
snippet-itemFieldJournal = journal
.title = Type: string. The journal of the top item
.title = { -variable-type }: { -variable-string }. The journal of the top item
snippet-itemFieldTitleTranslation = title translation
.title = Type: string. The title translation of the top item
.title = { -variable-type }: { -variable-string }. The title translation of the top item
snippet-textTargetNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to which the template is attached
.title = { -variable-type }: { -variable-note }. The note item to which the template is attached
snippet-textSharedObj = shared object
.title = Type: Object. A shared object that can be used to store data
.title = { -variable-type }: { -variable-object }. A shared object that can be used to store data
snippet-quickInsertLink = note link
.title = Type: string. The link of the note item to be linked
.title = { -variable-type }: { -variable-string }. The link of the note item to be linked
snippet-quickInsertLinkText = link text
.title = Type: string. The default label of the link
.title = { -variable-type }: { -variable-string }. The default label of the link
snippet-quickInsertSubNoteItem = linked note
.title = Type: Zotero.NoteItem. The note item to be linked to
.title = { -variable-type }: { -variable-note }. The note item to be linked to
snippet-quickInsertNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to which the template is attached
.title = { -variable-type }: { -variable-note }. The note item to which the template is attached
snippet-quickImportLink = note link
.title = Type: string. The link of the note item to be imported
.title = { -variable-type }: { -variable-string }. The link of the note item to be imported
snippet-quickImportNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to which the template is attached
.title = { -variable-type }: { -variable-note }. The note item to which the template is attached
snippet-quickNoteAnnotationItem = annotation
.title = Type: Zotero.AnnotationItem. The annotation item to be converted to a note
.title = { -variable-type }: { -variable-annotation }. The annotation item to be converted to a note
snippet-quickNoteTopItem = top item
.title = Type: Zotero.Item. The top-level parent of the variable `annotationItem`
.title = { -variable-type }: { -variable-item }. The top-level parent of the variable `annotationItem`
snippet-quickNoteNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to which the template is attached
.title = { -variable-type }: { -variable-note }. The note item to which the template is attached
snippet-exportMDFileNameNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to be exported
.title = { -variable-type }: { -variable-note }. The note item to be exported
snippet-exportMDFileHeaderNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to be exported
.title = { -variable-type }: { -variable-note }. The note item to be exported
snippet-exportMDFileContentNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to be exported
.title = { -variable-type }: { -variable-note }. The note item to be exported
snippet-exportMDFileContentMDContent = markdown content
.title = Type: string. The markdown content to be exported
.title = { -variable-type }: { -variable-string }. The markdown content to be exported
69 changes: 39 additions & 30 deletions addon/locale/it-IT/templateEditor.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -83,63 +83,72 @@ snippet-itemInLoop = in loop
.title = Content to be rendered for each item in the loop
snippet-itemAfterLoop = after loop
.title = Content to be rendered after the loop of items
-variable-type = Type
-variable-item = Zotero.Item
-variable-note = Zotero.NoteItem
-variable-annotation = Zotero.AnnotationItem
-variable-string = string
-variable-object = object
-variable-function = function
snippet-itemItems = items
.title = Type: Zotero.Item[]. The array of items to be rendered, available in beforeLoop and afterLoop stage
.title = { -variable-type }: { -variable-item }[]. The array of items to be rendered, available in beforeLoop and afterLoop stage
snippet-itemItem = item
.title = Type: Zotero.Item. The current item to be rendered, available in inLoop stage
.title = { -variable-type }: { -variable-item }. The current item to be rendered, available in inLoop stage
snippet-itemTopItem = top item
.title = Type: Zotero.Item. The top-level parent of the variable `item`, available in inLoop stage
.title = { -variable-type }: { -variable-item }. The top-level parent of the variable `item`, available in inLoop stage
snippet-itemTargetNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to which the template is attached, available in any stage
.title = { -variable-type }: { -variable-note }. The note item to which the template is attached, available in any stage
snippet-itemCopyNoteImage = copy note image
.title = Type: Function. Copy the image of the note to the clipboard, available in any stage
.title = { -variable-type }: { -variable-function }. Copy the image of the note to the clipboard, available in any stage
snippet-itemSharedObj = shared object
.title = Type: Object. A shared object that can be used to store data across different stages
.title = { -variable-type }: { -variable-object }. A shared object that can be used to store data across different stages
snippet-itemFieldTitle = title
.title = Type: string. The title of the top item
.title = { -variable-type }: { -variable-string }. The title of the top item
snippet-itemFieldAbstract = abstract
.title = Type: string. The abstract of the top item
.title = { -variable-type }: { -variable-string }. The abstract of the top item
snippet-itemFieldCitKey = citation key
.title = Type: string. The citation key of the top item
.title = { -variable-type }: { -variable-string }. The citation key of the top item
snippet-itemFieldDate = date
.title = Type: string. The publication date of the top item
.title = { -variable-type }: { -variable-string }. The publication date of the top item
snippet-itemFieldDOI = DOI
.title = Type: string. The DOI of the top item
.title = { -variable-type }: { -variable-string }. The DOI of the top item
snippet-itemFieldDOIURL = DOI or URL
.title = Type: string. The DOI or URL of the top item
.title = { -variable-type }: { -variable-string }. The DOI or URL of the top item
snippet-itemFieldAuthors = authors
.title = Type: string. The authors of the top item
.title = { -variable-type }: { -variable-string }. The authors of the top item
snippet-itemFieldJournal = journal
.title = Type: string. The journal of the top item
.title = { -variable-type }: { -variable-string }. The journal of the top item
snippet-itemFieldTitleTranslation = title translation
.title = Type: string. The title translation of the top item
.title = { -variable-type }: { -variable-string }. The title translation of the top item
snippet-textTargetNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to which the template is attached
.title = { -variable-type }: { -variable-note }. The note item to which the template is attached
snippet-textSharedObj = shared object
.title = Type: Object. A shared object that can be used to store data
.title = { -variable-type }: { -variable-object }. A shared object that can be used to store data
snippet-quickInsertLink = note link
.title = Type: string. The link of the note item to be linked
.title = { -variable-type }: { -variable-string }. The link of the note item to be linked
snippet-quickInsertLinkText = link text
.title = Type: string. The default label of the link
.title = { -variable-type }: { -variable-string }. The default label of the link
snippet-quickInsertSubNoteItem = linked note
.title = Type: Zotero.NoteItem. The note item to be linked to
.title = { -variable-type }: { -variable-note }. The note item to be linked to
snippet-quickInsertNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to which the template is attached
.title = { -variable-type }: { -variable-note }. The note item to which the template is attached
snippet-quickImportLink = note link
.title = Type: string. The link of the note item to be imported
.title = { -variable-type }: { -variable-string }. The link of the note item to be imported
snippet-quickImportNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to which the template is attached
.title = { -variable-type }: { -variable-note }. The note item to which the template is attached
snippet-quickNoteAnnotationItem = annotation
.title = Type: Zotero.AnnotationItem. The annotation item to be converted to a note
.title = { -variable-type }: { -variable-annotation }. The annotation item to be converted to a note
snippet-quickNoteTopItem = top item
.title = Type: Zotero.Item. The top-level parent of the variable `annotationItem`
.title = { -variable-type }: { -variable-item }. The top-level parent of the variable `annotationItem`
snippet-quickNoteNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to which the template is attached
.title = { -variable-type }: { -variable-note }. The note item to which the template is attached
snippet-exportMDFileNameNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to be exported
.title = { -variable-type }: { -variable-note }. The note item to be exported
snippet-exportMDFileHeaderNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to be exported
.title = { -variable-type }: { -variable-note }. The note item to be exported
snippet-exportMDFileContentNoteItem = target note
.title = Type: Zotero.NoteItem. The note item to be exported
.title = { -variable-type }: { -variable-note }. The note item to be exported
snippet-exportMDFileContentMDContent = markdown content
.title = Type: string. The markdown content to be exported
.title = { -variable-type }: { -variable-string }. The markdown content to be exported
Loading

0 comments on commit fca3899

Please sign in to comment.