|
1 | 1 | <div id="custom-snippets-panel" class="custom-snippets-panel bottom-panel vert-resizable top-resizer no-focus"> |
2 | 2 | <div id="custom-snippets-toolbar" class="toolbar simple-toolbar-layout"> |
3 | 3 | <div class="title-wrapper"> |
4 | | - <span class="title toolbar-title">Custom Snippets <span id="snippets-count" class="snippets-count"></span></span> |
| 4 | + <span class="title toolbar-title">{{Strings.CUSTOM_SNIPPETS_PANEL_TITLE}} <span id="snippets-count" class="snippets-count"></span></span> |
5 | 5 | <div id="add-new-snippet-btn" class="custom-snippet-btn"> |
6 | | - <button title="Add new snippet"> |
| 6 | + <button title="{{Strings.CUSTOM_SNIPPETS_ADD_NEW_TITLE}}"> |
7 | 7 | <i class="fas fa-plus"></i> |
8 | 8 | </button> |
9 | 9 | </div> |
10 | 10 | <div id="back-to-list-menu-btn" class="custom-snippet-btn hidden"> |
11 | | - <button title="Back to snippets list"> |
| 11 | + <button title="{{Strings.CUSTOM_SNIPPETS_BACK_TO_LIST_TITLE}}"> |
12 | 12 | <i class="back-btn-left-icon fas fa-chevron-left"></i> |
13 | | - <span class="back-btn-text">Back</span> |
| 13 | + <span class="back-btn-text">{{Strings.CUSTOM_SNIPPETS_BACK}}</span> |
14 | 14 | </button> |
15 | 15 | </div> |
16 | 16 | </div> |
17 | 17 | <div class="buttons"> |
18 | 18 | <div id="filter-snippets-panel" class="filter-snippets-panel"> |
19 | | - <input id="filter-snippets-input" type="text" placeholder="Filter..." autocomplete="off" /> |
| 19 | + <input id="filter-snippets-input" type="text" placeholder="{{Strings.CUSTOM_SNIPPETS_FILTER_PLACEHOLDER}}" autocomplete="off" /> |
20 | 20 | </div> |
21 | 21 | <a href="#" class="close" id="close-custom-snippets-panel-btn">×</a> |
22 | 22 | </div> |
|
26 | 26 | <!--this will display the list of all the already existing snippets--> |
27 | 27 | <div id="custom-snippets-list" class="custom-snippes-list"> |
28 | 28 | <div id="no-snippets-wrapper" class="no-snippets-wrapper"> |
29 | | - <div id="no-snippets-message">No custom snippets added yet!</div> |
| 29 | + <div id="no-snippets-message">{{Strings.CUSTOM_SNIPPETS_NO_SNIPPETS_MESSAGE}}</div> |
30 | 30 | <div id="add-snippet-btn"> |
31 | | - <button>Add Snippet</button> |
| 31 | + <button>{{Strings.CUSTOM_SNIPPETS_ADD_SNIPPET_BTN}}</button> |
32 | 32 | </div> |
33 | 33 | </div> |
34 | 34 |
|
35 | 35 | <div id="snippets-list-header" class="snippets-list-header"> |
36 | | - <div id="snippet-abbr-header">Abbreviation</div> |
37 | | - <div id="snippet-template-header">Template Text</div> |
38 | | - <div id="snippet-description-header">Description</div> |
39 | | - <div id="snippet-file-extension-header">File Extension</div> |
| 36 | + <div id="snippet-abbr-header">{{Strings.CUSTOM_SNIPPETS_HEADER_ABBREVIATION}}</div> |
| 37 | + <div id="snippet-template-header">{{Strings.CUSTOM_SNIPPETS_HEADER_TEMPLATE}}</div> |
| 38 | + <div id="snippet-description-header">{{Strings.CUSTOM_SNIPPETS_HEADER_DESCRIPTION}}</div> |
| 39 | + <div id="snippet-file-extension-header">{{Strings.CUSTOM_SNIPPETS_HEADER_FILE_EXTENSION}}</div> |
40 | 40 | <div id="snippet-actions-header"></div> |
41 | 41 | </div> |
42 | 42 |
|
|
69 | 69 | <div id="abbr-box-wrapper" class="field-wrapper"> |
70 | 70 | <div class="field-row"> |
71 | 71 | <label for="abbr-box" |
72 | | - title="Enter a short abbreviation (e.g., 'clg', 'fn', 'div'). This is what you'll type to trigger the snippet." |
| 72 | + title="{{Strings.CUSTOM_SNIPPETS_ABBR_INPUT_TOOLTIP}}" |
73 | 73 | data-placement="top"> |
74 | | - Abbreviation: |
| 74 | + {{Strings.CUSTOM_SNIPPETS_ABBREVIATION_LABEL}} |
75 | 75 | </label> |
76 | 76 | <input id="abbr-box" type="text" placeholder="clg" autocomplete="off" /> |
77 | 77 | </div> |
|
80 | 80 | <div id="desc-box-wrapper" class="field-wrapper"> |
81 | 81 | <div class="field-row"> |
82 | 82 | <label for="desc-box" |
83 | | - title="Brief description of what this snippet does. Leave empty if no description needed." |
| 83 | + title="{{Strings.CUSTOM_SNIPPETS_DESC_INPUT_TOOLTIP}}" |
84 | 84 | data-placement="top"> |
85 | | - Description: |
| 85 | + {{Strings.CUSTOM_SNIPPETS_DESCRIPTION_LABEL}} |
86 | 86 | </label> |
87 | | - <input id="desc-box" type="text" placeholder="console log shortcut (optional)" autocomplete="off" /> |
| 87 | + <input id="desc-box" type="text" placeholder="{{Strings.CUSTOM_SNIPPETS_DESC_PLACEHOLDER}}" autocomplete="off" /> |
88 | 88 | </div> |
89 | 89 | </div> |
90 | 90 |
|
91 | 91 | <div id="file-extn-box-wrapper" class="field-wrapper"> |
92 | 92 | <div class="field-row"> |
93 | 93 | <label for="file-extn-box" |
94 | | - title="Specify file types where this snippet should be available (e.g., '.js', '.html', '.css'). Leave empty to make it available for all files." |
| 94 | + title="{{Strings.CUSTOM_SNIPPETS_FILE_EXT_INPUT_TOOLTIP}}" |
95 | 95 | data-placement="top"> |
96 | | - File Extension: |
| 96 | + {{Strings.CUSTOM_SNIPPETS_FILE_EXTENSION_LABEL}} |
97 | 97 | </label> |
98 | | - <input id="file-extn-box" type="text" placeholder="Leave empty for all files, or specify like .js, .html" autocomplete="off" /> |
| 98 | + <input id="file-extn-box" type="text" placeholder="{{Strings.CUSTOM_SNIPPETS_FILE_EXT_PLACEHOLDER}}" autocomplete="off" /> |
99 | 99 | </div> |
100 | 100 | </div> |
101 | 101 |
|
102 | 102 | <div id="template-text-box-wrapper" class="field-wrapper"> |
103 | 103 | <div class="field-row"> |
104 | 104 | <label for="template-text-box" |
105 | | - title="The actual code that will be inserted. Use ${1}, ${2}, ${3}, etc. for cursor positions. ${1} is the initial position, tab moves to ${2}, ${3}, etc. ${0} is the final position." |
| 105 | + title="{{Strings.CUSTOM_SNIPPETS_TEMPLATE_INPUT_TOOLTIP}}" |
106 | 106 | data-placement="top"> |
107 | | - Template Text: |
| 107 | + {{Strings.CUSTOM_SNIPPETS_TEMPLATE_TEXT_LABEL}} |
108 | 108 | </label> |
109 | | - <textarea id="template-text-box" placeholder="console.log(${1});" autocomplete="off"></textarea> |
| 109 | + <textarea id="template-text-box" placeholder="{{Strings.CUSTOM_SNIPPETS_TEMPLATE_PLACEHOLDER}}" autocomplete="off"></textarea> |
110 | 110 | </div> |
111 | 111 | </div> |
112 | 112 |
|
113 | 113 | <div id="add-custom-snippet-panel-buttons"> |
114 | | - <button id="cancel-custom-snippet-btn" class="dialog-button btn">Cancel</button> |
115 | | - <button id="save-custom-snippet-btn" class="dialog-button btn primary" disabled>Save</button> |
| 114 | + <button id="cancel-custom-snippet-btn" class="dialog-button btn">{{Strings.CUSTOM_SNIPPETS_CANCEL}}</button> |
| 115 | + <button id="save-custom-snippet-btn" class="dialog-button btn primary" disabled>{{Strings.CUSTOM_SNIPPETS_SAVE}}</button> |
116 | 116 | </div> |
117 | 117 | </div> |
118 | 118 |
|
|
121 | 121 | <div id="edit-abbr-box-wrapper" class="field-wrapper"> |
122 | 122 | <div class="field-row"> |
123 | 123 | <label for="edit-abbr-box" |
124 | | - title="Enter a short abbreviation (e.g., 'clg', 'fn', 'div'). This is what you'll type to trigger the snippet." |
| 124 | + title="{{Strings.CUSTOM_SNIPPETS_ABBR_INPUT_TOOLTIP}}" |
125 | 125 | data-placement="top"> |
126 | | - Abbreviation: |
| 126 | + {{Strings.CUSTOM_SNIPPETS_ABBREVIATION_LABEL}} |
127 | 127 | </label> |
128 | 128 | <input id="edit-abbr-box" type="text" placeholder="clg" autocomplete="off" /> |
129 | 129 | </div> |
|
132 | 132 | <div id="edit-desc-box-wrapper" class="field-wrapper"> |
133 | 133 | <div class="field-row"> |
134 | 134 | <label for="edit-desc-box" |
135 | | - title="Brief description of what this snippet does. Leave empty if no description needed." |
| 135 | + title="{{Strings.CUSTOM_SNIPPETS_DESC_INPUT_TOOLTIP}}" |
136 | 136 | data-placement="top"> |
137 | | - Description: |
| 137 | + {{Strings.CUSTOM_SNIPPETS_DESCRIPTION_LABEL}} |
138 | 138 | </label> |
139 | | - <input id="edit-desc-box" type="text" placeholder="console log shortcut (optional)" autocomplete="off" /> |
| 139 | + <input id="edit-desc-box" type="text" placeholder="{{Strings.CUSTOM_SNIPPETS_DESC_PLACEHOLDER}}" autocomplete="off" /> |
140 | 140 | </div> |
141 | 141 | </div> |
142 | 142 |
|
143 | 143 | <div id="edit-file-extn-box-wrapper" class="field-wrapper"> |
144 | 144 | <div class="field-row"> |
145 | 145 | <label for="edit-file-extn-box" |
146 | | - title="Specify file types where this snippet should be available (e.g., '.js', '.html', '.css'). Leave empty to make it available for all files." |
| 146 | + title="{{Strings.CUSTOM_SNIPPETS_FILE_EXT_INPUT_TOOLTIP}}" |
147 | 147 | data-placement="top"> |
148 | | - File Extension: |
| 148 | + {{Strings.CUSTOM_SNIPPETS_FILE_EXTENSION_LABEL}} |
149 | 149 | </label> |
150 | | - <input id="edit-file-extn-box" type="text" placeholder="Leave empty for all files, or specify like .js, .html" autocomplete="off" /> |
| 150 | + <input id="edit-file-extn-box" type="text" placeholder="{{Strings.CUSTOM_SNIPPETS_FILE_EXT_PLACEHOLDER}}" autocomplete="off" /> |
151 | 151 | </div> |
152 | 152 | </div> |
153 | 153 |
|
154 | 154 | <div id="edit-template-text-box-wrapper" class="field-wrapper"> |
155 | 155 | <div class="field-row"> |
156 | 156 | <label for="edit-template-text-box" |
157 | | - title="The actual code that will be inserted. Use ${1}, ${2}, ${3}, etc. for cursor positions. ${1} is the initial position, tab moves to ${2}, ${3}, etc. ${0} is the final position." |
| 157 | + title="{{Strings.CUSTOM_SNIPPETS_TEMPLATE_INPUT_TOOLTIP}}" |
158 | 158 | data-placement="top"> |
159 | | - Template Text: |
| 159 | + {{Strings.CUSTOM_SNIPPETS_TEMPLATE_TEXT_LABEL}} |
160 | 160 | </label> |
161 | | - <textarea id="edit-template-text-box" placeholder="console.log(${1});" autocomplete="off"></textarea> |
| 161 | + <textarea id="edit-template-text-box" placeholder="{{Strings.CUSTOM_SNIPPETS_TEMPLATE_PLACEHOLDER}}" autocomplete="off" /> |
162 | 162 | </div> |
163 | 163 | </div> |
164 | 164 |
|
165 | 165 | <div id="edit-snippet-buttons"> |
166 | | - <button id="cancel-edit-snippet-btn" class="dialog-button btn">Cancel</button> |
167 | | - <button id="save-edit-snippet-btn" class="dialog-button btn primary" disabled>Save</button> |
| 166 | + <button id="cancel-edit-snippet-btn" class="dialog-button btn">{{Strings.CUSTOM_SNIPPETS_CANCEL}}</button> |
| 167 | + <button id="save-edit-snippet-btn" class="dialog-button btn primary" disabled>{{Strings.CUSTOM_SNIPPETS_SAVE}}</button> |
168 | 168 | </div> |
169 | 169 | </div> |
170 | 170 | </div> |
|
0 commit comments