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 and orphaned counts. Orphaned annotations reference text that no longer appears on the page.'; 32 33$lang['th_page'] = 'Page'; 34$lang['th_normal'] = 'Normal'; 35$lang['th_orphaned'] = 'Orphaned'; 36$lang['th_actions'] = 'Actions'; 37 38$lang['filter_search'] = 'Search'; 39$lang['filter_clear'] = 'Clear'; 40 41$lang['btn_clear_orphaned'] = 'Clear orphaned'; 42$lang['btn_clear_all'] = 'Clear all orphaned (%d)'; 43 44$lang['confirm_clear_page'] = 'Delete all orphaned annotations on this page?'; 45$lang['confirm_clear_all'] = 'Delete all orphaned annotations on every page?'; 46 47$lang['cleared_page'] = 'Removed %d orphaned annotation(s) from %s.'; 48$lang['cleared_all'] = 'Removed %d orphaned annotation(s) across all pages.'; 49$lang['clear_fail'] = 'Could not clear orphaned annotations.'; 50 51$lang['none'] = 'No pages have annotations.'; 52$lang['none_match'] = 'No pages match your search.'; 53$lang['shown'] = 'Showing %d–%d of %d'; 54 55$lang['pager_label'] = 'Pagination'; 56$lang['pager_prev'] = 'Previous page'; 57$lang['pager_next'] = 'Next page'; 58 59$lang['helper_missing'] = 'The annotations helper is unavailable.'; 60 61// --------------------------------------------------------------------- 62// Front-end strings (exposed as LANG.plugins.annotations.<key>) 63// --------------------------------------------------------------------- 64 65// Counter bar 66$lang['js']['counter_annotation'] = '1 annotation'; 67$lang['js']['counter_annotations'] = '%d annotations'; 68$lang['js']['counter_orphaned'] = '%d orphaned'; 69 70// Buttons 71$lang['js']['btn_clear_resolved'] = 'Clear resolved'; 72$lang['js']['btn_clear_orphaned'] = 'Clear orphaned'; 73$lang['js']['btn_reply'] = 'Reply'; 74$lang['js']['btn_resolve'] = 'Resolve'; 75$lang['js']['btn_reopen'] = 'Reopen'; 76$lang['js']['btn_edit'] = 'Edit'; 77$lang['js']['btn_delete'] = 'Delete'; 78$lang['js']['btn_save'] = 'Save'; 79$lang['js']['btn_cancel'] = 'Cancel'; 80$lang['js']['btn_annotate'] = 'Annotate'; 81 82// Status pills 83$lang['js']['status_open'] = 'Open'; 84$lang['js']['status_resolved'] = 'Resolved'; 85 86// Form placeholders 87$lang['js']['placeholder_body'] = 'Add a comment…'; 88$lang['js']['placeholder_reply'] = 'Write a reply…'; 89 90// Orphaned-annotations drawer 91$lang['js']['orphaned_heading'] = 'Orphaned annotations'; 92$lang['js']['orphaned_note'] = 'These annotations reference text that no longer appears on the page.'; 93$lang['js']['orphaned_none'] = 'None.'; 94 95// Accessible labels / fallbacks 96$lang['js']['label_close'] = 'Close'; 97$lang['js']['label_annotation'] = 'Annotation'; 98$lang['js']['label_unknown'] = 'Unknown'; 99 100// Confirmation prompts 101$lang['js']['confirm_delete'] = 'Delete this annotation?'; 102$lang['js']['confirm_delete_reply'] = 'Delete this reply?'; 103$lang['js']['confirm_clear_resolved'] = 'Delete all resolved annotations on this page?'; 104$lang['js']['confirm_clear_orphaned'] = 'Delete all orphaned annotations on this page?'; 105 106// Error messages 107$lang['js']['error_save'] = 'Could not save — please try again.'; 108$lang['js']['error_delete'] = 'Could not delete — please try again.'; 109$lang['js']['error_status'] = 'Could not update the status — please try again.'; 110$lang['js']['error_clear'] = 'Could not clear — please try again.'; 111 112// Relative timestamps (%d = number) 113$lang['js']['time_now'] = 'just now'; 114$lang['js']['time_minutes'] = '%dm ago'; 115$lang['js']['time_hours'] = '%dh ago'; 116$lang['js']['time_days'] = '%dd ago'; 117