refs #874 Use translation for poll in new toot

This commit is contained in:
AkiraFukushima 2019-07-16 00:02:33 +09:00
parent 8d0350c9ec
commit e558945fca
14 changed files with 119 additions and 51 deletions

View File

@ -186,12 +186,14 @@
"close_confirm": "Möchtest du wirklich schließen?",
"close_confirm_ok": "Schließen",
"close_confirm_cancel": "Abbrechen",
"add_image": "Bild hinzufügen",
"change_visibility": "Sichtbarkeit ändern",
"add_cw": "Inhalt hinzufügen Warnung",
"change_sensitive": "Ändern Sie empfindlich",
"pined_hashtag": "Pin the hashtag",
"description": "Für Menschen mit Sehbehinderung beschreiben"
"description": "Für Menschen mit Sehbehinderung beschreiben",
"footer": {
"add_image": "Bild hinzufügen",
"change_visibility": "Sichtbarkeit ändern",
"change_sensitive": "Ändern Sie empfindlich",
"add_cw": "Inhalt hinzufügen Warnung",
"pined_hashtag": "Pin the hashtag"
}
},
"jump": {
"jump_to": "Springe zu..."

View File

@ -27,6 +27,14 @@
"tag": "Hashtag"
},
"modals": {
"new_toot": {
"footer": {
"poll": "Add a poll"
},
"poll": {
"add_choice": "Add a choice"
}
},
"shortcut": {
"h": "Switch the focus to left column",
"l": "Switch the focus to right column",

View File

@ -213,12 +213,18 @@
"close_confirm": "Are you sure you want to cancel the new toot?",
"close_confirm_ok": "OK",
"close_confirm_cancel": "Cancel",
"add_image": "Add images",
"change_visibility": "Change visibility",
"add_cw": "Add content warning",
"change_sensitive": "Change sensitive",
"pined_hashtag": "Pin the hashtag",
"description": "Describe for the visually impaired"
"description": "Describe for the visually impaired",
"footer": {
"add_image": "Add images",
"poll": "Add a poll",
"change_visibility": "Change visibility",
"change_sensitive": "Change sensitive",
"add_cw": "Add content warning",
"pined_hashtag": "Pin the hashtag"
},
"poll": {
"add_choice": "Add a choice"
}
},
"jump": {
"jump_to": "Jump to..."

View File

@ -207,12 +207,14 @@
"close_confirm": "Êtes-vous certain de vouloir fermer ce nouveau pouet ?",
"close_confirm_ok": "Oui",
"close_confirm_cancel": "Annuler",
"add_image": "Ajouter une image",
"change_visibility": "Changer la visibilité",
"add_cw": "Ajouter un avertissement de contenu",
"change_sensitive": "Changer sensible",
"pined_hashtag": "Accrochez le hashtag",
"description": "Décrire pour les malvoyant·e·s"
"description": "Décrire pour les malvoyant·e·s",
"footer": {
"add_image": "Ajouter une image",
"change_visibility": "Changer la visibilité",
"change_sensitive": "Changer sensible",
"add_cw": "Ajouter un avertissement de contenu",
"pined_hashtag": "Accrochez le hashtag"
}
},
"jump": {
"jump_to": "Aller à..."

View File

@ -16,6 +16,16 @@
"accept": "Accept",
"reject": "Reject"
},
"modals": {
"new_toot": {
"footer": {
"poll": "Add a poll"
},
"poll": {
"add_choice": "Add a choice"
}
}
},
"cards": {
"toot": {
"poll": {

View File

@ -210,12 +210,14 @@
"close_confirm": "Sei sicuro/a di voler cancellare il nuovo toot?",
"close_confirm_ok": "OK",
"close_confirm_cancel": "Annulla",
"add_image": "Aggiungi immagini",
"change_visibility": "Modifica visibilità",
"add_cw": "Aggiungi avviso sui contenuti",
"change_sensitive": "Modifica sensibilità",
"pined_hashtag": "Fissa l'hashtag",
"description": "Descrivi per i non vedenti"
"description": "Descrivi per i non vedenti",
"footer": {
"add_image": "Aggiungi immagini",
"change_visibility": "Modifica visibilità",
"change_sensitive": "Modifica sensibilità",
"add_cw": "Aggiungi avviso sui contenuti",
"pined_hashtag": "Fissa l'hashtag"
}
},
"jump": {
"jump_to": "Salta a..."

View File

@ -14,6 +14,16 @@
"accept": "Accept",
"reject": "Reject"
},
"modals": {
"new_toot": {
"footer": {
"poll": "Add a poll"
},
"poll": {
"add_choice": "Add a choice"
}
}
},
"cards": {
"toot": {
"poll": {

View File

@ -212,12 +212,18 @@
"close_confirm": "本当に閉じますか?",
"close_confirm_ok": "閉じる",
"close_confirm_cancel": "キャンセル",
"add_image": "画像を添付",
"change_visibility": "プライバシー設定",
"add_cw": "閲覧注意を追加",
"change_sensitive": "メディアの閲覧注意設定",
"pined_hashtag": "ハッシュタグを固定する",
"description": "メディアの説明を追加"
"description": "メディアの説明を追加",
"footer": {
"add_image": "画像を添付",
"poll": "アンケートを追加",
"change_visibility": "プライバシー設定",
"change_sensitive": "メディアの閲覧注意設定",
"add_cw": "閲覧注意を追加",
"pined_hashtag": "ハッシュタグを固定する"
},
"poll": {
"add_choice": "選択肢を追加"
}
},
"jump": {
"jump_to": "移動..."

View File

@ -200,13 +200,14 @@
"close_confirm": "툿 작성을 그만둘까요?",
"close_confirm_ok": "예",
"close_confirm_cancel": "취소",
"add_image": "이미지 추가",
"change_visibility": "공개 범위 변경",
"add_cw": "경고 문구 추가",
"change_sensitive": "민감한 미디어 설정",
"pined_hashtag": "해시태그고정",
"description": "시각장애인을 위한 설명",
"pinned": "고정 된 툿"
"footer": {
"add_image": "이미지 추가",
"change_visibility": "공개 범위 변경",
"change_sensitive": "민감한 미디어 설정",
"add_cw": "경고 문구 추가",
"pined_hashtag": "해시태그고정"
}
},
"jump": {
"jump_to": "이동"
@ -261,7 +262,8 @@
"reply": "답장하기",
"reblog": "부스트",
"fav": "즐겨찾기",
"detail": "툿 자세히 보기"
"detail": "툿 자세히 보기",
"pinned": "고정 된 툿"
}
},
"side_bar": {

View File

@ -25,6 +25,16 @@
"accept": "Accept",
"reject": "Reject"
},
"modals": {
"new_toot": {
"footer": {
"poll": "Add a poll"
},
"poll": {
"add_choice": "Add a choice"
}
}
},
"cards": {
"toot": {
"poll": {

View File

@ -186,13 +186,14 @@
"close_confirm": "Czy na pewno chcesz porzucić tworzenie wpisu?",
"close_confirm_ok": "OK",
"close_confirm_cancel": "Anuluj",
"add_image": "Dodaj obraz",
"change_visibility": "Zmień widoczność",
"add_cw": "Dodaj ostrzeżenie zawartości",
"change_sensitive": "Zmień wrażliwy",
"pined_hashtag": "Pin the hashtag",
"description": "Wprowadź opis dla niewidomych i niedowidzących",
"pinned": "Przypięty wpis"
"fotter": {
"add_image": "Dodaj obraz",
"change_visibility": "Zmień widoczność",
"change_sensitive": "Zmień wrażliwy",
"add_cw": "Dodaj ostrzeżenie zawartości",
"pined_hashtag": "Pin the hashtag"
}
},
"jump": {
"jump_to": "Przejdź do…"
@ -244,7 +245,8 @@
"reply": "Odpowiadać",
"reblog": "Podbić wpisu",
"fav": "Ulubiony",
"detail": "Szczegół"
"detail": "Szczegół",
"pinned": "Przypięty wpis"
}
},
"side_bar": {

View File

@ -27,6 +27,14 @@
"tag": "Hashtag"
},
"modals": {
"new_toot": {
"footer": {
"poll": "Add a poll"
},
"poll": {
"add_choice": "Add a choice"
}
},
"shortcut": {
"h": "Switch the focus to left column",
"l": "Switch the focus to right column",

View File

@ -36,19 +36,19 @@
</div>
<div slot="footer" class="dialog-footer">
<div class="upload-image">
<el-button size="small" type="text" @click="selectImage" :title="$t('modals.new_toot.add_image')">
<el-button size="small" type="text" @click="selectImage" :title="$t('modals.new_toot.footer.add_image')">
<icon name="camera"></icon>
</el-button>
<input name="image" type="file" class="image-input" ref="image" @change="onChangeImage" :key="attachedMediaId" />
</div>
<div class="poll">
<el-button size="small" type="text" @click="togglePollForm" :title="$t('modals.new_toot.poll')">
<el-button size="small" type="text" @click="togglePollForm" :title="$t('modals.new_toot.footer.poll')">
<icon name="poll"></icon>
</el-button>
</div>
<div class="privacy">
<el-dropdown trigger="click" @command="changeVisibility">
<el-button size="small" type="text" :title="$t('modals.new_toot.change_visibility')">
<el-button size="small" type="text" :title="$t('modals.new_toot.footer.change_visibility')">
<icon :name="visibilityIcon"></icon>
</el-button>
<el-dropdown-menu slot="dropdown">
@ -76,7 +76,7 @@
size="small"
type="text"
@click="changeSensitive"
:title="$t('modals.new_toot.change_sensitive')"
:title="$t('modals.new_toot.footer.change_sensitive')"
:aria-pressed="sensitive"
>
<icon name="eye-slash" v-show="!sensitive"></icon>
@ -88,7 +88,7 @@
size="small"
type="text"
@click="showContentWarning = !showContentWarning"
:title="$t('modals.new_toot.add_cw')"
:title="$t('modals.new_toot.footer.add_cw')"
:class="showContentWarning ? '' : 'clickable'"
:aria-pressed="showContentWarning"
>
@ -100,7 +100,7 @@
size="small"
type="text"
@click="pinedHashtag = !pinedHashtag"
:title="$t('modals.new_toot.pined_hashtag')"
:title="$t('modals.new_toot.footer.pined_hashtag')"
:class="pinedHashtag ? '' : 'clickable'"
:aria-pressed="pinedHashtag"
>

View File

@ -8,7 +8,7 @@
</el-radio>
</li>
</ul>
<el-button class="add-poll" type="info" size="small" @click="addPoll" plain>Add a choice</el-button>
<el-button class="add-poll" type="info" size="small" @click="addPoll" plain>{{ $t('modals.new_toot.poll.add_choice') }}</el-button>
</div>
</template>