Title: [Plugin: ReciPress] localization
Last modified: August 20, 2016

---

# [Plugin: ReciPress] localization

 *  [tatamata](https://wordpress.org/support/users/tatamata/)
 * (@tatamata)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/)
 * how can i translate 1.7. could not find example file. please advise.
    thanks 
   for the great plugin.
 * [http://wordpress.org/extend/plugins/recipress/](http://wordpress.org/extend/plugins/recipress/)
 * [http://wordpress.org/extend/themes/recipress/](http://wordpress.org/extend/themes/recipress/)

Viewing 12 replies - 16 through 27 (of 27 total)

[←](https://wordpress.org/support/topic/plugin-recipress-localization/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-recipress-localization/?output_format=md)
2

 *  [David Decker](https://wordpress.org/support/users/daveshine/)
 * (@daveshine)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480927)
 * …once again:
    The plugins get loaded before the themes so the hook “after_setup_theme”
   is too late because then we couldn’t have translations in backend or frontend.
 * For my plugins I always add the loading call in this order:
    – plugin header –
   then some constants (directories etc.) – then loading of textdomain
 * -> This way also error messages – if I ever define one for wp_die or so – will
   also appear translated then.
    (see my profile for some plugin examples: [http://profiles.wordpress.org/users/daveshine/](http://profiles.wordpress.org/users/daveshine/))
 * Some plugin authors wrap the loading call into functions some not it’s 50/50 
   but loading on a hook is not required or recommended…
 * I’ve translated about 100 plugins and themes in the last months and gained lots
   of experience in this area so far… 🙂
 * Thanx, Dave 🙂
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480929)
 * [@daveshine](https://wordpress.org/support/users/daveshine/)
 * > and find out that the loading call is wrapped in a function/hook which is wrong.
 * Why is this wrong? Most plugins call their text domain this way.
 * > it’s 50/50 but loading on a hook is not required or recommended…
 * So when do you load the plugin text domain, if not in a hook (init) which **is**
   recommended by the codex?
 * [http://codex.wordpress.org/Function_Reference/load_plugin_textdomain](http://codex.wordpress.org/Function_Reference/load_plugin_textdomain)
 * [http://codex.wordpress.org/I18n_for_WordPress_Developers#Choosing_and_loading_a_domain](http://codex.wordpress.org/I18n_for_WordPress_Developers#Choosing_and_loading_a_domain)
 * [http://codex.wordpress.org/Writing_a_Plugin#Internationalizing_Your_Plugin](http://codex.wordpress.org/Writing_a_Plugin#Internationalizing_Your_Plugin)
 *  [David Decker](https://wordpress.org/support/users/daveshine/)
 * (@daveshine)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480930)
 * [@keesiemeijer](https://wordpress.org/support/users/keesiemeijer/):
    I add it
   directly as it get’s loaded when WP loads all plugins.
 * It will work directly below the plugin header (main file), see this example from
   me here: [http://plugins.svn.wordpress.org/bbpress-admin-bar-addition/trunk/bbpress-admin-bar-addition.php](http://plugins.svn.wordpress.org/bbpress-admin-bar-addition/trunk/bbpress-admin-bar-addition.php)
   (
   I could also wrap this in a function – but it also works that way absolutely!)
 * You can also add it within a function/method if you have a init function or a
   base class – see this example from Mark Jaquith: [http://plugins.svn.wordpress.org/page-links-to/trunk/page-links-to.php](http://plugins.svn.wordpress.org/page-links-to/trunk/page-links-to.php)
 * Loading in a hook may work if the hook is fired very early! You may try this…
   I experienced in a lot of cases (especially plugins) that the loading_call came
   to late and so some strings get not displayed (error messages etc.).
 * I hope this helps a bit.
    -Dave 🙂
 *  [David Decker](https://wordpress.org/support/users/daveshine/)
 * (@daveshine)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480931)
 * I just saw the codex so they hook it in “init” which is the general plugin loading
   hook so it gets loaded very early. You may use this and should work too! (Above
   I meant the theme setup hook etc. which is not recommended…)
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480932)
 * [@daveshine](https://wordpress.org/support/users/daveshine/) (David Decker)
 * What works works. I’ve made many plugins and never had any problems loading the
   text domain on the init hook (100/100). And saying it’s not recommended is just
   not true.
 * [edit] Sorry, too late I didn’t see your last post
 *  Plugin Author [Tammy Hart](https://wordpress.org/support/users/tammyhart/)
 * (@tammyhart)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480946)
 * Hey guys,
 * I’ve been sick this week, so sorry for the delays.
 * I just released 1.8 which includes a fix for loading the text domain. I also 
   just launched ReciPress.com!
 *  [Cerealfreak](https://wordpress.org/support/users/cerealfreak/)
 * (@cerealfreak)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480953)
 * [@tammy](https://wordpress.org/support/users/tammy/)
 * I’ve updated to 1.8, but my it_IT stills fail to load. Any clue for that?
 * By the way, my italian translation file is quite completed, could it be of interest
   as italian translation for your plugin package?
 * tnx in advance for help,
    gabriele – [http://www.cookspot.it](http://www.cookspot.it)
 *  Plugin Author [Tammy Hart](https://wordpress.org/support/users/tammyhart/)
 * (@tammyhart)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480956)
 * I just released what I hope will be the final fix to this issue.
 * I’d love to include your Italian translation in the next release. You can submit
   it at recipress.com/contact
 *  [MacItaly](https://wordpress.org/support/users/macitaly/)
 * (@macitaly)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480957)
 * Hi Tammy,
    RP 1.9.1 solve the problem with translation that now works, many tanks
   🙂 Anyway still there are some minor issue:
 * 1) string “Instruction Image Size” in settings is not translatable
    2) image 
   sizes are still in english (the default language is italian) 3) name of categories
   like Ingredients are created from start, so are in english but this is not a 
   bug and, in any case, impossible to solve without a translated query, so don’t
   mind, was only FYI
 * Thanks again a lot for this plugin, I’ll look for pro version
 * Marco
 *  [MacItaly](https://wordpress.org/support/users/macitaly/)
 * (@macitaly)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480958)
 * Sorry, there is another string untranslated:
 * in post, inserting a recipe, belove Ingredients fields there is:
 * “Click the plus icon to add another ingredient. Manage Ingedients”
    that still
   remain in english.The rest seems fine.
 * Thanks
 * Marco
 *  Plugin Author [Tammy Hart](https://wordpress.org/support/users/tammyhart/)
 * (@tammyhart)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480959)
 * You may need to refresh your translation since all the strings related to the
   new option are new. They are all translatable. Here is the code used to define
   them:
 *     ```
       array(
       	'label'	=> __('Instruction Image Size', 'recipress'),
       	'id' 	=> 'insruction_image_size',
       	'type' 	=> 'radio',
       	'options'=> array(
       		'thumbnail'	=> array(
       			'label'	=> __('Thumbnail', 'recipress'),
       			'value'	=> 'thumbnail'
       		),
       		'medium'	=> array(
       			'label'	=> __('Medium', 'recipress'),
       			'value'	=> 'medium'
       		),
       		'large'	=> array(
       			'label'	=> __('Large', 'recipress'),
       			'value'	=> 'large',
       			'default'=> true
       		),
       		'full'	=> array(
       			'label'	=> __('Full', 'recipress'),
       			'value'	=> 'full'
       		)
       	)
       )
       ```
   
 *  [MacItaly](https://wordpress.org/support/users/macitaly/)
 * (@macitaly)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480960)
 * You’re right Tammy,
    I translated the RP 1.8 and used that one 🙂 Thanks
 * Marco

Viewing 12 replies - 16 through 27 (of 27 total)

[←](https://wordpress.org/support/topic/plugin-recipress-localization/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-recipress-localization/?output_format=md)
2

The topic ‘[Plugin: ReciPress] localization’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/recipress_f1e1c8.svg)
 * [ReciPress](https://wordpress.org/plugins/recipress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recipress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recipress/)
 * [Active Topics](https://wordpress.org/support/plugin/recipress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recipress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recipress/reviews/)

 * 27 replies
 * 6 participants
 * Last reply from: [MacItaly](https://wordpress.org/support/users/macitaly/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-recipress-localization/page/2/#post-2480960)
 * Status: not resolved