Issue with translations
-
Hello,
I was about to translate some strings from your plugin, using WPML, when I found an issue with a particular line of code. Within file
/wp-content/plugins/gamipress/includes/filters.php
, at line 501, there’s the following line:$steps_heading = sprintf( __( '%1$d Required %2$s', 'gamipress' ), $count, _n( 'Step', 'Steps', $count, 'gamipress' ) );
The problem, here, is that you separate the two strings, using the plural syntax only for the second. This is ok in English, because you say “1 required step” or “2 required steps”. But in other languages both terms should change (and also be inverted), so it would be better to have a single sentence, using plural syntax. Something like
$steps_heading = sprintf( _n( '%1$d Required Step', '%1$d Required Steps', $count, 'gamipress' ) );
Thank you,
Erenor.
- The topic ‘Issue with translations’ is closed to new replies.