Skip to content

Commit

Permalink
Tweak langauge strings
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Nov 25, 2024
1 parent eee19cf commit 8f29be3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 22 deletions.
33 changes: 17 additions & 16 deletions src/langs/json/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
"view": "Viewer"
},
"delete": {
"action": "Delete project",
"action": "Delete Project",
"confirm": "Confirm delete",
"really": "Are you sure you want to delete this project ({project})?"
},
Expand Down Expand Up @@ -343,19 +343,20 @@
"contributed": "Contributed by",
"share": "Share",
"shareEmbed": "Share & Embed",
"shareEmbedProject": "Share & Embed Project",
"sharedWith": "Shared with",
"revisions": "Revision History",
"edit": "Edit Metadata",
"editProject": "Edit Project Metadata",
"edit": "Edit Document Metadata",
"upload": "Upload Documents",
"uploadToProject": "Upload to Project",
"download": "Download File",
"reprocess": "Reprocess",
"delete": "Delete",
"shareEmbedProject": "Share & Embed Project",
"editProject": "Edit Project Metadata",
"deleteProject": "Delete Project",
"created": "Created on",
"updated": "Last updated on",
"language": "Language",
"delete": "Delete",
"ocr_engine": "OCR Engine",
"addons": {
"title": "Add-Ons",
Expand Down Expand Up @@ -384,7 +385,7 @@
"cta": "Annotate this document"
},
"edit": {
"title": "Edit document metadata",
"title": "Edit Document Metadata",
"fields": {
"title": "Title",
"description": "Description",
Expand Down Expand Up @@ -419,10 +420,10 @@
}
},
"redact": {
"title": "Redact Document",
"confirm": "Save",
"confirmTitle": "Save Redactions",
"really": "Are you sure you wish to redact the current document? If you continue, the document viewer will be inaccessible temporarily while the document reprocesses with the redactions in place. This change is irreversible.",
"title": "Redact Document",
"instructions": "Click and drag to draw a black rectangle over each portion of the document you’d like to redact. Associated text will be removed when you save your redactions.",
"undo": "Undo",
"cancel": "Discard",
Expand All @@ -434,13 +435,13 @@
"page": "Page",
"title": "Title",
"delete": "Delete",
"new": "Add a new section",
"new": "Add New Section",
"clear": "Clear",
"update": "Update section",
"overwrite": "There is already a section starting on page {n}."
},
"delete": {
"title": "Confirm delete",
"title": "Confirm Delete",
"really": "Proceeding will permanently delete the {n, plural, one {selected document} other {# selected documents}}.",
"continue": "Do you wish to continue?",
"confirm": "Delete",
Expand All @@ -449,7 +450,7 @@
"none": "No documents selected. Close this form and select at least one document first."
},
"data": {
"title": "Edit tags and data",
"title": "Edit Tags & Data",
"key": "Key",
"newkey": "New item",
"value": "Value",
Expand All @@ -459,15 +460,15 @@
"save": "Save",
"cancel": "Cancel",
"addNew": "Add new item:",
"many": "Saving will add the following data and tags to {n, plural, one {the selected document} other {all # selected documents}}. No tags or data will be removed."
"many": "Saving will add the following tags and data to {n, plural, one {the selected document} other {all # selected documents}}. No tags or data will be removed."
},
"bulk": {
"title": "Edit",
"title": "Actions",
"actions": {
"share": "Share",
"edit": "Edit metadata",
"data": "Edit tags & data",
"project": "Move to project",
"share": "Share & Embed",
"edit": "Edit Metadata",
"data": "Edit Tags & Data",
"project": "Move to Project",
"reprocess": "Reprocess",
"delete": "Delete"
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/sidebar/DocumentActions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Most actual actions are deferred to their own forms, so this is more of a switch
const selected: Readable<Document[]> = getContext("selected");
const actions: Record<Action, ActionDetail> = {
share: ["sidebar.shareEmbed", Share16, "standard"],
share: ["bulk.actions.share", Share16, "standard"],
edit: ["bulk.actions.edit", Pencil16, "primary"],
data: ["bulk.actions.data", Tag16, "primary"],
project: ["bulk.actions.project", FileDirectory16, "primary"],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/sidebar/ProjectActions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{#if project.edit_access}
<Button ghost mode="danger" on:click={() => (show = "delete")}>
<Trash16 />
{$_("projects.delete.action")}
{$_("sidebar.deleteProject")}
</Button>
{/if}
{/if}
Expand Down
8 changes: 4 additions & 4 deletions src/lib/components/sidebar/ViewerActions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@

<div class="actions wideGap">
<div class="actions">
<Button ghost on:click={() => (shareOpen = true)}>
<Share16 />
{$_("sidebar.shareEmbed")}
</Button>
<Button ghost href={pdfUrl(document).href} download target="_blank">
<Download16 />
{$_("sidebar.download")}
</Button>
<Button ghost on:click={() => (shareOpen = true)}>
<Share16 />
{$_("sidebar.shareEmbed")}
</Button>
</div>
{#if document.edit_access}
<div class="actions">
Expand Down

0 comments on commit 8f29be3

Please sign in to comment.