Translating Sprout Invoices via Localization (l10n)
We at Sprout Apps strive to make translating Sprout Invoices (and all other apps) easy to translate and use your own translation files. This guide will help you through the process and get you using Sprout Invoices in your language.
First thing to do is set the language of your WordPress install to the language you prefer. Most likely you've already done this when installing WP; if not, then adjust the language on the Settings page.
- Create new folder called sprout-apps inside of wp-content/languages/. If languages/ doesn’t exist, create it as well.
- Once you have created the /wp-content/languages/plugins/sprout-invoices/[ref]Language files placed inside of /wp-content/languages/plugins/sprout-invoices/ are loaded instead of any languages included within the download os Sprout Invoices, this means you can override the default language included with Sprout Invoices, even if it's one of the core translations. Cool huh?[/ref], place your custom .mo file in that folder. The .mo file must be named as follows: sprout-invoices
For example, if your language is German, then the file will be named:
Creating Translation Files
Sprout Invoices comes with a limited but growing set of languages, if yours doesn't exist you might want to create your own. Don't be discouraged, it's relatively easy.
POEdit is cross platform tool that is popular among many developers and translators, mainly because it's rather simple to use. A wonderful tutorial on how to use it was published on Pippin’s Plugins, we recommend that article if you need help.
Note:To help Sprout Invoices' future, we'd love for you to contribute your translation. We have incentives for those that do contribute too.