Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I18N: Mark messages in "dnf info" output for a translation #1698

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

ppisar
Copy link
Contributor

@ppisar ppisar commented Sep 13, 2024

Related: #1687

@@ -52,25 +52,25 @@ void print_package_info(
scols_table_enable_noheadings(table, 1);
scols_table_new_column(table, "key", 1, 0);
scols_table_new_column(table, "value", 1, SCOLS_FL_WRAP);
scols_table_set_column_separator(table, " : ");
scols_table_set_column_separator(table, _(" : "));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it expected that the translators know what purpose this string serve or should a note, such as https://github.com/rpm-software-management/dnf5/blob/main/dnf5daemon-client/commands/advisory/arguments.hpp#L153-L154 , be added?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add a comment. I'm not sure how to describe it. Because the colon here is abused as a column separator. The current use in the English text is wrong from typographical point of view.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this notice:

    // Note for translators: This is a right-aligned column separator in
    // a package properties table as in "Name    : bash".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@pkratoch pkratoch added this pull request to the merge queue Sep 17, 2024
Merged via the queue into rpm-software-management:main with commit 95593e1 Sep 17, 2024
13 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants