ddw_wcde_do_load_translations_woocommerce_fixes_20x

Load special fixes for 'default' textdomain, only for WooCommerce 2.0.x branch.

Description

ddw_wcde_do_load_translations_woocommerce_fixes_20x(); 

Usage

  1. if ( !function_exists( 'ddw_wcde_do_load_translations_woocommerce_fixes_20x' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-german-de_de/includes/wcde-wctranslations-loader.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ddw_wcde_do_load_translations_woocommerce_fixes_20x(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wcde-wctranslations-loader.php  
  1. function ddw_wcde_do_load_translations_woocommerce_fixes_20x() { 
  2.  
  3. /** Bail early if on current branch - we only need this for old 2.0.x */ 
  4.  
  5. return; 
  6.  
  7. } // end if 
  8.  
  9. /** Admin only strings go only within admin, oh yeah! :) */ 
  10. if ( is_admin() ) { 
  11.  
  12. /** 1) Load our customtranslations WooCommerce Admin strings only! */ 
  13. array( 
  14. 'default',  
  15. ),  
  16. 'woocommerce-fixes-admin' 
  17. ); 
  18.  
  19. } // end if 
  20.  
  21. /** 2) Load our customtranslations WooCommerce General/ Global */ 
  22. array( 
  23. 'default',  
  24. ),  
  25. 'woocommerce-fixes-global' 
  26. ); 
  27.  
  28. } // end of function ddw_wcde_do_load_translations_woocommerce_fixes_20x