| @@ -7,22 +7,20 @@ | ||
| 7 | 7 | * Template tag: displays the language switcher |
| 8 | 8 | * |
| 9 | 9 | * List of parameters accepted in $args: |
| 10 | 10 | * |
| 11 | - * - dropdown => displays a dropdown if set to 1, defaults to 0 | |
| 12 | - * - echo => echoes the switcher if set to 1 ( default ) | |
| 13 | - * - hide_if_empty => hides languages with no posts ( or pages ) if set to 1 ( default ) | |
| 14 | - * - show_flags => shows flags if set to 1, defaults to 0 | |
| 15 | - * - show_names => shows languages names if set to 1 ( default ) | |
| 16 | - * - display_names_as => whether to display the language name or its slug, valid options are 'slug' and 'name', | |
| 17 | - * defaults to name | |
| 18 | - * - force_home => forces linking to the home page is set to 1, defaults to 0 | |
| 19 | - * - hide_if_no_translation => hides the link if there is no translation if set to 1, defaults to 0 | |
| 20 | - * - hide_current => hides the current language if set to 1, defaults to 0 | |
| 21 | - * - post_id => if not null, link to translations of post defined by post_id, defaults to null | |
| 22 | - * - raw => set this to true to build your own custom language switcher, defaults to 0 | |
| 23 | - * - item_spacing => whether to preserve or discard whitespace between list items, valid options are | |
| 24 | - * 'preserve' and 'discard', defaults to preserve | |
| 11 | + * dropdown => displays a dropdown if set to 1, defaults to 0 | |
| 12 | + * echo => echoes the switcher if set to 1 ( default ) | |
| 13 | + * hide_if_empty => hides languages with no posts ( or pages ) if set to 1 ( default ) | |
| 14 | + * show_flags => shows flags if set to 1, defaults to 0 | |
| 15 | + * show_names => shows languages names if set to 1 ( default ) | |
| 16 | + * display_names_as => whether to display the language name or its slug, valid options are 'slug' and 'name', defaults to name | |
| 17 | + * force_home => forces linking to the home page is set to 1, defaults to 0 | |
| 18 | + * hide_if_no_translation => hides the link if there is no translation if set to 1, defaults to 0 | |
| 19 | + * hide_current => hides the current language if set to 1, defaults to 0 | |
| 20 | + * post_id => if not null, link to translations of post defined by post_id, defaults to null | |
| 21 | + * raw => set this to true to build your own custom language switcher, defaults to 0 | |
| 22 | + * item_spacing => whether to preserve or discard whitespace between list items, valid options are 'preserve' and 'discard', defaults to preserve | |
| 25 | 23 | * |
| 26 | 24 | * @api |
| 27 | 25 | * @since 0.5 |
| 28 | 26 | * |
| @@ -131,9 +129,9 @@ | ||
| 131 | 129 | * @param string $string the string to register |
| 132 | 130 | * @param string $context optional the group in which the string is registered, defaults to 'polylang' |
| 133 | 131 | * @param bool $multiline optional whether the string table should display a multiline textarea or a single line input, defaults to single line |
| 134 | 132 | */ |
| 135 | -function pll_register_string( $name, $string, $context = 'Polylang', $multiline = false ) { | |
| 133 | +function pll_register_string( $name, $string, $context = 'polylang', $multiline = false ) { | |
| 136 | 134 | if ( PLL() instanceof PLL_Admin_Base ) { |
| 137 | 135 | PLL_Admin_Strings::register_string( $name, $string, $context, $multiline ); |
| 138 | 136 | } |
| 139 | 137 | } |