Translating frontend only

Permalink
Hi,

Is it possible to translate the packages but keep C5 itself (dashboard) in English?

As far as I know you have to have C5 already translated in order to be able to translate other things?

Should I use an empty translation file for C5 itself, so the language is recognized?

SnefIT
 
SnefIT replied on at Permalink Reply
SnefIT
I know, I'm replying to myself ;)

To create the desired effect, just use an 'empty' (untranslated) messages.mo in the /languages/xx-XX/ directory.

One thing though:

you need to add some lines to site.php to disable the notices that are produced because of using an empty translation file (or just translate one entry and you'll be fine).

// Set translate options.
$translateOptions = array(
   'disableNotices' => true
);
define('TRANSLATE_OPTIONS', serialize($translateOptions));


(In a production environment, this should be set to true)