Skip to content

Instantly share code, notes, and snippets.

@mauriciogofas
Forked from dancameron/functions.php
Last active August 29, 2015 14:14
Show Gist options
  • Save mauriciogofas/153d2c5f332034ef3fe4 to your computer and use it in GitHub Desktop.
Save mauriciogofas/153d2c5f332034ef3fe4 to your computer and use it in GitHub Desktop.
Translating Strings in Sprout Invoices
<?php
/**
* Example filter will translate/change the string "Description".
* "Description" can be changed to whatever string you'd like to translate/change
* just make sure to change the function name so you don't have any conflicts.
*/
function l10n_description( $text ) {
return 'Beschrijving';
}
add_filter( 'si_string_'.sanitize_title( 'Description' ), 'l10n_description' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment