check if LC_MESSAGES is defined to avoid "Use of undefined constant LC_MESSAGES - assumed 'LC_MESSAGES'"