Skip to content

Commit 26bec57

Browse files
committed
Improvements
1 parent deb7546 commit 26bec57

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

src/components/LicenseDetailsCard.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
target="_blank"
5151
rel="noopener noreferrer"
5252
>
53-
See the CC0 Deed
53+
{{ $t(textKey) }}
5454
<span class="icon external-link">
5555
<svg
5656
xmlns="http://www.w3.org/2000/svg"
@@ -83,6 +83,11 @@ export default {
8383
return this.shortName === LICENSES.CC0.SHORT
8484
? this.$t('license-details-card.heading-cc0')
8585
: this.$t('license-details-card.heading')
86+
},
87+
textKey() {
88+
return this.shortName === LICENSES.CC0.SHORT
89+
? this.$t('license-details-card.cc0-deed')
90+
: this.$t('license-details-card.license-deed')
8691
}
8792
8893
}

src/locales/en.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@
9292
"heading": "RECOMMENDED LICENSE",
9393
"heading-cc0": "RECOMMENDED",
9494
"full-description": {
95-
"cc0": "This license is marked with a CC0 public domain dedication that the user is giving up his copyright and allowing reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes.",
95+
"cc0": "By marking the work with a CC0 public domain dedication, the creator is giving up their copyright and allowing reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes.",
9696
"cc-by": "This license requires that reusers give credit to the creator. It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes.",
9797
"cc-by-sa": "This license requires that reusers give credit to the creator. It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes. If others remix, adapt, or build upon the material, they must license the modified material under identical terms. ",
9898
"cc-by-nd": "This license requires that reusers give credit to the creator. It allows reusers to copy and distribute the material in any medium or format in unadapted form only, even for commercial purposes. ",
9999
"cc-by-nc": "This license requires that reusers give credit to the creator. It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, for noncommercial purposes only.",
100100
"cc-by-nc-sa": "This license requires that reusers give credit to the creator. It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, for noncommercial purposes only. If others modify or adapt the material, they must license the modified material under identical terms.",
101-
"cc-by-nc-nd": "This license requires that reusers give credit to the creator. It allows reusers to copy and distribute the material in any medium or format, for noncommercial purposes only. If others remix, adapt, or build upon the material, they may not distribute the modified material."
101+
"cc-by-nc-nd": "This license requires that reusers give credit to the creator. It allows reusers to copy and distribute the material in any medium or format in unadapted form only, even for commercial purposes. "
102102
},
103103
"item-description": {
104104
"zero": "This work has been marked as dedicated to the public domain.",
@@ -109,7 +109,9 @@
109109
},
110110
"caption": {
111111
"nc": "Noncommercial means not primarily intended for or directed towards commercial advantage or monetary compensation."
112-
}
112+
},
113+
"license-deed": "See the License Deed",
114+
"cc0-deed": "See the CC0 Deed"
113115
},
114116
"license-use": {
115117
"heading": "Mark your work",

src/utils/licenses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const LICENSES = {
7979
},
8080
FULL: 'Attribution-NonCommercial-NoDerivatives 4.0 International',
8181
SHORT: 'CC BY-NC-ND 4.0',
82-
SLUG: 'cc-by-nd',
82+
SLUG: 'cc-by-nc-nd',
8383
URL: 'http://creativecommons.org/licenses/by-nc-nd/4.0/',
8484
ICONS: ['cc', 'by', 'nc', 'nd']
8585
},

tests/unit/specs/components/LicenseDetailsCard.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('LicenseDetailsCard.vue', () => {
5454

5555
it('Check if the license description is displayed correctly', () => {
5656
const fullDescription = wrapper.find('.license-full-description')
57-
expect(fullDescription.text()).toEqual('license-details-card.full-description.cc-by-nd')
57+
expect(fullDescription.text()).toEqual('license-details-card.full-description.cc-by-nc-nd')
5858
})
5959

6060
it('Check if the license description is displayed correctly', () => {

0 commit comments

Comments
 (0)