Skip to content

Commit

Permalink
trivial: Address a few translator comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Feb 24, 2024
1 parent 83f0477 commit 05aa4ed
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
10 changes: 5 additions & 5 deletions src/as-relation.c
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,7 @@ as_relation_is_satisfied (AsRelation *relation,
as_relation_check_result_set_message (
rcres,
/* TRANSLATORS: We checked a display size dependency, the first placeholder is the comparison operator (e.g. >=),
second is the expected size and fourth is the size the current device has. */
second is the expected size and third is the size the current device has. */
_("This software requires a display with its longest edge being %s %lu px in size, but the display of this device has %lu px."),
compare_symbols,
req_length,
Expand All @@ -1867,7 +1867,7 @@ as_relation_is_satisfied (AsRelation *relation,
as_relation_check_result_set_message (
rcres,
/* TRANSLATORS: We checked a display size dependency, the first placeholder is the comparison operator (e.g. >=),
second is the expected size and fourth is the size the current device has. */
second is the expected size and third is the size the current device has. */
_("This software requires a display with its shortest edge being %s %lu px in size, but the display of this device has %lu px."),
compare_symbols,
req_length,
Expand All @@ -1877,7 +1877,7 @@ as_relation_is_satisfied (AsRelation *relation,
as_relation_check_result_set_message (
rcres,
/* TRANSLATORS: We checked a display size dependency, the first placeholder is the comparison operator (e.g. >=),
second is the expected size and fourth is the size the current device has. */
second is the expected size and third is the size the current device has. */
_("This software recommends a display with its longest edge being %s %lu px in size, but the display of this device has %lu px."),
compare_symbols,
req_length,
Expand All @@ -1886,7 +1886,7 @@ as_relation_is_satisfied (AsRelation *relation,
as_relation_check_result_set_message (
rcres,
/* TRANSLATORS: We checked a display size dependency, the first placeholder is the comparison operator (e.g. >=),
second is the expected size and fourth is the size the current device has. */
second is the expected size and third is the size the current device has. */
_("This software recommends a display with its shortest edge being %s %lu px in size, but the display of this device has %lu px."),
compare_symbols,
req_length,
Expand Down Expand Up @@ -1915,7 +1915,7 @@ as_relation_is_satisfied (AsRelation *relation,
g_set_error (error,
AS_RELATION_ERROR,
AS_RELATION_ERROR_NOT_IMPLEMENTED,
_("Relation satisfy check for items of type '%s' is not implemented yet."),
_("Satisfiability check for relation items of type '%s' is not implemented yet."),
as_relation_item_kind_to_string (priv->item_kind));

return NULL;
Expand Down
12 changes: 6 additions & 6 deletions src/as-validator-issue-tag.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ AsValidatorIssueTag as_validator_issue_tag_list[] = {

{ "cid-missing-affiliation-kde",
AS_ISSUE_SEVERITY_WARNING,
N_("The component is part of the KDE project, but its ID does not start with KDEs reverse-DNS name (\"org.kde\").")
N_("The component is part of the KDE project, but its ID does not start with KDE's reverse-DNS name (\"org.kde\").")
},

{ "cid-missing-affiliation-gnome",
AS_ISSUE_SEVERITY_INFO,
N_("The component is part of the GNOME project, but its ID does not start with GNOMEs reverse-DNS name (\"org.gnome\").")
N_("The component is part of the GNOME project, but its ID does not start with GNOME's reverse-DNS name (\"org.gnome\").")
},

{ "spdx-expression-invalid",
Expand Down Expand Up @@ -1054,13 +1054,13 @@ AsValidatorIssueTag as_validator_issue_tag_list[] = {
{ "content-rating-type-missing",
AS_ISSUE_SEVERITY_ERROR,
/* TRANSLATORS: Please do not translate AppStream tag and property names (in backticks). */
N_("The `type` attribute of this `content_rating` element is missing or empty."),
N_("The `type` attribute of this `content_rating` element is missing or empty."),
},

{ "content-rating-type-invalid",
AS_ISSUE_SEVERITY_ERROR,
/* TRANSLATORS: Please do not translate AppStream tag and property names (in backticks). */
N_("The `type` attribute of the `content_rating` element has a invalid value."),
N_("The `type` attribute of the `content_rating` element has an invalid value."),
},

{ "content-rating-invalid-tag",
Expand All @@ -1072,13 +1072,13 @@ AsValidatorIssueTag as_validator_issue_tag_list[] = {
{ "content-attribute-id-missing",
AS_ISSUE_SEVERITY_ERROR,
/* TRANSLATORS: Please do not translate AppStream tag and property names (in backticks). */
N_("The `id` attribute of the `content_attribute` element is missing or empty."),
N_("The `id` attribute of the `content_attribute` element is missing or empty."),
},

{ "content-attribute-id-invalid",
AS_ISSUE_SEVERITY_ERROR,
/* TRANSLATORS: Please do not translate AppStream tag and property names (in backticks). */
N_("The `id` attribute of the `content_attribute` element has a invalid value."),
N_("The `id` attribute of the `content_attribute` element has an invalid value."),
},

{ "content-attribute-value-empty",
Expand Down
5 changes: 3 additions & 2 deletions tools/appstreamcli.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ as_client_run_compose (const gchar *command, char **argv, int argc)
#endif
if (!g_file_test (ascompose_exe, G_FILE_TEST_EXISTS)) {
/* TRANSLATORS: appstreamcli-compose was not found */
ascli_print_stderr (_("Compose binary '%s' was not found! Can not continue."),
ascli_print_stderr (_("AppStream Compose binary '%s' was not found! Can not continue."),
ascompose_exe);
/* TRANSLATORS: appstreamcli-compose was not found - info text */
ascli_print_stderr (
Expand Down Expand Up @@ -1153,7 +1153,8 @@ as_client_run_compose (const gchar *command, char **argv, int argc)
NULL,
&wait_status,
&error)) {
ascli_print_stderr (_("Compose failed to execute: %s"), error->message);
/* TRANSLATORS: "Compose" is a command of appstreamcli to build metadata catalogs. */
ascli_print_stderr (_("Compose operation failed to execute: %s"), error->message);
return 6;
}

Expand Down

0 comments on commit 05aa4ed

Please sign in to comment.