Conversation
There was a problem hiding this comment.
Thanks a lot for the translation!
Please see the comments about plural forms.
Arabic would be the first right-to-left language in FairScan. Were you able to test the app with your translation?
I don't understand Arabic but I did a few tests and noticed two issues (which I believe are not blockers):
| <plurals name="files_saved_to"> | ||
| <item quantity="one">حُفظ %2$s في %3$s</item> | ||
| <item quantity="other">حُفظ %1$d من الملفات في %3$s</item> | ||
| </plurals> |
There was a problem hiding this comment.
This triggers a failure in an automated check (see https://github.com/pynicolas/FairScan/actions/runs/22554421820/job/65409818705?pr=120):
For locale "ar" (Arabic) the following quantities should also be defined: few (e.g. "3"), many (e.g. "11"), two (e.g. "2"), zero (e.g. "0") [MissingQuantity]
I honestly don't know whether this is a real problem for Arabic. We can disable the automated check on this string by adding tools:ignore="MissingQuantity". It's already done for some languages (see https://github.com/pynicolas/FairScan/blob/v1.15.0/app/src/main/res/values-it/strings.xml#L68)
There was a problem hiding this comment.
Arabic would be the first right-to-left language in FairScan. Were you able to test the app with your translation?
Yes, it does require Fairscan to support RTL. Is there some build I can install to test it out?
actually this is important, Arabic indeed require this form of plurals. Weblate makes this easier to translate see https://hosted.weblate.org/translate/geoshare/android-app/ar/?checksum=b1a973c0af6be020
https://docs.weblate.org/en/latest/user/translating.html#plurals
which I think needs to be like
<plurals name="page_count">
<item quantity="zero">لا صفحات</item>
<item quantity="one">%d صفحة</item>
<item quantity="two">%d صفحتان</item>
<item quantity="few">%d صفحات</item>
<item quantity="many">%d صفحة</item>
<item quantity="other">%d صفحة</item>
</plurals>
| <plurals name="page_count"> | ||
| <item quantity="one">%d صفحة</item> | ||
| <item quantity="other">%d صفحات</item> | ||
| </plurals> |
|
@jermanuts If it helps you, I created another PR based on yours: #124
I understand that Weblate may make this work easier for non-developers. I will look into it but not in the short term. |
|
Isn't automatic build of APKs based on PRs may attract bad actors? Unless these builds require some interaction from you which is fine. I was going to add commits to add these plurals but it seems like your PR added and the ignore for |
I don't think so. The APKs are built only as CI artifacts attached to the PR, with no secrets involved and no automatic release or distribution. And I need to manually trigger the build. What I realize is that you probably can't install those APKs because they are not signed. So they don't really help.
I added
That would be perfect. |
I meant this line but I think this is necessary for apk builds by github actions?
Yes, please add it to your PR (copy code block from my previous comment) and remove the ignore attribute. |
This change was required so that the XML file is valid:
Thanks. I added that to #124. That made it possible to drop I then merged #124. Your commit is now on the Thanks a lot for your contribution! |
No description provided.