Bug 886718
Summary: | [ru_RU] Creating Organization: error message substitutes strings result in broken grammar | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Yulia <ypoyarko> |
Component: | Content Management | Assignee: | Miroslav Suchý <msuchy> |
Status: | CLOSED UPSTREAM | QA Contact: | SAM QE List <sam-qe-list> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | Nightly | CC: | eng-l10n-bugs, hpeters, lijli, msuchy, rlandman |
Target Milestone: | Unspecified | Keywords: | i18n, Translation, Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-09-19 18:14:13 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Yulia
2012-12-13 01:05:19 UTC
Mass move of i18n to CFSE where they are present as well Please suggest better wording for source string, which can be translatable to Russian. Otherwise, I'm affraid, this will be closed as WONTFIX. May be: A label was not provided during organization creation; therefore, a label of '%s' was automatically assigned. If you would like a different label, please delete the organization and recreate it with the desired label. That way the word "organization" is included into source paragraph instead replacing %s. That will allow translators adjust the grammar accordingly. Thanks for looking into this, Yulia *** Bug 886744 has been marked as a duplicate of this bug. *** I will copy https://bugzilla.redhat.com/show_bug.cgi?id=886744#c5 here: The code is: label_assigned_text = _("A label was not provided during %s creation; therefore, a label of '%s' was " + "automatically assigned. If you would like a different label, please delete the " + "%s and recreate it with the desired label.") % [object_type, label, object_type] so first and third parametr is the same. Object_type can be e.g. repository, environment, organization, product etc. Hardcoding first %s is not possible (or will lead to duplication of strings). I would say that having both object_type and label in message is MUST item. And if necessary I would prefer less gramatical correct translations, but with both values as it gives admin necessary information. If you came with translation which preserve all variable, that would be great. Hi Miroslav, I discussed this issue with Yulia and we can see two possible solutions: 1) Hardcoding the first and third variables (object_type) and having duplicate strings accordingly. From a translators point of view I'd much rather translate 10 strings correct than 1 string knowingly incorrect. 2) Re-writing the string something like this: "No label was provided. Object type: %s. A label of '%s' was automatically assigned. If you would like a different label, delete the object (object type: %s) and recreate it with the desired label." Sounds not as polished, but is possible to be translated correctly for any object type. BTW, this issue has been reported for de-DE and ru-RU, but I suspect more languages might be affected - all those that use different grammatical genders for nouns. Worth trying to find a solution for. The 2) is maybe grammatically correct but ugly as hell. So I went the 1) way. Even if that result in ugly code. https://github.com/Katello/katello/pull/1594 These bugs have been resolved in upstream projects for a period of months so I'm mass-closing them as CLOSED:UPSTREAM. If this is a mistake feel free to re-open. |