Skip to content

Commit c2caec4

Browse files
committed
Add Alt text to Free Culture Works Icons
Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent 4910059 commit c2caec4

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

src/components/SelectedLicenseInfo.vue

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
<a :href="this.$licenseUrl(value.shortName)">{{ value.fullName }}</a>
55
</h4>
66
<p id='chooser-selected-description'>
7-
<b>{{this.value.shortName.slice(0, this.value.shortName.length-3)}}</b>
8-
{{ this.$t("selected-license.description.common") }}
9-
<span v-if="!value.fullName.includes('CC0')">
10-
{{this.$t("selected-license.description.non-cc0") }}
11-
</span>
7+
<b>{{this.value.shortName.slice(0, this.value.shortName.length-3)}}</b> {{
8+
this.$t("license-description.common") }} <span
9+
v-if="!value.fullName.includes('CC0')">{{this.$t("license-description.non-cc0")
10+
}}</span>
1211
</p>
1312
<section class="license-visual-info">
1413
<ul class="license-list">
@@ -18,15 +17,17 @@
1817
<LicenseIconography
1918
:icon-list="[item]"/>
2019
<span class="readable-string">
21-
{{ $t(`selected-license.description.${item}`)}}
20+
{{ $t(`license-description.${item}`)}}
2221
</span>
2322
</li>
2423
</transition-group>
2524
</ul>
2625
<div class="freeworks-status__div">
2726
<a href="https://creativecommons.org/freeworks">
28-
<img v-if="this.freeWorkStatus" src="../assets/license-icons/fc_approved_small.png" alt="" />
29-
<img v-else src="../assets/license-icons/fc_dubious.png" alt=""/>
27+
<img v-if="this.freeWorkStatus" src="../assets/license-icons/fc_approved_small.png"
28+
alt="{{ $t('alt.free-works-icon') }}" />
29+
<img v-else src="../assets/license-icons/fc_dubious.png"
30+
alt="{{ $t('alt.non-free-works-icon') }}" />
3031
</a>
3132
</div>
3233
<p class="freeworks-status__p">

src/locales/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,9 @@
163163
"text": " <p class='help-text'> There are six main licenses that Creative Commons offers.</p> <p class='help-text'>In the diagram to the right, you can see the six main licenses and the public domain CC0 license, and how restrictive they are, with licenses at the top being the least restrictive, and licenses at the bottom being the most restrictive.</p> <p class='help-text'> If you are unsure about which one is right for you and your work, please see the \"Choose a License\" section above. </p>",
164164
"footer": "For more information, please see <a id=\"licensing_examples_link\" href=\"https://creativecommons.org/share-your-work/licensing-types-examples/\">this page on Creative Commons licenses.</a>"
165165
}
166+
},
167+
"alt": {
168+
"free-works-icon": "Free Works Icon",
169+
"non-free-works-icon": "Icon for a non-Free Works License"
166170
}
167171
}

0 commit comments

Comments
 (0)