1<?php 2 3/** 4 * English language strings for the annotations plugin. 5 * 6 * Two groups: 7 * - top-level $lang[...] : read by PHP via $this->getLang() (the usersettings toggle). 8 * - $lang['js'][...] : exposed to script.js by DokuWiki as 9 * LANG.plugins.annotations.<key> (see lib/exe/js.php). 10 */ 11 12// must be run within DokuWiki 13if (!defined('DOKU_INC')) die(); 14 15// --------------------------------------------------------------------- 16// User-settings toggle (PHP side) 17// --------------------------------------------------------------------- 18 19/** @var string label shown on the preferences page for the on/off toggle */ 20$lang['toggle_label'] = 'Enable annotations'; 21 22/** @var string description shown below the toggle */ 23$lang['toggle_desc'] = 'Highlight annotated text and show the annotation panel on wiki pages.'; 24 25// --------------------------------------------------------------------- 26// Admin overview (PHP side, read via $this->getLang()) 27// --------------------------------------------------------------------- 28 29$lang['menu'] = 'Annotations'; 30$lang['heading'] = 'Annotated pages'; 31$lang['intro'] = 'Pages that have annotations, with their normal, resolved and orphaned counts. Resolved annotations have been marked done; orphaned annotations reference text that no longer appears on the page. The counts overlap — a resolved annotation is also counted as normal or orphaned depending on whether its text is still present.'; 32 33$lang['th_page'] = 'Page'; 34$lang['th_normal'] = 'Normal'; 35$lang['th_resolved'] = 'Resolved'; 36$lang['th_orphaned'] = 'Orphaned'; 37$lang['th_actions'] = 'Actions'; 38 39$lang['filter_search'] = 'Search'; 40$lang['filter_clear'] = 'Clear'; 41 42$lang['btn_clear_orphaned'] = 'Clear orphaned'; 43$lang['btn_clear_all'] = 'Clear all orphaned (%d)'; 44$lang['btn_clear_resolved'] = 'Clear resolved'; 45$lang['btn_clear_resolved_all'] = 'Clear all resolved (%d)'; 46 47$lang['confirm_clear_page'] = 'Delete all orphaned annotations on this page?'; 48$lang['confirm_clear_all'] = 'Delete all orphaned annotations on every page?'; 49$lang['confirm_clear_resolved_page'] = 'Delete all resolved annotations on this page?'; 50$lang['confirm_clear_resolved_all'] = 'Delete all resolved annotations on every page?'; 51 52$lang['cleared_page'] = 'Removed %d orphaned annotation(s) from %s.'; 53$lang['cleared_all'] = 'Removed %d orphaned annotation(s) across all pages.'; 54$lang['clear_fail'] = 'Could not clear orphaned annotations.'; 55$lang['cleared_resolved_page'] = 'Removed %d resolved annotation(s) from %s.'; 56$lang['cleared_resolved_all'] = 'Removed %d resolved annotation(s) across all pages.'; 57$lang['clear_resolved_fail'] = 'Could not clear resolved annotations.'; 58 59$lang['none'] = 'No pages have annotations.'; 60$lang['none_match'] = 'No pages match your search.'; 61$lang['shown'] = 'Showing %d–%d of %d'; 62 63$lang['pager_label'] = 'Pagination'; 64$lang['pager_prev'] = 'Previous page'; 65$lang['pager_next'] = 'Next page'; 66 67$lang['helper_missing'] = 'The annotations helper is unavailable.'; 68 69// --------------------------------------------------------------------- 70// Front-end strings (exposed as LANG.plugins.annotations.<key>) 71// --------------------------------------------------------------------- 72 73// Counter bar 74$lang['js']['counter_annotation'] = '1 annotation'; 75$lang['js']['counter_annotations'] = '%d annotations'; 76$lang['js']['counter_orphaned'] = '%d orphaned'; 77 78// Buttons 79$lang['js']['btn_clear_resolved'] = 'Clear resolved'; 80$lang['js']['btn_clear_orphaned'] = 'Clear orphaned'; 81$lang['js']['btn_reply'] = 'Reply'; 82$lang['js']['btn_resolve'] = 'Resolve'; 83$lang['js']['btn_reopen'] = 'Reopen'; 84$lang['js']['btn_edit'] = 'Edit'; 85$lang['js']['btn_delete'] = 'Delete'; 86$lang['js']['btn_save'] = 'Save'; 87$lang['js']['btn_cancel'] = 'Cancel'; 88$lang['js']['btn_annotate'] = 'Annotate'; 89 90// Status pills 91$lang['js']['status_open'] = 'Open'; 92$lang['js']['status_resolved'] = 'Resolved'; 93 94// Form placeholders 95$lang['js']['placeholder_body'] = 'Add a comment…'; 96$lang['js']['placeholder_reply'] = 'Write a reply…'; 97 98// Orphaned-annotations drawer 99$lang['js']['orphaned_heading'] = 'Orphaned annotations'; 100$lang['js']['orphaned_note'] = 'These annotations reference text that no longer appears on the page.'; 101$lang['js']['orphaned_none'] = 'None.'; 102 103// Accessible labels / fallbacks 104$lang['js']['label_close'] = 'Close'; 105$lang['js']['label_annotation'] = 'Annotation'; 106$lang['js']['label_unknown'] = 'Unknown'; 107 108// Confirmation prompts 109$lang['js']['confirm_delete'] = 'Delete this annotation?'; 110$lang['js']['confirm_delete_reply'] = 'Delete this reply?'; 111$lang['js']['confirm_clear_resolved'] = 'Delete all resolved annotations on this page?'; 112$lang['js']['confirm_clear_orphaned'] = 'Delete all orphaned annotations on this page?'; 113 114// Error messages 115$lang['js']['error_save'] = 'Could not save — please try again.'; 116$lang['js']['error_delete'] = 'Could not delete — please try again.'; 117$lang['js']['error_status'] = 'Could not update the status — please try again.'; 118$lang['js']['error_clear'] = 'Could not clear — please try again.'; 119 120// Relative timestamps (%d = number) 121$lang['js']['time_now'] = 'just now'; 122$lang['js']['time_minutes'] = '%dm ago'; 123$lang['js']['time_hours'] = '%dh ago'; 124$lang['js']['time_days'] = '%dd ago'; 125