|
1 | 1 | <div class="section source">
|
2 | 2 | <div class="field">
|
3 |
| - <label class="label">{{#i18n 'title'}}Title{{/i18n}}</label> |
| 3 | + <label class="label">{{#i18n 'label.title'}}Title{{/i18n}}</label> |
4 | 4 | <div class="control">
|
5 | 5 | <input class="input" type="text" name="title" {{#unless readonly}}placeholder="The Voyage of the Dawn Treader"{{/unless}} required {{#readonly}}readonly{{/readonly}}>
|
6 | 6 | </div>
|
7 | 7 | </div>
|
8 | 8 | <div class="field">
|
9 |
| - <label class="label">{{#i18n 'author'}}Author{{/i18n}}</label> |
| 9 | + <label class="label">{{#i18n 'label.author'}}Author{{/i18n}}</label> |
10 | 10 | <div class="control">
|
11 | 11 | <input name="author" class="input" type="text" {{#unless readonly}}placeholder="C.S. Lewis"{{/unless}} required {{#readonly}}readonly{{/readonly}}>
|
12 | 12 | </div>
|
13 | 13 | </div>
|
14 | 14 | <div class="field is-grouped">
|
15 | 15 | <div class="control">
|
16 |
| - <label class="label">{{#i18n 'editor_opt'}}Editor (optional){{/i18n}}</label> |
| 16 | + <label class="label">{{#i18n 'label.editor-opt'}}Editor (optional){{/i18n}}</label> |
17 | 17 | <input name="editor" class="input" type="text" {{#unless readonly}}placeholder="C.S. Lewis"{{/unless}} {{#readonly}}readonly{{/readonly}}>
|
18 | 18 | </div>
|
19 | 19 | <div class="control">
|
20 |
| - <label class="label">{{#i18n 'publisher_opt'}}Publisher (optional){{/i18n}}</label> |
| 20 | + <label class="label">{{#i18n 'label.publisher-opt'}}Publisher (optional){{/i18n}}</label> |
21 | 21 | <input name="publisher" class="input" type="text" {{#unless readonly}}placeholder="Geoffrey Bles"{{/unless}} {{#readonly}}readonly{{/readonly}}>
|
22 | 22 | </div>
|
23 | 23 | </div>
|
24 | 24 | <div class="field">
|
25 |
| - <label class="label">{{#i18n 'repository_opt'}}Repository (optional){{/i18n}}</label> |
| 25 | + <label class="label">{{#i18n 'label.repository-opt'}}Repository (optional){{/i18n}}</label> |
26 | 26 | <div class="control">
|
27 | 27 | <input
|
28 | 28 | name="repository"
|
29 | 29 | class="input"
|
30 | 30 | type="text"
|
31 |
| - {{#unless readonly}}placeholder="{{#i18n 'repository_placeholder'}}Archive, location, collection, call, fasc, folio{{/i18n}}"{{/unless}} |
| 31 | + {{#unless readonly}}placeholder="{{#i18n 'placeholder.repository'}}Archive, location, collection, call, fasc, folio{{/i18n}}"{{/unless}} |
32 | 32 | {{#readonly}}readonly{{/readonly}}
|
33 | 33 | >
|
34 | 34 | </div>
|
35 | 35 | </div>
|
36 | 36 | {{#upload}}
|
37 | 37 | <div class="field">
|
38 |
| - <label class="label">{{#i18n 'file'}}File{{/i18n}}</label> |
| 38 | + <label class="label">{{#i18n 'label.file'}}File{{/i18n}}</label> |
39 | 39 | <div class="file">
|
40 | 40 | <label class="file-label has-helptext">
|
41 | 41 | <input class="file-input" type="file" name="source" id="source">
|
|
44 | 44 | <i class="fas fa-upload"></i>
|
45 | 45 | </span>
|
46 | 46 | <span class="file-label filelabel">
|
47 |
| - {{#i18n 'choose_file'}}Choose a file…{{/i18n}} |
| 47 | + {{#i18n 'label.choose-file'}}Choose a file…{{/i18n}} |
48 | 48 | </span>
|
49 | 49 | </span>
|
50 | 50 | <span class="file-name">
|
51 |
| - {{#i18n 'no_file'}}No file selected{{/i18n}} |
| 51 | + {{#i18n 'upload.no-file'}}No file selected{{/i18n}} |
52 | 52 | </span>
|
53 | 53 | </label>
|
54 | 54 | </div>
|
55 |
| - <p class="help">{{#i18n 'file_only_txt_utf8_lf'}}Only txt files in UTF-8 encoding (LF for line endings) are supported.{{/i18n}}</p> |
| 55 | + <p class="help">{{#i18n 'upload.only-txt-utf8-lf'}}Only txt files in UTF-8 encoding (LF for line endings) are supported.{{/i18n}}</p> |
56 | 56 | </div>
|
57 | 57 | {{/upload}}
|
58 | 58 |
|
59 | 59 | <div class="field">
|
60 |
| - <label class="label">{{#i18n 'language'}}Language{{/i18n}}</label> |
| 60 | + <label class="label">{{#i18n 'label.language'}}Language{{/i18n}}</label> |
61 | 61 | <div class="control" id="languageSelect">
|
62 | 62 | {{#if readonly}}
|
63 | 63 | <input name="language" class="input" type="text" readonly>
|
64 | 64 | {{else}}
|
65 | 65 | <div class="select has-helptext">
|
66 | 66 | <select name='language' size='1'>
|
67 |
| - <option value="">{{#i18n 'select_language'}}Select language{{/i18n}}</option> |
68 |
| - <option value="en">{{#i18n 'english'}}English{{/i18n}}</option> |
69 |
| - <option value="de">{{#i18n 'german'}}German{{/i18n}}</option> |
70 |
| - <option value="fr">{{#i18n 'french'}}French{{/i18n}}</option> |
71 |
| - <option value="it">{{#i18n 'italian'}}Italian{{/i18n}}</option> |
72 |
| - <option value="cs">{{#i18n 'czech'}}Czech{{/i18n}}</option> |
73 |
| - <option value="nl">{{#i18n 'dutch'}}Dutch{{/i18n}}</option> |
74 |
| - <option value="other">{{#i18n 'other'}}Other{{/i18n}}</option> |
| 67 | + <option value=""> |
| 68 | + {{#i18n 'label.select-language' |
| 69 | + }}Select language{{/i18n}} |
| 70 | + </option> |
| 71 | + <option value="en"> |
| 72 | + {{#i18n 'label.english'}}English{{/i18n}} |
| 73 | + </option> |
| 74 | + <option value="de"> |
| 75 | + {{#i18n 'label.german'}}German{{/i18n}} |
| 76 | + </option> |
| 77 | + <option value="fr"> |
| 78 | + {{#i18n 'label.french'}}French{{/i18n}} |
| 79 | + </option> |
| 80 | + <option value="it"> |
| 81 | + {{#i18n 'label.italian'}}Italian{{/i18n}} |
| 82 | + </option> |
| 83 | + <option value="cs"> |
| 84 | + {{#i18n 'label.czech'}}Czech{{/i18n}} |
| 85 | + </option> |
| 86 | + <option value="nl"> |
| 87 | + {{#i18n 'label.dutch'}}Dutch{{/i18n}} |
| 88 | + </option> |
| 89 | + <option value="other"> |
| 90 | + {{#i18n 'label.other'}}Other{{/i18n}} |
| 91 | + </option> |
75 | 92 | </select>
|
76 | 93 | </div>
|
77 | 94 | {{/if}}
|
78 | 95 | </div>
|
79 |
| - <p class="help">{{#i18n 'source_lang_select_help'}}If the source contains multiple languages, |
80 |
| - please select 'Other'.{{/i18n}}</p> |
| 96 | + <p class="help"> |
| 97 | + {{#i18n 'upload.source-lang-select-help' |
| 98 | + }}If the source contains multiple languages, please select 'Other'.{{/i18n}} |
| 99 | + </p> |
81 | 100 | </div>
|
82 | 101 |
|
83 | 102 | <div class="field">
|
84 |
| - <label class="label">{{#i18n 'source_type'}}Type of source{{/i18n}}</label> |
| 103 | + <label class="label">{{#i18n 'label.source-type'}}Type of source{{/i18n}}</label> |
85 | 104 | {{#if readonly}}
|
86 | 105 | <div class="control">
|
87 | 106 | <input name='sourceType' class="input" type="text" readonly>
|
|
90 | 109 | <div class="control sourceTypeSelect">
|
91 | 110 | </div>
|
92 | 111 | {{/if}}
|
93 |
| - <p class="help">{{#i18n 'source_type_select_help'}}When in doubt, choose 'Unknown'.{{/i18n}}</p> |
| 112 | + <p class="help">{{#i18n 'upload.source-type-select-help'}}When in doubt, choose 'Unknown'.{{/i18n}}</p> |
94 | 113 | </div>
|
95 | 114 | <div class="dates">
|
96 | 115 | {{!date fields with type-aware help will be rendered here}}
|
97 | 116 | </div>
|
98 | 117 | <div class="field">
|
99 | 118 | <div class="control">
|
100 |
| - <label class="label">{{#i18n 'source_access'}}Source access{{/i18n}}</label> |
| 119 | + <label class="label">{{#i18n 'label.source-access'}}Source access{{/i18n}}</label> |
101 | 120 | <label class="radio">
|
102 | 121 | <input type="radio" name="public" value="public" checked>
|
103 |
| - {{#i18n 'public'}}Public{{/i18n}} |
| 122 | + {{#i18n 'label.public'}}Public{{/i18n}} |
104 | 123 | </label>
|
105 | 124 | <label class="radio">
|
106 | 125 | <input type="radio" name="public" value="private">
|
107 |
| - {{#i18n 'private'}}Private{{/i18n}} |
| 126 | + {{#i18n 'label.private'}}Private{{/i18n}} |
108 | 127 | </label>
|
109 |
| - <p class="help">{{#i18n 'public_private_help'}}Provide access to everyone (public) or only to authenticated users (private).{{/i18n}}</p> |
| 128 | + <p class="help">{{#i18n 'upload.public-private-help'}}Provide access to everyone (public) or only to authenticated users (private).{{/i18n}}</p> |
110 | 129 | </div>
|
111 | 130 | </div>
|
112 | 131 | <div class="field url">
|
113 |
| - <label class="label">{{#i18n 'url_opt'}}URL (optional){{/i18n}}</label> |
| 132 | + <label class="label">{{#i18n 'label.url-opt'}}URL (optional){{/i18n}}</label> |
114 | 133 | <div class="control">
|
115 | 134 | <input name="url" class="input" type="url" {{#unless readonly}}placeholder="https://www.wikidata.org/wiki/Q331656"{{/unless}} {{#readonly}}readonly{{/readonly}}>
|
116 | 135 | </div>
|
|
0 commit comments