Summary: | Code improvement: reduce unnecessary switch | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kuserfeedback | Reporter: | Aleksey Kontsevich <akontsevich> |
Component: | Telemetry Provider | Assignee: | Volker Krause <vkrause> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Aleksey Kontsevich
2018-03-07 14:53:04 UTC
Copy paste missplell - need to change to: const auto name = (d->appName().isEmpty()) ? "this application" : d->appName(); Code-wise I agree with your suggestion, but human languages don't work like this unfortunately ;) In English this is fine, in German however the translation of "this" varies based on the context it's used in. I suspect there are more languages this is translated to with similar grammatical issues. I see :) Did not thought about tr(). Ok. Just wanted to improve the code :D |