|
1 | 1 | _SCRIPT_LABEL = "Script:" |
2 | 2 | _REMOVE_SELECTED = "Remove selected" |
3 | 3 | _SELECT_SCRIPT = "Select script" |
| 4 | +_TOKEN_LABEL = "Token:" |
| 5 | +_HOST_LABEL = "Host:" |
| 6 | +_PORT_LABEL = "Port:" |
| 7 | +_STOP_HOST = "Stop host" |
| 8 | +_CLEAR_ALL = "Clear all" |
4 | 9 |
|
5 | 10 | english_word_dict = { |
6 | 11 | # Main |
|
124 | 129 | # Admin console tab |
125 | 130 | "admin_add_group": "Register host", |
126 | 131 | "admin_add": "Add", |
127 | | - "admin_remove": "Remove selected", |
| 132 | + "admin_remove": _REMOVE_SELECTED, |
128 | 133 | "admin_refresh": "Poll all", |
129 | 134 | "admin_label": "Label:", |
130 | 135 | "admin_url": "Base URL:", |
131 | | - "admin_token": "Token:", |
| 136 | + "admin_token": _TOKEN_LABEL, |
132 | 137 | "admin_broadcast_group": "Broadcast", |
133 | 138 | "admin_actions_label": "Actions JSON (sent to every host):", |
134 | 139 | "admin_broadcast_run": "Run on all hosts", |
|
144 | 149 | # REST API tab |
145 | 150 | "rest_config_group": "REST API config", |
146 | 151 | "rest_status_group": "REST API status", |
147 | | - "rest_host": "Host:", |
148 | | - "rest_port": "Port:", |
149 | | - "rest_token": "Token:", |
| 152 | + "rest_host": _HOST_LABEL, |
| 153 | + "rest_port": _PORT_LABEL, |
| 154 | + "rest_token": _TOKEN_LABEL, |
150 | 155 | "rest_token_ph": "leave blank to auto-generate", |
151 | 156 | "rest_enable_audit": "Write audit log", |
152 | 157 | "rest_start": "Start", |
|
173 | 178 | "rd_webrtc_answer_input_label": "Paste viewer's answer SDP:", |
174 | 179 | "rd_webrtc_paste_answer": "paste the answer SDP here", |
175 | 180 | "rd_webrtc_apply_answer": "Apply answer", |
176 | | - "rd_webrtc_stop_host": "Stop host", |
| 181 | + "rd_webrtc_stop_host": _STOP_HOST, |
177 | 182 | "rd_webrtc_offer_input_label": "Paste host's offer SDP:", |
178 | 183 | "rd_webrtc_paste_offer": "paste the offer SDP here", |
179 | 184 | "rd_webrtc_create_answer": "Create answer", |
|
222 | 227 | "rd_webrtc_host_id_required": "Host ID is required", |
223 | 228 | # Trust list / accept dialog |
224 | 229 | "rd_webrtc_trusted_group": "Trusted viewers (auto-accept)", |
225 | | - "rd_webrtc_remove_trusted": "Remove selected", |
226 | | - "rd_webrtc_clear_trusted": "Clear all", |
| 230 | + "rd_webrtc_remove_trusted": _REMOVE_SELECTED, |
| 231 | + "rd_webrtc_clear_trusted": _CLEAR_ALL, |
227 | 232 | "rd_webrtc_clear_trust_confirm": "Remove every trusted viewer?", |
228 | 233 | "rd_webrtc_pending_viewer_title": "Incoming viewer", |
229 | 234 | "rd_webrtc_reject": "Reject", |
|
300 | 305 | "rd_webrtc_kh_col_app_fp": "App fingerprint", |
301 | 306 | "rd_webrtc_kh_col_dtls_fp": "DTLS fingerprint", |
302 | 307 | "rd_webrtc_kh_forget": "Forget selected", |
303 | | - "rd_webrtc_kh_clear_all": "Clear all", |
| 308 | + "rd_webrtc_kh_clear_all": _CLEAR_ALL, |
304 | 309 | "rd_webrtc_kh_close": "Close", |
305 | 310 | "rd_webrtc_kh_clear_confirm": "Forget every known host?", |
306 | 311 | "rd_webrtc_kh_copy_app": "Copy app fp", |
|
344 | 349 | "rd_webrtc_copy_fingerprint": "Copy", |
345 | 350 | "rd_webrtc_ab_export": "Export book...", |
346 | 351 | "rd_webrtc_ab_import": "Import book...", |
347 | | - "rd_webrtc_ab_clear": "Clear all", |
| 352 | + "rd_webrtc_ab_clear": _CLEAR_ALL, |
348 | 353 | "rd_webrtc_ab_clear_confirm": "Clear the entire address book?", |
349 | 354 | "rd_webrtc_ab_import_done": "Imported {n} address-book entries", |
350 | 355 | "rd_webrtc_tray_idle": "AutoControl host: idle", |
351 | 356 | "rd_webrtc_tray_running": "AutoControl host: {n} viewer(s)", |
352 | 357 | "rd_webrtc_tray_open": "Open window", |
353 | | - "rd_webrtc_tray_stop": "Stop host", |
| 358 | + "rd_webrtc_tray_stop": _STOP_HOST, |
354 | 359 | "rd_webrtc_tray_quit": "Quit", |
355 | 360 | "rd_webrtc_region_label": "Region (x,y,w,h):", |
356 | 361 | "rd_webrtc_region_placeholder": "leave blank for full screen", |
|
367 | 372 | "rd_webrtc_audit_title": "Audit log", |
368 | 373 | "rd_webrtc_audit_filter_type": "Type:", |
369 | 374 | "rd_webrtc_audit_filter_type_ph": "auth_ok / auth_fail / file_received / ...", |
370 | | - "rd_webrtc_audit_filter_host": "Host:", |
| 375 | + "rd_webrtc_audit_filter_host": _HOST_LABEL, |
371 | 376 | "rd_webrtc_audit_refresh": "Refresh", |
372 | 377 | "rd_webrtc_audit_col_ts": "Timestamp", |
373 | 378 | "rd_webrtc_audit_col_type": "Event", |
|
565 | 570 | # Socket / REST Tab |
566 | 571 | "ss_tcp_group": "TCP socket server", |
567 | 572 | "ss_rest_group": "REST API server", |
568 | | - "ss_host_label": "Host:", |
569 | | - "ss_port_label": "Port:", |
| 573 | + "ss_host_label": _HOST_LABEL, |
| 574 | + "ss_port_label": _PORT_LABEL, |
570 | 575 | "ss_tcp_any_check": "Bind TCP to 0.0.0.0 (exposes to network)", |
571 | 576 | "ss_rest_any_check": "Bind REST to 0.0.0.0 (exposes to network)", |
572 | 577 | "ss_tcp_stopped": "TCP stopped", |
|
707 | 712 | "vars_col_value": "Value", |
708 | 713 | "vars_count": "{n} variables", |
709 | 714 | "vars_refresh": "Refresh", |
710 | | - "vars_clear": "Clear all", |
| 715 | + "vars_clear": _CLEAR_ALL, |
711 | 716 | "vars_clear_confirm": "Clear every runtime variable?", |
712 | 717 | "vars_set_group": "Set one", |
713 | 718 | "vars_name_label": "Name:", |
|
751 | 756 | ), |
752 | 757 | "rd_host_config_group": "Host configuration", |
753 | 758 | "rd_viewer_config_group": "Connect to a remote host", |
754 | | - "rd_token_label": "Token:", |
| 759 | + "rd_token_label": _TOKEN_LABEL, |
755 | 760 | "rd_token_placeholder": "shared secret (HMAC key)", |
756 | 761 | "rd_token_generate": "Generate", |
757 | 762 | "rd_bind_label": "Address:", |
758 | | - "rd_port_label": "Port:", |
| 763 | + "rd_port_label": _PORT_LABEL, |
759 | 764 | "rd_fps_label": "FPS:", |
760 | 765 | "rd_quality_label": "JPEG quality:", |
761 | 766 | "rd_host_start": "Start host", |
762 | | - "rd_host_stop": "Stop host", |
| 767 | + "rd_host_stop": _STOP_HOST, |
763 | 768 | "rd_host_status_running": "Running on port {port} — {n} viewer(s)", |
764 | 769 | "rd_host_status_stopped": "Host is stopped", |
765 | 770 | "rd_host_preview_label": "Preview (what viewers see):", |
|
0 commit comments