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 plural and plural forms labels to row previews and format the row editor accordingly #1506

Merged
merged 13 commits into from
Apr 24, 2023

Conversation

pedro-mendonca
Copy link
Member

What?

Add plurals to original in the translation row preview, and add plural forms labels, accordingly to translate.wp.org

Why?

When filtering the Untranslated strings, there is no visual information about plural strings, either on original or translation column.
Example:
imagem

If the translation is added, only the translation shows the plural forms.
imagem

How?

This PR adds the same logic to the template as the template on wp.org, implementing this:

  • Add plural to original plural strings
  • Add Singular/Plural and other plural forms (e.g. Russian) to both original and translation texts
  • Vertical align to center the row plurals

Result for Singular/Plural (e.g.: Portuguese):
imagem

Result for other plural form (e.g.: Russian):
imagem

Testing Instructions

  1. Filter plural strings
  2. See row preview with and without translation
  3. Check it on languages with Singular/Plural and languages with othet plural forms (eg. Russian translation set)

Fixes #1505

@pedro-mendonca
Copy link
Member Author

The commit 22e2856 moves the Plural forms labels above the Original texts.

The commit ac9d084 removes the margin from the Plural form label and the Translation text.

Please check the comment #1505 (comment) on the issue.

@pedro-mendonca pedro-mendonca changed the title Add plural and plural forms labels to row previews Add plural and plural forms labels to row previews and format the row editor accordingly Nov 18, 2022
@pedro-mendonca
Copy link
Member Author

Removed minified asset from the PR accordingly this chat with @amieiro about including minified assets.

The minified diffs is unreadable, and merging it creates conflicts with other pending PRs that are very difficult to keep up with.

It's better to build all the assets on the repo, after all the merge sessions are complete.

@akirk
Copy link
Member

akirk commented Mar 8, 2023

We agreed on our triage session that this can be merged after a code review. The functionality is fine.

amieiro
amieiro previously approved these changes Apr 18, 2023
@pedro-mendonca
Copy link
Member Author

The PR is now again free of conflicts.

@amieiro amieiro enabled auto-merge (squash) April 24, 2023 14:16
@amieiro amieiro disabled auto-merge April 24, 2023 14:16
@amieiro amieiro merged commit bb5c8ba into GlotPress:develop Apr 24, 2023
@pedro-mendonca pedro-mendonca deleted the templates branch April 25, 2023 08:20
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.

Add original plurals and labels to row preview plural strings
3 participants