Localization of a wordpress theme without a textdomain -


I have tekstadomena without a WordPress theme (ie E (x) and E (x, domain) is not), I have /. Theme / My theme / localization .PO and .mo files in a folder are under (the name of the place in my theme View). I want to activate fr_FR I made fr_FR.po and .mo and fr_FR locale to add to the wp-config change. However, I'm still not getting the French to work I tell you there were a number of sites at the top of functions.php to add a load_theme_textdomain, but I do not know what will happen to my textdomain any help will be appreciated.

Joseph

The theme localization to work, you need your subject through to go and each _e () and __ () function call will add a domain. It is:

  _e ( 'Some text'); __ ( 'some other text');  

It would be:

  _e ( 'Some text', 'Your Domain'); __ ( 'some other text', 'Your Domain');  

Next you at the top of your karyaefapi file will add code to this bit:

  load_theme_textdomain ( 'your-domain', tempaletapata. '/ localization '); $ Locale = get_locale (); $ Locale_file = TEMPLATEPATH. "/ Localization / $ locale.php"; If (is_readable ($ locale_file)) need_once ($ locale_file);  

You can read more about it.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -