Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Changing language, wrong snippet in documentation

$
0
0

Replies: 0

Hi,
I was also facing a problem changing the language (to ‘de’)
The problem is also described here, with a solution (missing dollar sign):
https://wordpress.org/support/topic/changing-language-does-not-work/

The code snippet in the documentatiom section “Change Plupload language” is wrong. This should be the correct snippet. The single quotes are also interpreted wrong and caused the wrong formatting of the snippet:


add_filter( 'prso_gform_pluploader_i18n_script', 'plupload_i18n' );
function plupload_i18n( $i18n_filename ) {
  //Use fr,js file - remove .js from filename
  $i18n_filename = 'de';
  return $i18n_filename;
}

Regards,
Jan


Viewing all articles
Browse latest Browse all 59525

Trending Articles