en.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?php
  2. // WeCom Center - English (base language). Copy this file to <lang>.php to add a language.
  3. return [
  4. 'menu.title' => 'WeCom Center',
  5. 'page.title' => 'WeCom Center',
  6. 'tab.alert' => 'Alert',
  7. 'tab.opt' => 'Optimization',
  8. 'tab.maint' => 'Maintenance',
  9. // section headings
  10. 'sec.robot' => 'WeCom group robot',
  11. 'sec.strategy' => 'Alert strategy (pick one, then Apply)',
  12. 'sec.threshold' => 'Manual threshold (overrides the strategy)',
  13. 'sec.tuning' => 'Server tuning generator',
  14. 'sec.template' => 'Template import',
  15. 'sec.map' => 'Map marker',
  16. 'sec.triggers' => 'Per-trigger alerting switch',
  17. 'sec.class_sev' => 'Bulk severity by class',
  18. // media type
  19. 'lbl.mediatype' => 'Alert media type',
  20. 'lbl.alerting_on' => 'Alerting enabled',
  21. 'lbl.severity' => 'Severities that will notify',
  22. 'lbl.key' => 'Robot key (global macro {$WECOM_KEY})',
  23. 'lbl.strategy_hint' => 'Every strategy pins the "must alert" classes to the highest severity (Disaster) so they always fire, and sets a threshold for the rest. Apply is safe and repeatable.',
  24. 'lbl.threshold_hint' => 'The strategy sets this automatically. Change it here only for a one-off adjustment.',
  25. 'lbl.tuning_hint' => 'This only GENERATES the settings and command — nothing is changed. Copy them onto the Zabbix host and recreate the server container yourself.',
  26. // buttons
  27. 'btn.save' => 'Save',
  28. 'btn.test' => 'Send test',
  29. 'btn.import' => 'Import template',
  30. 'btn.preview' => 'Preview',
  31. 'btn.apply' => 'Apply',
  32. 'btn.generate' => 'Generate',
  33. 'btn.search' => 'Search',
  34. // severities
  35. 'sev.1' => 'Not classified',
  36. 'sev.2' => 'Information',
  37. 'sev.3' => 'Warning',
  38. 'sev.4' => 'Average',
  39. 'sev.5' => 'High',
  40. 'sev.6' => 'Disaster',
  41. // trigger classes
  42. 'cls.device_down' => 'Device down / unreachable',
  43. 'cls.hw_fault' => 'Hardware fault (fan/power/temperature)',
  44. 'cls.restarted' => 'Device restarted',
  45. 'cls.core_link' => 'Core/uplink link down',
  46. 'cls.interface_down' => 'Access interface down',
  47. 'cls.perf' => 'Performance (bandwidth/error/CPU)',
  48. 'cls.other' => 'Other (unchanged)',
  49. 'cls.col.class' => 'Class',
  50. 'cls.col.target' => 'Severity',
  51. 'cls.col.count' => 'Triggers',
  52. 'cls.col.changes' => 'Will change',
  53. 'cls.total' => 'Total',
  54. // strategy presets
  55. 'preset.current' => '(current)',
  56. 'preset.col.name' => 'Strategy',
  57. 'preset.col.desc' => 'Description',
  58. 'preset.col.action' => 'Actions',
  59. 'preset.steady' => 'Steady operations',
  60. 'preset.steady.desc' => 'Must-alert always fires; rest only High+. Balanced for daily production.',
  61. 'preset.core' => 'Core essentials only',
  62. 'preset.core.desc' => 'Only must-alert classes fire (Disaster). Everything else muted — max noise reduction.',
  63. 'preset.observe' => 'Full observation',
  64. 'preset.observe.desc' => 'Notify from Warning up. For onboarding / troubleshooting periods.',
  65. 'preset.night' => 'Night quiet',
  66. 'preset.night.desc' => 'Disaster only. For night shifts / on-call quiet hours.',
  67. 'preset.balanced' => 'Core strict / access loose',
  68. 'preset.balanced.desc'=> 'Must-alert + Average up. Slightly broader than steady.',
  69. // preview
  70. 'preview.title' => 'Preview — dry run for "{1}" (nothing written)',
  71. 'preview.hint' => 'These are the hosted triggers that would change. Apply to actually write them.',
  72. // templates
  73. 'tpl.choose' => 'Bundled template',
  74. 'tpl.none' => 'No bundled template found',
  75. // map
  76. 'map.choose_host' => '-- select host --',
  77. 'map.host' => 'Marker host',
  78. 'map.lat' => 'Latitude',
  79. 'map.lon' => 'Longitude',
  80. 'map.hint' => 'The map uses one representative point (the Zabbix server). Note: the Geomap widget needs the browser to reach the internet for base-map tiles.',
  81. // tuning
  82. 'tuning.choose' => 'Hardware profile',
  83. 'tuning.small' => 'Small (< 200 hosts)',
  84. 'tuning.medium' => 'Medium (~ 500 hosts)',
  85. 'tuning.large' => 'Large (1000+ hosts)',
  86. 'tuning.env' => 'Settings (paste into .env / compose environment):',
  87. 'tuning.cmd' => 'Then apply:',
  88. // triggers / maintenance
  89. 'lbl.trig_search' => 'Search triggers by description (e.g. CPU, disk)',
  90. 'lbl.trig_list' => 'Triggers (checked = alerting enabled)',
  91. 'lbl.trig_hint' => 'There are {1} triggers. Type a keyword above to search (max 200 shown).',
  92. 'lbl.trig_edit_hint' => 'Adjust severity or toggle alerting per row, then Save. Changes apply immediately and the list refreshes.',
  93. 'lbl.class_sev_hint' => 'Pick a class of triggers and a target severity. Apply sets every trigger in that class — template, prototypes and already-discovered triggers — then refreshes the list.',
  94. 'lbl.class_pick' => 'Trigger class',
  95. 'lbl.set_severity' => 'Set severity to',
  96. // messages
  97. 'msg.saved' => 'Alert settings saved.',
  98. 'msg.robot_saved' => 'Robot key saved.',
  99. 'msg.tested' => 'Test message sent successfully (errcode 0).',
  100. 'msg.test_failed' => 'Test failed (HTTP {1}): {2}',
  101. 'msg.imported' => 'Template imported. Templates: {1}',
  102. 'msg.map_saved' => 'Map coordinates saved.',
  103. 'msg.no_mediatype'=> 'No webhook media type found.',
  104. 'msg.no_url' => 'Robot key is empty (set {$WECOM_KEY}).',
  105. 'msg.no_template' => 'Please choose a template.',
  106. 'msg.no_host' => 'Please choose a host.',
  107. 'msg.no_template_host' => 'Huawei walk template not found on this server.',
  108. 'msg.no_server_host' => 'Host "Zabbix server" not found.',
  109. 'msg.bad_scheme' => 'Unknown strategy.',
  110. 'msg.unknown_op' => 'Unknown operation.',
  111. 'msg.no_triggers' => 'No trigger selected.',
  112. 'msg.triggers_saved' => 'Trigger alerting updated: {1} trigger(s).',
  113. 'msg.no_trig_search' => 'No triggers matched your search.',
  114. 'msg.bad_class_sev' => 'Choose a class and a severity (0-5).',
  115. 'msg.class_sev_saved' => 'Class severity updated: template triggers {1}, discovered triggers {2}. List refreshed.',
  116. 'msg.strategy_applied' => 'Strategy "{1}" applied — template triggers: {2}, prototypes: {3}, discovered triggers: {4}.',
  117. // hero + template switch
  118. 'hero.sub' => 'WeCom group alerts, one-click alert strategy, server tuning, template migration and per-trigger control — all in one place.',
  119. 'lbl.template_hint' => 'Bundled templates ship with the module. Importing an existing template updates it in place; importing a new one creates it. Use the switch card below to move devices from an old template to the new one.',
  120. 'sec.switch' => 'Template switch (migrate devices)',
  121. 'lbl.switch_hint' => 'Pick the OLD template and the NEW template. Preview lists the affected devices; confirm replaces the template link on every one of them. This is the "import, then switch?" step.',
  122. 'switch.pick' => '-- select template --',
  123. 'switch.src' => 'From template (old)',
  124. 'switch.dst' => 'To template (new)',
  125. 'switch.none' => 'No device currently uses "{1}". Nothing to switch.',
  126. 'switch.result' => '{1} device(s) on "{2}" will be moved to "{3}".',
  127. 'btn.confirm' => 'Confirm switch',
  128. 'msg.need_both' => 'Please choose both source and target template.',
  129. 'msg.same_tpl' => 'Source and target template must differ.',
  130. 'msg.switch_applied' => 'Switched {1} device(s) to the new template.',
  131. // one-click environment initialisation
  132. 'sec.init' => 'Environment initialisation',
  133. 'lbl.init_hint' => 'On a brand-new Zabbix click this once — it creates the WeCom webhook media type, the robot user with its media, the trigger action and the {$WECOM_KEY} macro. Existing objects are reused (safe to re-run as a self-check).',
  134. 'lbl.init_key' => 'Group-robot key (Webhook key)',
  135. 'btn.init' => 'Initialise / self-check',
  136. 'init.title' => 'First-time setup',
  137. 'init.sub' => 'This Zabbix has no WeCom media type yet. Paste your group-robot key and initialise — the media type, robot user, trigger action and macro will all be created automatically, then alerts start flowing to the group.',
  138. 'msg.init_done' => 'Initialisation complete: {1}.',
  139. 'msg.init_mediatype_new' => 'media type created',
  140. 'msg.init_mediatype_ok' => 'media type reused',
  141. 'msg.init_user_new' => 'robot user created',
  142. 'msg.init_user_ok' => 'robot user reused',
  143. 'msg.init_action_new' => 'trigger action created',
  144. 'msg.init_action_ok' => 'trigger action exists',
  145. 'msg.init_key_set' => 'key saved',
  146. ];