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 support to translate "plurals" in strings.xml #2

Open
MahmoudMabrok opened this issue Jul 5, 2020 · 4 comments
Open

add support to translate "plurals" in strings.xml #2

MahmoudMabrok opened this issue Jul 5, 2020 · 4 comments

Comments

@MahmoudMabrok
Copy link

I tried app but with Plurals it does not add them
also it seems it need a special handle
as with English it has {one,other}, with arabic has {one,few,many,zero}

@swapnil1104
Copy link
Owner

swapnil1104 commented Jul 6, 2020

Hey @MahmoudMabrok
Can you please share the snippet for the same so that I can include that in the parser as well?

@MahmoudMabrok
Copy link
Author

en

    <plurals name="package_duration">
        <item quantity="one">%1$d month</item>
        <item quantity="other">%1$d months</item>
    </plurals>

ar

   <plurals name="package_duration" tools:ignore="MissingQuantity">
        <item quantity="one">%1$d شهر</item>
        <item quantity="other">%1$d شهرا</item>
    </plurals>

@MahmoudMabrok
Copy link
Author

MissingQuantity added as with arabic there are other items like one, few ,etc

@swapnil1104
Copy link
Owner

@MahmoudMabrok will be enabled by this weekend.

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

No branches or pull requests

2 participants