Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing translation to transifex #4269

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

petrjasek
Copy link
Member

SDCP-704

@petrjasek petrjasek added this to the 2.6.3 milestone Jun 22, 2023
@@ -70,7 +70,7 @@ export class Translations extends React.PureComponent<IProps> {
>
{'('}<b>{this.props.item.translations.length}</b>{')'}
{' '}
{gettextPlural(this.props.item.translations.length, 'translation', 'translations')}
{this.props.item.translations.length === 1 ? gettext('Translation') : gettext('Translations')}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should keep gettextPlural - other languages have more plural forms than one that depend on item count (in this case translations.length) and when the script is doing string extraction, it will mark it as plural. As a result translators would have to set 3-4 or how many plural forms there are in their language.

Copy link
Member Author

@petrjasek petrjasek Jun 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep problem is that it doesn't work atm, those strings don't show up on transifex

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about .pot file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they are in the .pot, that part seems ok. will investigate it further this is rather temporary fix

@petrjasek petrjasek merged commit 4277e01 into superdesk:develop Jun 23, 2023
@petrjasek petrjasek deleted the fix-translation-translation branch June 23, 2023 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants