Translations

With PrintBlob Pro, PrintBlob is in 43 languages, the designer customers use included; the free plugin gets its translations from translate.wordpress.org. Add another language with a .po editor or Loco Translate.

Updated , for PrintBlob 1.7.12.

PrintBlob and PrintBlob Pro are translated into 43 languages, including the designer your customers use: its buttons, such as Upload image, Add text and Add to cart, its messages and its price breakdown, not only the admin screens. With PrintBlob Pro, WordPress uses them when your site’s language is one of these:

Language Locale
Albanian sq
Arabic ar
Bangla bn_BD
Bulgarian bg_BG
Catalan ca
Chinese (China) zh_CN
Chinese (Taiwan) zh_TW
Croatian hr
Czech cs_CZ
Danish da_DK
Dutch nl_NL
Finnish fi
French (Canada) fr_CA
French (France) fr_FR
German de_DE
Greek el
Hebrew he_IL
Hindi hi_IN
Hungarian hu_HU
Indonesian id_ID
Italian it_IT
Japanese ja
Korean ko_KR
Lithuanian lt_LT
Macedonian mk_MK
Malay ms_MY
Norwegian Bokmål nb_NO
Persian fa_IR
Polish pl_PL
Portuguese (Brazil) pt_BR
Portuguese (Portugal) pt_PT
Romanian ro_RO
Russian ru_RU
Serbian sr_RS
Slovak sk_SK
Slovenian sl_SI
Spanish (Mexico) es_MX
Spanish (Spain) es_ES
Swedish sv_SE
Thai th
Turkish tr_TR
Ukrainian uk
Vietnamese vi

Change a label, such as Add to cart

PrintBlob Pro’s Wording screen, under WooCommerce › Settings › PrintBlob › Wording, replaces any text of PrintBlob and PrintBlob Pro, the designer’s included, for each language of your site, with no file to edit; your wording stays when the plugins update. Without Pro, edit the translation of your shop’s language in Loco Translate or a .po editor, as in Add a language.

How the translations reach your shop

  • With PrintBlob Pro, everything is translated into all 43 languages as soon as Pro is active: Pro carries its own translations and the free plugin’s, the designer’s included. WordPress uses Pro’s copy of the free plugin’s wherever it has no language pack of PrintBlob in your site’s language.
  • The free plugin on its own gets its translations from translate.wordpress.org, as every plugin in the WordPress.org directory does: WordPress installs them as language packs once WordPress.org’s volunteer translators have translated and approved PrintBlob in a language, and keeps them up to date. Until then it shows in English. If you speak a language, you can translate PrintBlob there; a language pack, once there, comes first, with Pro too.

How the translation files are organised

PrintBlob’s text domain is printblob, PrintBlob Pro’s printblob-pro. PrintBlob Pro’s languages folder holds, for each language:

File What it holds
printblob-pro-mk_MK.po The translations, editable in any .po editor
printblob-pro-mk_MK.mo and printblob-pro-mk_MK.l10n.php The compiled translations WordPress loads for the plugin’s PHP
printblob-pro-mk_MK-<hash>.json The translations of Pro’s scripts in the designer: one file per script, because the designer runs in the browser
printblob-pro.pot The template with every string, for starting a new language
printblob/ The free plugin’s compiled translations, the same files a language pack has

The free plugin carries only its template, languages/printblob.pot. Its language packs have the same files, named printblob-<locale>, in wp-content/languages/plugins/.

Add a language

  1. Copy languages/printblob.pot to printblob-de_DE.po (with your locale) and translate it in a .po editor such as Poedit, or with Loco Translate inside WordPress.
  2. Compile it with WP-CLI: wp i18n make-mo for the .mo file, wp i18n make-php for the .l10n.php file, and wp i18n make-json --no-purge for the designer’s JSON files.
  3. Put the files in wp-content/languages/plugins/. WordPress loads them from there and keeps them when PrintBlob is updated.

Translate PrintBlob Pro the same way, starting from its own printblob-pro.pot. Translations of the free plugin can also be contributed on translate.wordpress.org, where they reach every shop that uses it.