Skip to content

Commit ccb513d

Browse files
committed
Review extracted strings
Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent 060afa1 commit ccb513d

File tree

10 files changed

+95
-65
lines changed

10 files changed

+95
-65
lines changed

src/components/AttributionDetailsStep.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
<template>
22
<form class="attribution-details-form">
3-
<b-field label="Work Author" label-position="inside">
3+
<b-field :label="this.$t('stepper.attribution-details.creator-name.label')" label-position="inside">
44
<b-input
55
v-model="value.creatorName"
6-
placeholder="John Silver"
6+
:placeholder="this.$t('stepper.attribution-details.creator-name.placeholder')"
77
/>
88
</b-field>
9-
<b-field label="URL of Creator Profile" label-position="inside">
9+
<b-field :label="this.$t('stepper.attribution-details.creator-profile.label')" label-position="inside">
1010
<b-input
1111
v-model="value.creatorProfileUrl"
12-
placeholder="Creator's blog/ twitter profile/ instagram profile etc"
12+
:placeholder="this.$t('stepper.attribution-details.creator-profile.placeholder')"
1313
/>
1414
</b-field>
15-
<b-field label="Title of Work" label-position="inside">
15+
<b-field :label="this.$t('stepper.attribution-details.work-title.label')" label-position="inside">
1616
<b-input
1717
v-model="value.workTitle"
18-
placeholder="This work"
18+
:placeholder="this.$t('stepper.attribution-details.work-title.placeholder')"
1919
/>
2020
</b-field>
21-
<b-field label="Work URL" label-position="inside">
21+
<b-field :label="this.$t('stepper.attribution-details.work-url.label')" label-position="inside">
2222
<b-input
2323
v-model="value.workUrl"
24-
placeholder="https://www.example.com/image.jpg"
24+
:placeholder="this.$t('stepper.attribution-details.work-url.placeholder')"
2525
/>
2626
</b-field>
2727
</form>

src/components/HelpSection.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,15 @@
197197
<table class="table is-hoverable is-fullwidth">
198198
<tbody>
199199
<tr>
200-
<th>{{ $t('help.how_licenses_communicated.license_full_name') }}</th>
200+
<th>{{ $t('general.license_full_name') }}</th>
201201
<td>{{ $t('license_full_names.CC-BY-SA') }}</td>
202202
</tr>
203203
<tr>
204-
<th>{{ $t('help.how_licenses_communicated.license_short_name') }}</th>
204+
<th>{{ $t('general.license_short_name') }}</th>
205205
<td>CC BY-NC</td>
206206
</tr>
207207
<tr>
208-
<th>{{ $t('help.how_licenses_communicated.license_icons') }}</th>
208+
<th>{{ $t('general.license_icons') }}</th>
209209
<td><LicenseIconography :icon-list="['', 'by', 'nc']"/></td>
210210
</tr>
211211
</tbody>

src/components/LicenseCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="card">
44
<header class="card-header">
55
<h2
6-
:class="'vocab-h2'">Your License</h2>
6+
:class="'vocab-h2'">{{ $t('selected-license.heading') }}</h2>
77
</header>
88
<div class="card-content">
99
<SelectedLicenseDropdown

