gde_get_locale

Get locale.

Description

(string) gde_get_locale(); 

Returns (string)

Google viewer lang code based on WP_LANG setting, or en_US if not defined


Usage

  1. if ( !function_exists( 'gde_get_locale' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions-admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gde_get_locale(); 
  7.  

Defined (1)

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

/functions-admin.php  
  1. function gde_get_locale() { 
  2. $locale = get_locale(); 
  3.  
  4. require_once( GDE_PLUGIN_DIR . 'libs/lib-langs.php' ); 
  5. return gde_mapped_langs( $locale );