Skip to content

Commit

Permalink
Source code clean-up based on Weblate
Browse files Browse the repository at this point in the history
CMK-16121

Change-Id: I982007c19093f0dcfda9fe4a4d714bf22d2d0d90
  • Loading branch information
lpetrora committed Aug 12, 2024
1 parent b955343 commit f401f15
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cmk/gui/bi/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def _vs_pack(self) -> Dictionary:
"contact groups specified here - even if they have no administrator priviledges."
),
movable=False,
add_label=_("Add Contact Group"),
add_label=_("Add contact group"),
),
),
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ class LDAPSyncPlugins(BaseSchema):
contact_group_membership = fields.Nested(
LDAPContactGroupMembership,
description="Adds the user to contact groups based on the group memberships in LDAP. This plug-in "
"adds the user only to existing contactgroups while the name of the contactgroup must match the "
"adds the user only to existing contact groups while the name of the contact group must match the "
"common name (cn) of the LDAP group.",
)
groups_to_custom_user_attributes = fields.Nested(
Expand Down
2 changes: 1 addition & 1 deletion cmk/gui/plugins/wato/active_checks/form_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _transform_tuple_format(params: tuple[str, Any]) -> dict:
def _valuespec_active_checks_form_submit() -> Transform:
return Transform(
valuespec=Dictionary(
title=_("Check HTML Form Submit"),
title=_("Check HTML form submit"),
help=_(
"Check submission of HTML forms via HTTP/HTTPS using the plug-in <tt>check_form_submit</tt> "
"provided with Checkmk. This plug-in provides more functionality than <tt>check_http</tt>, "
Expand Down
4 changes: 2 additions & 2 deletions cmk/gui/plugins/wato/check_parameters/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def _parameter_valuespec_azure_vms() -> Migrate:
item_spec=_item_spec_azure_vms,
match_type="dict",
parameter_valuespec=_parameter_valuespec_azure_vms,
title=lambda: _("Azure Virtual Machines"),
title=lambda: _("Azure virtual machines"),
)
)

Expand Down Expand Up @@ -470,7 +470,7 @@ def _parameter_valuespec_azure_vms_summary() -> Dictionary:
group=RulespecGroupCheckParametersApplications,
match_type="dict",
parameter_valuespec=_parameter_valuespec_azure_vms_summary,
title=lambda: _("Azure Virtual Machines Summary"),
title=lambda: _("Azure virtual machines summary"),
)
)

Expand Down
2 changes: 1 addition & 1 deletion cmk/gui/plugins/wato/check_parameters/cpu_utilization.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def cpu_util_elements():
"may go unnoticed when only monitoring the total utilization of the CPU. "
"With this configuration, Checkmk will alert if a single core is "
"exceeding a utilization threshold over an extended period of time. "
"This is currently only supported on linux and windows agents "
"This is currently only supported on Linux and Windows agents "
"as well as devices monitored through the host-resource mib"
),
),
Expand Down
2 changes: 1 addition & 1 deletion cmk/gui/plugins/wato/check_parameters/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ def _parameter_valuespec_if() -> Dictionary:
title=_("Activate total bandwidth metric (sum of in and out)"),
help=_(
"By activating this item, the sum of incoming and outgoing traffic will "
"be monitored via a seperate metric. Setting levels on the used total bandwidth "
"be monitored via a separate metric. Setting levels on the used total bandwidth "
"is optional. If you set levels you might also consider using averaging."
),
elements=[
Expand Down
4 changes: 2 additions & 2 deletions cmk/gui/plugins/wato/check_parameters/ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ def process_discovery_descr_option():
"the remaining groups are copied into the regular expression, "
"nevertheless.</p>"
"<p>As an alternative to <tt>%s</tt> you may also use <tt>%1</tt>, "
"<tt>%2</tt>, etc. These will be replaced by the first, second, "
"... matching group. This allows you to reorder thing"
"<tt>%2</tt>, etc. These will be replaced by the first, second, "
"... matching group. This allows you to reorder things."
),
)

Expand Down
2 changes: 1 addition & 1 deletion cmk/gui/plugins/wato/check_parameters/systemd_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _parameter_valuespec_systemd_units() -> Dictionary:
(
"cpu_time",
Tuple(
title=_("CPU Time upper levels"),
title=_("CPU time upper levels"),
help=_("Define the upper levels for the consumed CPU time."),
elements=[
TimeSpan(title=_("Warning at"), display=MIN_SEC_MS),
Expand Down
4 changes: 2 additions & 2 deletions cmk/gui/userdb/ldap_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2241,8 +2241,8 @@ def title(self) -> str:
def help(self):
return _(
"Adds the user to contact groups based on the group memberships in LDAP. This "
"plugin adds the user only to existing contactgroups while the name of the "
"contactgroup must match the common name (cn) of the LDAP group."
"plug-in adds the user only to existing contact groups while the name of the "
"contact group must match the common name (cn) of the LDAP group."
)

def lock_attributes(self, params):
Expand Down
2 changes: 1 addition & 1 deletion cmk/gui/wato/_notification_parameter/_opsgenie_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def spec(self):
IndividualOrStoredPassword(
title=_(
"API Key to use. Depending on your opsgenie "
"subscription you can use global or team integration api "
"subscription you can use global or team integration API "
"keys."
),
allow_empty=False,
Expand Down
2 changes: 1 addition & 1 deletion cmk/plugins/emailchecks/rulesets/active_check_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def _forward_to_ec_form() -> Dictionary:


rule_spec_mail = ActiveCheck(
title=Title("Check Email"),
title=Title("Check email"),
topic=Topic.APPLICATIONS,
name="mail",
parameter_form=_valuespec_active_checks_mail,
Expand Down
2 changes: 1 addition & 1 deletion cmk/plugins/emailchecks/rulesets/active_check_mail_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _valuespec_active_checks_mail_loop() -> Dictionary:

rule_spec_active_check_mail_loop = ActiveCheck(
name="mail_loop",
title=Title("Check Email Delivery"),
title=Title("Check email delivery"),
topic=Topic.APPLICATIONS,
parameter_form=_valuespec_active_checks_mail_loop,
)
2 changes: 1 addition & 1 deletion cmk/plugins/omd/graphing/omd_apache_cmk_http_pagetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)
metric_secs_cmk_wato = metrics.Metric(
name="secs_cmk_wato",
title=Title("Checkmk: WATO: Secs"),
title=Title("Checkmk: Setup: Secs"),
unit=UNIT_PER_SECOND,
color=metrics.Color.DARK_CYAN,
)
Expand Down
2 changes: 1 addition & 1 deletion cmk/plugins/omd/graphing/omd_apache_cmk_http_traffic.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)
metric_bytes_cmk_wato = metrics.Metric(
name="bytes_cmk_wato",
title=Title("Checkmk: WATO: Bytes"),
title=Title("Checkmk: Setup: Bytes"),
unit=UNIT_BYTES_PER_SECOND,
color=metrics.Color.DARK_CYAN,
)
Expand Down
2 changes: 1 addition & 1 deletion cmk/plugins/omd/graphing/omd_apache_handled_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)
metric_requests_cmk_wato = metrics.Metric(
name="requests_cmk_wato",
title=Title("Checkmk: WATO: Requests"),
title=Title("Checkmk: Setup: Requests"),
unit=UNIT_PER_SECOND,
color=metrics.Color.DARK_CYAN,
)
Expand Down

0 comments on commit f401f15

Please sign in to comment.