src/components/SelectedLicenseCode.vue

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
<h2
44
:class="'vocab-h2'"
55
>
6-
{{this.$t('use-license-heading')}}</h2>
6+
{{this.$t('use-license.heading')}}</h2>
77
<b-tabs
88
class="attribution-tab"
99
v-model="activeTab"
1010
>
11-
<b-tab-item :label="this.$t('rich-text-label')">
11+
<b-tab-item :label="this.$t('use-license.rich-text-label')">
1212
<div id="attribution-richtext"
1313
v-html="this.htmlElement"/>
1414
</b-tab-item>
15-
<b-tab-item :label="this.$t('html-label')">
15+
<b-tab-item :label="this.$t('use-license.html-label')">
1616
<div class='control' id='generated-html-container'>
1717
<textarea id='attribution-html'
1818
class='textarea'
@@ -45,7 +45,7 @@
4545
icon="question-circle"
4646
size="is-medium"/>
4747
<a href="https://wiki.creativecommons.org/wiki/Marking_your_work_with_a_CC_license">
48-
{{$t('use-license-hint')}}
48+
{{$t('use-license.hint')}}
4949
</a>
5050
</p>
5151
</div>
@@ -62,7 +62,7 @@ export default {
6262
success: false,
6363
clipboard: null,
6464
currentTab: 0,
65-
copyText: this.$t('copy-label'),
65+
copyText: this.$t('use-license.copy-label'),
6666
currentSelection: 'richtext'
6767
}
6868
},
@@ -101,9 +101,10 @@ export default {
101101
const workUrl = this.$props.value.attributionDetails.workUrl
102102
const workTitle = this.$props.value.attributionDetails.workTitle
103103
if (!workTitle && !workUrl) {
104-
return this.$t('this-work')
104+
return this.$t('code-text.this-work')
105105
} else {
106-
const titleSpan = workTitle ? `<span rel="dc:title">${workTitle}</span>` : this.$t('this-work')
106+
const titleSpan = workTitle ? `<span rel="dc:title">${workTitle}</span>`
107+
: this.$t('code-text.this-work')
107108
if (workUrl) {
108109
return `<a rel="cc:attributionURL" href="${workUrl}">${titleSpan}</a>`
109110
} else {
@@ -112,7 +113,7 @@ export default {
112113
}
113114
},
114115
htmlElement() {
115-
const licenseText = this.$t('license-text', {
116+
const licenseText = this.$t('code-text.license-text', {
116117
workTitle: this.titleElement,
117118
byLine: this.authorElement
118119
})

src/components/SelectedLicenseDropdown.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<template>
22
<div class="license-dropdown">
33
<b-field :label="this.$t('license-dropdown-label')">
4-
<b-select placeholder="Creative Commons License"
5-
v-model="currentLicense">
4+
<b-select v-model="currentLicense">
65
<option
76
v-for="license in this.licenseList"
87
:value="license"

src/components/SelectedLicenseInfo.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
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("license-description.common") }} <span
9-
v-if="!value.fullName.includes('CC0')">{{this.$t("license-description.non-cc0")
10-
}}</span>
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>
1112
</p>
1213
<section class="license-visual-info">
1314
<ul class="license-list">
@@ -17,15 +18,15 @@
1718
<LicenseIconography
1819
:icon-list="[item]"/>
1920
<span class="readable-string">
20-
{{ $t(`license-description.${item}`)}}
21+
{{ $t(`selected-license.description.${item}`)}}
2122
</span>
2223
</li>
2324
</transition-group>
2425
</ul>
2526
<div class="freeworks-status__div">
2627
<a href="https://creativecommons.org/freeworks">
2728
<img v-if="this.freeWorkStatus" src="../assets/license-icons/fc_approved_small.png" alt="" />
28-
<img v-else src="../assets/license-icons/fc_dubious.png" />
29+
<img v-else src="../assets/license-icons/fc_dubious.png" alt=""/>
2930
</a>
3031
</div>
3132
<p class="freeworks-status__p">

src/components/SelectionStep.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ export default {
3232
}
3333
},
3434
question() {
35-
return `stepper-question.${this.stepId.toLowerCase()}`
35+
return `stepper.${this.stepId.toLowerCase()}.question`
3636
},
3737
yesText() {
38-
return `stepper-description.${this.stepId.toLowerCase()}.selected`
38+
return `stepper.${this.stepId.toLowerCase()}.selected`
3939
},
4040
noText() {
41-
return `stepper-description.${this.stepId.toLowerCase()}.not-selected`
41+
return `stepper.${this.stepId.toLowerCase()}.not-selected`
4242
},
4343
yesSelected() {
4444
if (this.$props.selected) {

src/components/Stepper.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<div class='column is-three-fifths-tablet is-half-desktop' id="stepper" >
33
<div class="card">
44
<header class="card-header">
5-
<h2 :class="'vocab-h2'">{{ $t('select-license-heading') }}</h2>
5+
<h2 :class="'vocab-h2'">{{ $t('select-license.heading') }}</h2>
66
</header>
77
<div class="card-content">
8-
<p :class="'stepper-instructions'">{{ $t('select-license-instructions') }}</p>
8+
<p :class="'stepper-instructions'">{{ $t('select-license.instructions') }}</p>
99
<b-steps size="is-small"
1010
v-on:input="disableSAifND"
1111
v-model="currentStep"

0 commit comments

Comments
 (0)