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

[SDCP-529] Fix various UI translations #1571

Merged
merged 3 commits into from
May 5, 2021

Conversation

MarkLark86
Copy link
Collaborator

  • Patch strings in constant files after superdeskApi has initialised
  • update planning.pot

MarkLark86 added 2 commits May 5, 2021 16:13
Patch strings in constant files after superdeskApi has initialised
@MarkLark86 MarkLark86 added this to the 2.3 milestone May 5, 2021
@MarkLark86 MarkLark86 requested review from petrjasek and GyanP May 5, 2021 06:23
Copy link
Member

@petrjasek petrjasek left a comment

Choose a reason for hiding this comment

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

I'm not sure about that approach with assigning the translated labels later, imo it's a bit error prone as you can use the labels before those are translated. we can give it a try, maybe we can set some placeholder there rather then the actual string so it would be obvious if it's not used correctly

msgstr ""

#: client/components/ConfirmationModal.tsx:108
msgid "Are you sure ?"
Copy link
Member

Choose a reason for hiding this comment

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

extra space

@MarkLark86
Copy link
Collaborator Author

These labels are used in React components, which are rendered by an AngularJS controller. So here we can guarantee they will be set for UI purposes.

I agree, it's not a good solution. Tomas has ideas we can discuss, maybe for 2.4?

@petrjasek
Copy link
Member

sure

@MarkLark86 MarkLark86 merged commit 9fe70aa into superdesk:develop May 5, 2021
@MarkLark86 MarkLark86 added the merged Merged into release branch label Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged Merged into release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants