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

1725525: Better translation of syspurpose; ENT-1680 #2270

Merged
merged 1 commit into from Jun 2, 2020

Conversation

jirihnidek
Copy link
Contributor

@jirihnidek jirihnidek commented Jun 1, 2020

  • BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1725525
  • One string was not marked for localization
  • Many strings had bad ending of function _("string").
    • When the string contains something like this:
      "{attr}".format(attr=some_variable), then the _()
      has to be used like this:
      _("{attr}").format(attr=some_variable)
      and not like this:
      _("{attr}".format(attr=some_variable))
      The second case is wrong, because gettext will try to find
      translation for string that is included in some_variable.

* BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1725525
* One string was not marked for localization
* Many strings had bad ending of function _("string").
  - When the string contains something like this:
    "{attr}".format(attr=some_variable), then the _()
    has to be used like this:
    _("{attr}").format(attr=some_variable)
    and not like this:
    _("{attr}".format(attr=some_variable))
    The second case is wrong, because gettext will try to find
    translation for string that is included in some_variable.
@jirihnidek jirihnidek changed the title 1725525: Mark one string for translation; ENT-1680 1725525: Better translation of syspurpose; ENT-1680 Jun 2, 2020
@jirihnidek
Copy link
Contributor Author

Issues in following bugs should be fixed in this PR too.

@cnsnyder cnsnyder self-assigned this Jun 2, 2020
@cnsnyder cnsnyder merged commit ffaff52 into master Jun 2, 2020
@m-horky m-horky deleted the jhnidek/1725525 branch October 7, 2021 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants