Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created October 7, 2014 15:05
Show Gist options
  • Select an option

  • Save dancameron/f6c3d182618404b0a153 to your computer and use it in GitHub Desktop.

Select an option

Save dancameron/f6c3d182618404b0a153 to your computer and use it in GitHub Desktop.
Manually Setting Locale for Sprout Invoices
<?php
/**
* Placed in the functions.php file of your theme this filter will override
* the local used by Sprout Invoices (which is the local WordPress is configured to use).
*
* nl_NL is the local in this example, change it to your local.
*/
function set_sprout_invoices_locale() {
return 'nl_NL'; // change nl_NL and leave the single quotes.
}
add_filter( 'sa_set_locale', 'set_sprout_invoices_locale' );
@dancameron
Copy link
Copy Markdown
Author

@Vslav
Copy link
Copy Markdown

Vslav commented Mar 21, 2015

Sorry, but this code for some reason does not change the locale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment