Documentation Kenii Catalog How-to guides
Run the catalog in another language
Translate the admin and public catalog interface into another language
Run the catalog in another language
Kenii ships with English only, but every screen in the admin, and the labels and
buttons on the public-facing catalog pages, read through WordPress’s standard
translation system. You can run the whole interface in another language by
supplying translation files and setting a locale.
This covers the interface text (labels, buttons, messages, headings like “Download
the Catalog (PDF)”). It does not translate your actual catalog content: program
names, course descriptions, policy text, and anything else you typed in stays in
whatever language you entered it. Enter your content in the language you want your
site to display it in.
- Get a translation of the plugin’s two template files. Both live in the plugin’s
languages/folder:kenii-catalog.potcovers PHP strings (the public
shortcodes and server-rendered text) andkenii-catalog-admin.potcovers the
admin screens. Hand these.potfiles to a translator, or open them yourself in
a standard WordPress translation editor such as Poedit or Loco Translate. - Compile the PHP translation to a
.mofile namedkenii-catalog-{locale}.mo
(for examplekenii-catalog-es_ES.mofor Spanish, Spain) and place it
in the plugin’slanguages/folder
(wp-content/plugins/kenii-catalog/languages/). - Compile the admin translation to a JSON file named exactly
kenii-catalog-{locale}.json(no extra characters in the filename) and place it
in the samelanguages/folder. If your translation tool’s JavaScript export
step (for example WP-CLI’swp i18n make-json) appends a hash to the filename,
rename the output file to the plainkenii-catalog-{locale}.jsonname before
placing it. - Set the locale. For the whole site, go to Settings → General → Site Language
in WordPress and choose the language. To give one person their own language
without changing the site default, edit that person’s profile
(Users → your profile → Language) instead. - Reload the Kenii admin. It picks up the new language immediately, with no
rebuild or plugin update needed.
If only some strings have been translated, the untranslated ones simply display in
English; nothing breaks. If you need a language nobody has translated yet, start
from the .pot templates in step 1.