WordPress.org

Making WordPress.org

Opened 4 months ago

Last modified 4 months ago

#4470 new enhancement

correct plural form for Persian language and Persian Afghanistan

Reported by: dedidata Owned by:
Milestone: Priority: normal
Component: Translate Site & Plugins Keywords: has-patch
Cc:

Description

Hi,

This is a correction for plural form for Translate system for Persian language and Persian Afghanistan

Here is a sample:

Singular: %s post not updated, somebody is editing it.
Plural: %s posts not updated, somebody is editing them.

Singular translation: %s نوشته بروزرسانی نشد، فردی در حال ویرایش آن است.
Plural translation: %s نوشته بروزرسانی نشد، فردی در حال ویرایش آنها می‌باشد.

in first part of the sentence it is same, but in second part it is different
this is a very good sample to clear this issue
I added a patch for this problem

Attachments (1)

correct-plural-form.patch (608 bytes) - added by dedidata 4 months ago.
patch for correct plural form

Download all attachments as: .zip

Change History (5)

@dedidata
4 months ago

patch for correct plural form

#1 @ocean90
4 months ago

  • Keywords has-dev-note removed
  • Priority changed from high to normal

Note that this should have been reported first to GlotPress since that's where the file is officially maintained.

Both plural forms were added/changed 8-10 years ago, see https://github.com/GlotPress/GlotPress-WP/commit/ca420198fb6337ff5a8b0c4f7f4756147bd2003f#diff-a1e4501577c03af0eade31b76b4dc332R455 and https://github.com/GlotPress/GlotPress-WP/commit/5fe5c8fbc4b88c02de6561a3f1162856823bb11b.

I'm not sure why nobody has noticed this before? Did something change? Unfortunately it's not easy to change now since all existing translations for plural forms would be invalid/only half translated.

#2 @dedidata
4 months ago

@ocean90
Hi Dominik,

As I mentioned I think we should have this format for Persian (Correct format), The provided format in the past cannot cover all cases, There are some cases we need to add different translations for singular and plural forms

is it possible to modify the format and copy current singular translation value into plural value as default for existing translations?

This ticket was mentioned in Slack in #meta by tellyworth. View the logs.


4 months ago

Note: See TracTickets for help on using tickets.