xref: /plugin/annotations/lang/en/lang.php (revision 86c7806d6d41bce7c6d00acbee1316c62845cabb)
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// Front-end strings (exposed as LANG.plugins.annotations.<key>)
27// ---------------------------------------------------------------------
28
29// Counter bar
30$lang['js']['counter_annotation']    = '1 annotation';
31$lang['js']['counter_annotations']   = '%d annotations';
32$lang['js']['counter_orphaned']      = '%d orphaned';
33
34// Buttons
35$lang['js']['btn_clear_resolved']    = 'Clear resolved';
36$lang['js']['btn_clear_orphaned']    = 'Clear orphaned';
37$lang['js']['btn_reply']             = 'Reply';
38$lang['js']['btn_resolve']           = 'Resolve';
39$lang['js']['btn_reopen']            = 'Reopen';
40$lang['js']['btn_edit']              = 'Edit';
41$lang['js']['btn_delete']            = 'Delete';
42$lang['js']['btn_save']              = 'Save';
43$lang['js']['btn_cancel']            = 'Cancel';
44$lang['js']['btn_annotate']          = 'Annotate';
45
46// Status pills
47$lang['js']['status_open']           = 'Open';
48$lang['js']['status_resolved']       = 'Resolved';
49
50// Form placeholders
51$lang['js']['placeholder_body']      = 'Add a comment…';
52$lang['js']['placeholder_reply']     = 'Write a reply…';
53
54// Orphaned-annotations drawer
55$lang['js']['orphaned_heading']      = 'Orphaned annotations';
56$lang['js']['orphaned_note']         = 'These annotations reference text that no longer appears on the page.';
57$lang['js']['orphaned_none']         = 'None.';
58
59// Accessible labels / fallbacks
60$lang['js']['label_close']           = 'Close';
61$lang['js']['label_annotation']      = 'Annotation';
62$lang['js']['label_unknown']         = 'Unknown';
63
64// Confirmation prompts
65$lang['js']['confirm_delete']        = 'Delete this annotation?';
66$lang['js']['confirm_delete_reply']  = 'Delete this reply?';
67$lang['js']['confirm_clear_resolved'] = 'Delete all resolved annotations on this page?';
68$lang['js']['confirm_clear_orphaned'] = 'Delete all orphaned annotations on this page?';
69
70// Error messages
71$lang['js']['error_save']            = 'Could not save — please try again.';
72$lang['js']['error_delete']          = 'Could not delete — please try again.';
73$lang['js']['error_status']          = 'Could not update the status — please try again.';
74$lang['js']['error_clear']           = 'Could not clear — please try again.';
75
76// Relative timestamps (%d = number)
77$lang['js']['time_now']              = 'just now';
78$lang['js']['time_minutes']          = '%dm ago';
79$lang['js']['time_hours']            = '%dh ago';
80$lang['js']['time_days']             = '%dd ago';
81