Skip to content

Commit e6f4357

Browse files
committed
Added more instructions to initial dialog
And fixed layout squashing on intermediate sizes And hooked up Learn More to Transcelerator help page (until this feature gets its own)
1 parent 0452be0 commit e6f4357

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

src/SIL.XForge.Scripture/ClientApp/src/app/checking/import-questions-dialog/import-questions-dialog.component.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,17 @@ <h2 mat-dialog-title class="dialog-icon-title">
101101
<mat-card-title>{{ t("import_from_paratext") }}</mat-card-title>
102102
<mat-card-content>
103103
<p>{{ t("import_from_paratext_description") }}</p>
104+
<ol>
105+
@for (line of paratextInstructions; track line) {
106+
<li [innerHTML]="line"></li>
107+
}
108+
</ol>
104109
</mat-card-content>
105110
<mat-card-actions>
106111
<button mat-flat-button color="primary" (click)="importFromParatext()">
107112
{{ t("import_from_paratext") }}
108113
</button>
114+
<a mat-button [href]="urls.transceleratorImportHelpPage" target="_blank">{{ t("learn_more") }}</a>
109115
</mat-card-actions>
110116
</mat-card>
111117
</div>

src/SIL.XForge.Scripture/ClientApp/src/app/checking/import-questions-dialog/import-questions-dialog.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
display: flex;
3939
column-gap: 1em;
4040

41-
@include breakpoints.media-breakpoint-only(xs) {
41+
@include breakpoints.media-breakpoint-down(md) {
4242
flex-direction: column;
4343
row-gap: 1em;
4444
}

src/SIL.XForge.Scripture/ClientApp/src/app/checking/import-questions-dialog/import-questions-dialog.component.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ export class ImportQuestionsDialogComponent implements OnDestroy {
296296
.split('\n');
297297
}
298298

299+
get paratextInstructions(): string[] {
300+
const importFromParatext = this.transloco.translate('import_questions_dialog.import_from_paratext');
301+
return this.i18n
302+
.translateAndInsertTags('import_questions_dialog.paratext_instructions', { importFromParatext })
303+
.split('\n');
304+
}
305+
299306
get showDuplicateImportNote(): boolean {
300307
return this.filteredList.some(item => item.checked && item.sfVersionOfQuestion != null);
301308
}

src/SIL.XForge.Scripture/ClientApp/src/assets/i18n/non_checking_en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@
542542
"transcelerator_instructions": "Translate the questions in Transcelerator.\nWithin Transcelerator, export the questions to Scripture Forge.\nSend and receive the project in Paratext.\nSync the project in Scripture Forge.\nClick {{ boldStart }}{{ importFromTranscelerator }}{{ boldEnd }} below.",
543543
"transcelerator_paratext": "{1}Transcelerator{2} is a plugin for {3}Paratext{4} to aid with creating and translating scripture checking questions.",
544544
"transcelerator_some_questions_already_imported": "Note: Some selected questions have already been imported. Questions that have been edited in Transcelerator will be updated in Scripture Forge, and exact duplicates will be skipped.",
545+
"paratext_instructions": "In Paratext, open Project Properties, go to the Notes tab, and create a tag for Scripture Forge.\nUse Project Note from the Project menu to add notes with the tag you created.\nSend and receive the project in Paratext.\nSync the project in Scripture Forge.\nClick {{ boldStart }}{{ importFromParatext }}{{ boldEnd }} below to import the tagged notes.",
545546
"update_transcelerator": "The version of Transcelerator used in this project is not supported. Please update to at least Transcelerator version 1.5.3."
546547
},
547548
"language_codes_confirmation": {

0 commit comments

Comments
 (0)