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

Change the way we handle source strings updates #4748

Merged
merged 1 commit into from
Nov 25, 2021
Merged

Conversation

Senen
Copy link
Member

@Senen Senen commented Nov 25, 2021

References

We changed a source string with interpolations in #4665. However, as we were using the Crowdin update_option: update_as_unapproved, the other languages previous translations of this string kept as approved, so Crowdin managers and translations did not realize about this change.

More precisely, we changed the source string from Are you sure? This action will delete %{resource_name} '%{name}' and can't be undone. to Are you sure? This action will delete \"%{name}\" and can't be undone. which only has one interpolation argument. As other languages keep having the old translation with two interpolations arguments, the application crashed when loading the translation.

This problem affects the following languages: German, Turkish, Italian, Romanian and Swedish.

Objectives

Change the way we handle source strings updates, so the other languages translations approvals are removed, and we have a way to find them.

With the update_without_changes, previous translations are kept even when the source string changed utterly. Using this option caused some problems when updating source language strings, as the translators do not get any notification, and the old translation keeps approved, so translators do not have an easy way to find those strings in Crowdin.

With the update_as_unapproved option, we hope translators and Crowdin managers can find those translations that need to be updated by searching among not approved translations.

Quoting Crowdin's docs [1]:

update_without_changes - preserve translations and validations of changed strings
update_as_unapproved - preserve translations of changed strings and remove validations of those translations if they exist

[1] https://support.crowdin.com/configuration-file/#changed-strings-update

With the `update_without_changes`, previous translations are kept
even when the source string changed utterly. Using this option caused
some problems when updating source language strings, as the
translators do not get any notification, and the old translation keeps
approved, so translators do not have an easy way to find those strings
in Crowdin.

With the `update_as_unapproved` option, translators and Crowdin
managers can find those translations that need to be updated by
searching among not approved translations.

Quoting Crowdin's docs [1]:

> update_without_changes - preserve translations and validations of
   changed strings
> update_as_unapproved - preserve translations of changed strings
   and remove validations of those translations if they exist

[1] https://support.crowdin.com/configuration-file/#changed-strings-update
@Senen Senen self-assigned this Nov 25, 2021
@Senen Senen added this to Reviewing in Consul Democracy via automation Nov 25, 2021
@Senen Senen moved this from Reviewing to Doing in Consul Democracy Nov 25, 2021
Consul Democracy automation moved this from Doing to Testing Nov 25, 2021
@Senen Senen merged commit ca5a718 into master Nov 25, 2021
Consul Democracy automation moved this from Testing to Release 1.4.1 Nov 25, 2021
@Senen Senen deleted the crowdin_integration branch November 25, 2021 12:42
@javierm javierm self-assigned this Nov 25, 2021
@javierm javierm moved this from Release 1.4.1 to Release 1.4.0 in Consul Democracy Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants