Skip to content

Improve readability of utils.YesNo for translators#799

Open
marv7000 wants to merge 1 commit into
uyuni-project:mainfrom
marv7000:translation_hints
Open

Improve readability of utils.YesNo for translators#799
marv7000 wants to merge 1 commit into
uyuni-project:mainfrom
marv7000:translation_hints

Conversation

@marv7000

Copy link
Copy Markdown
Contributor

What does this PR change?

Improves the utils.YesNo function, allowing the strings to be translated easier.
Also added a check that makes the function return false when no response is given (as previously implied by [y/N].

Codespace

Check if you already have a running container clicking on Running CodeSpace

Create CodeSpace About billing for Github Codespaces CodeSpace Billing Summary CodeSpace Limit

Test coverage

  • No tests: already covered

  • DONE

Links

Issue(s): #

  • DONE

Changelogs

Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository

If you don't need a changelog check, please mark this checkbox:

  • No changelog needed

If you uncheck the checkbox after the PR is created, you will need to re-run changelog_test (see below)

Before you merge

Check How to branch and merge properly!

@sonarqubecloud

Copy link
Copy Markdown

@mcalmer mcalmer requested review from aaannz and cbosdo and removed request for aaannz May 27, 2026 13:47

@aaannz aaannz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, I have just small suggestion.

Comment thread shared/utils/utils.go
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