xref: /plugin/annotations/lang/en/lang.php (revision da56206cc13612db0df36be97c0f01d8f3c5e9f4)
143d2073cStracker-user<?php
243d2073cStracker-user
343d2073cStracker-user/**
443d2073cStracker-user * English language strings for the annotations plugin.
5*da56206cStracker-user *
6*da56206cStracker-user * Two groups:
7*da56206cStracker-user *   - top-level $lang[...]  : read by PHP via $this->getLang() (the usersettings toggle).
8*da56206cStracker-user *   - $lang['js'][...]      : exposed to script.js by DokuWiki as
9*da56206cStracker-user *                             LANG.plugins.annotations.<key> (see lib/exe/js.php).
1043d2073cStracker-user */
1143d2073cStracker-user
1243d2073cStracker-user// must be run within DokuWiki
1343d2073cStracker-userif (!defined('DOKU_INC')) die();
1443d2073cStracker-user
1543d2073cStracker-user// ---------------------------------------------------------------------
16*da56206cStracker-user// User-settings toggle (PHP side)
1743d2073cStracker-user// ---------------------------------------------------------------------
1843d2073cStracker-user
1943d2073cStracker-user/** @var string label shown on the preferences page for the on/off toggle */
2043d2073cStracker-user$lang['toggle_label'] = 'Enable annotations';
2143d2073cStracker-user
2243d2073cStracker-user/** @var string description shown below the toggle */
2343d2073cStracker-user$lang['toggle_desc']  = 'Highlight annotated text and show the annotation panel on wiki pages.';
2443d2073cStracker-user
2543d2073cStracker-user// ---------------------------------------------------------------------
26*da56206cStracker-user// Front-end strings (exposed as LANG.plugins.annotations.<key>)
2743d2073cStracker-user// ---------------------------------------------------------------------
2843d2073cStracker-user
29*da56206cStracker-user// Counter bar
30*da56206cStracker-user$lang['js']['counter_annotation']    = '1 annotation';
31*da56206cStracker-user$lang['js']['counter_annotations']   = '%d annotations';
32*da56206cStracker-user$lang['js']['counter_orphaned']      = '%d orphaned';
3343d2073cStracker-user
34*da56206cStracker-user// Buttons
35*da56206cStracker-user$lang['js']['btn_clear_resolved']    = 'Clear resolved';
36*da56206cStracker-user$lang['js']['btn_clear_orphaned']    = 'Clear orphaned';
37*da56206cStracker-user$lang['js']['btn_reply']             = 'Reply';
38*da56206cStracker-user$lang['js']['btn_resolve']           = 'Resolve';
39*da56206cStracker-user$lang['js']['btn_reopen']            = 'Reopen';
40*da56206cStracker-user$lang['js']['btn_edit']              = 'Edit';
41*da56206cStracker-user$lang['js']['btn_delete']            = 'Delete';
42*da56206cStracker-user$lang['js']['btn_save']              = 'Save';
43*da56206cStracker-user$lang['js']['btn_cancel']            = 'Cancel';
44*da56206cStracker-user$lang['js']['btn_annotate']          = 'Annotate';
4543d2073cStracker-user
4643d2073cStracker-user// Status pills
47*da56206cStracker-user$lang['js']['status_open']           = 'Open';
48*da56206cStracker-user$lang['js']['status_resolved']       = 'Resolved';
4943d2073cStracker-user
50*da56206cStracker-user// Form placeholders
51*da56206cStracker-user$lang['js']['placeholder_body']      = 'Add a comment…';
52*da56206cStracker-user$lang['js']['placeholder_reply']     = 'Write a reply…';
5343d2073cStracker-user
54*da56206cStracker-user// Orphaned-annotations drawer
55*da56206cStracker-user$lang['js']['orphaned_heading']      = 'Orphaned annotations';
56*da56206cStracker-user$lang['js']['orphaned_note']         = 'These annotations reference text that no longer appears on the page.';
57*da56206cStracker-user$lang['js']['orphaned_none']         = 'None.';
5843d2073cStracker-user
59*da56206cStracker-user// Accessible labels / fallbacks
60*da56206cStracker-user$lang['js']['label_close']           = 'Close';
61*da56206cStracker-user$lang['js']['label_annotation']      = 'Annotation';
62*da56206cStracker-user$lang['js']['label_unknown']         = 'Unknown';
6343d2073cStracker-user
64*da56206cStracker-user// Confirmation prompts
65*da56206cStracker-user$lang['js']['confirm_delete']        = 'Delete this annotation?';
66*da56206cStracker-user$lang['js']['confirm_delete_reply']  = 'Delete this reply?';
67*da56206cStracker-user$lang['js']['confirm_clear_resolved'] = 'Delete all resolved annotations on this page?';
68*da56206cStracker-user$lang['js']['confirm_clear_orphaned'] = 'Delete all orphaned annotations on this page?';
6943d2073cStracker-user
70*da56206cStracker-user// Error messages
71*da56206cStracker-user$lang['js']['error_save']            = 'Could not save — please try again.';
72*da56206cStracker-user$lang['js']['error_delete']          = 'Could not delete — please try again.';
73*da56206cStracker-user$lang['js']['error_status']          = 'Could not update the status — please try again.';
74*da56206cStracker-user$lang['js']['error_clear']           = 'Could not clear — please try again.';
7543d2073cStracker-user
76*da56206cStracker-user// Relative timestamps (%d = number)
77*da56206cStracker-user$lang['js']['time_now']              = 'just now';
78*da56206cStracker-user$lang['js']['time_minutes']          = '%dm ago';
79*da56206cStracker-user$lang['js']['time_hours']            = '%dh ago';
80*da56206cStracker-user$lang['js']['time_days']             = '%dd ago';
81