Commit 82643ae4 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix license abbreviation (patch by JungHee Lee)

parent 6222c0cf
Pipeline #64340 passed with stage
in 8 minutes and 56 seconds
......@@ -382,7 +382,7 @@ void ResourceWidget::slotUpdateCurrentItem()
/**
* @brief ResourceWidget::licenseNameFromUrl
* @param licenseUrl
* @param shortName Whether the long name like "Attribution-NonCommercial-ShareAlike 3.0" or the short name like "CC BY-ND-SA 3.0" should be returned
* @param shortName Whether the long name like "Attribution-NonCommercial-ShareAlike 3.0" or the short name like "CC BY-NC-SA 3.0" should be returned
* @return the license name "Unnamed License" if url is not known.
*/
QString ResourceWidget::licenseNameFromUrl(const QString &licenseUrl, const bool shortName)
......@@ -401,7 +401,7 @@ QString ResourceWidget::licenseNameFromUrl(const QString &licenseUrl, const bool
licenseShortName = i18nc("Creative Commons License (short)", "CC BY-ND");
} else if (licenseUrl.contains(QStringLiteral("/by-nc-sa/"))) {
licenseName = i18nc("Creative Commons License", "Creative Commons Attribution-NonCommercial-ShareAlike");
licenseShortName = i18nc("Creative Commons License (short)", "CC BY-ND-SA");
licenseShortName = i18nc("Creative Commons License (short)", "CC BY-NC-SA");
} else if (licenseUrl.contains(QStringLiteral("/by-sa/"))) {
licenseName = i18nc("Creative Commons License", "Creative Commons Attribution-ShareAlike");
licenseShortName = i18nc("Creative Commons License (short)", "CC BY-SA");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment