WordPress.org

Making WordPress.org

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#1160 closed defect (fixed)

Three placeholders in one string named in the same way make the translation impossible

Reported by: aaleksanyants Owned by: coffee2code
Milestone: Priority: normal
Component: Plugin Directory Keywords:
Cc:

Description

In PO file there are strings containing two and more placeholders with the same name which makes their translation almost impossible. Here is an example:
%s of %s support threads in the last %s have been resolved. (References: plugins/_support.php:50).
In Armenian, the correct order should be something like : In the last %s there have been resolved %s support threads out of %s. If you would name variables with numbers added, it would be no problem to change the order ...

Change History (6)

#1 @ocean90
4 years ago

  • Component changed from General to Plugin Directory

#2 @aaleksanyants
4 years ago

  • Component changed from Plugin Directory to General

Oops, sorry for checking wrong component, indeed it should be placed under plugin directory!

#3 @aaleksanyants
4 years ago

BTW, this is not the olny place wich casues difficulties, here is another one:
#: wp-admin/includes/deprecated.php:602
msgid "Displaying %s–%s of %s"

#4 @coffee2code
4 years ago

  • Owner set to coffee2code
  • Status changed from new to accepted

#5 @coffee2code
4 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in [10729-dotorg].

BTW, this is not the olny place wich casues difficulties, here is another one:
#: wp-admin/includes/deprecated.php:602
msgid "Displaying %s–%s of %s"

This is a deprecated admin string in WP itself. Are you seeing this actively used somewhere? Though available for translation, the string being deprecated means it should not be used anywhere and won't be maintained by WP going forward.

#6 @aaleksanyants
4 years ago

  • Component changed from General to Plugin Directory

OK, thanks for clarifying, I did not know if the second string is in use or not. BTW, I have checked the first reported string at https://translate.wordpress.org/projects/meta/plugins/hy/ and it is still there without any changes ...

Note: See TracTickets for help on using tickets.