Arabic translation files for WordPress

Wondering why some of the string in the theme or plugin you just translated aren’t found in the .po file or have weird plural form?

This happens a lot because many translators don’t use the right configurations. So besides the search path in Poedit, make sure you have the right configuration for plural forms and keywords list which should be as the following.

Plural Forms

nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;

Keywords

  • __
  • _e
  • __ngettext:1,2
  • _n:1,2
  • __ngettext_noop:1,2
  • _n_noop:1,2
  • _c,_nc:4c,1,2
  • _x:1,2c
  • _ex:1,2c
  • _nx:4c,1,2
  • _nx_noop:4c,1,2

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top