improved Czech language localization + changed a few hard-coded strings to localized ones
This commit is contained in:
parent
e7e80d637d
commit
020b2d7319
3 changed files with 499 additions and 396 deletions
|
@ -13,7 +13,8 @@ import type { AutoSuggestion } from 'soapbox/components/autosuggest-input';
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
option_placeholder: { id: 'compose_form.poll.option_placeholder', defaultMessage: 'Answer #{number}' },
|
option_placeholder: { id: 'compose_form.poll.option_placeholder', defaultMessage: 'Answer #{number}' },
|
||||||
add_option: { id: 'compose_form.poll.add_option', defaultMessage: 'Add an answer' },
|
add_option: { id: 'compose_form.poll.add_option', defaultMessage: 'Add an answer' },
|
||||||
remove_option: { id: 'compose_form.poll.remove_option', defaultMessage: 'Remove this answer' },
|
remove_option: { id: 'compose_form.poll.remove_option', defaultMessage: 'Remove this answer' }, //not used any more?
|
||||||
|
delete_option: { id: 'compose_form.poll.delete_option', defaultMessage: 'Delete' },
|
||||||
pollDuration: { id: 'compose_form.poll.duration', defaultMessage: 'Duration' },
|
pollDuration: { id: 'compose_form.poll.duration', defaultMessage: 'Duration' },
|
||||||
removePoll: { id: 'compose_form.poll.remove', defaultMessage: 'Remove poll' },
|
removePoll: { id: 'compose_form.poll.remove', defaultMessage: 'Remove poll' },
|
||||||
switchToMultiple: { id: 'compose_form.poll.switch_to_multiple', defaultMessage: 'Change poll to allow multiple answers' },
|
switchToMultiple: { id: 'compose_form.poll.switch_to_multiple', defaultMessage: 'Change poll to allow multiple answers' },
|
||||||
|
@ -95,7 +96,7 @@ const Option: React.FC<IOption> = ({
|
||||||
|
|
||||||
{index > 1 && (
|
{index > 1 && (
|
||||||
<div>
|
<div>
|
||||||
<Button theme='danger' size='sm' onClick={handleOptionRemove}>Delete</Button>
|
<Button theme='danger' size='sm' onClick={handleOptionRemove}>{intl.formatMessage(messages.delete_option)}</Button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</HStack>
|
</HStack>
|
||||||
|
|
|
@ -179,6 +179,7 @@ const ReportModal = ({ onClose }: IReportModal) => {
|
||||||
<Modal
|
<Modal
|
||||||
title={<FormattedMessage id='report.target' defaultMessage='Reporting {target}' values={{ target: <strong>@{account.acct}</strong> }} />}
|
title={<FormattedMessage id='report.target' defaultMessage='Reporting {target}' values={{ target: <strong>@{account.acct}</strong> }} />}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
|
cancelText={<FormattedMessage id='common.cancel' defaultMessage='Cancel' />}
|
||||||
cancelAction={currentStep === Steps.THREE ? undefined : onClose}
|
cancelAction={currentStep === Steps.THREE ? undefined : onClose}
|
||||||
confirmationAction={handleNextStep}
|
confirmationAction={handleNextStep}
|
||||||
confirmationText={confirmationText}
|
confirmationText={confirmationText}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue