Support » Plugin: WP Store Locator » Singular/Plural form in CPT strings

  • Hi Tijmen,
    sorry to bother you here, but I’m unable to find a direct contact of yours.

    When translating WP Store Locator into Italian, I got into strings like this one:

    From a development perspective, I know why you’re doing that. From a l10n point of view, though, it causes quite big issues. Take again the string above as a reference: in Italian, in that case, we use the singular form of the noun that has to replace the %s placeholder. With your approach, you’re basically forcing an internationalization issue.

    Finally, what I’m asking you is to fix all the strings like the one above by including the noun in the string itself.

    Thank you,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit


    Thanks for pointing it out, I wasn’t aware of this issue.

    A quick search through code shows I only used the $singular, $plural way in the class-post-types.php. I’m planning to release a small update next week, and I will include this as well.

    So this __( 'No stores found in trash', 'wpsl' ) would work, instead of __( 'No %s found in trash', 'wpsl' ). It probably happens in some other languages as well.

    Thread Starter Mattia Migliorini


    Yep, exactly that.

    Thank you very much. Keep up the good work!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Singular/Plural form in CPT strings’ is closed to new replies.