Latvian Language Pack Extension For OpenCart 4.0.2.x

OpenCart extension documentation

Short Description

This extension provides a Latvian language pack for OpenCart 4.0.2.x - full translation (catalog + admin).

Installation

  1. As always, first make file and database backup.

  2. In your store admin panel go to Extensions -> Extension Installer.

  3. Upload latvian.ocmod.zip file.

  4. Find “Latvian Language” in the Installed extensions and click “Install”

  5. Go to Extensions -> Extensions -> Languages find Latvian Language and click “Install”

  6. Find Latvian Language and click “Edit”

  7. Change Status to Enabled and click “Save”

  8. If you wish to use Latvian language in the admin panel or set the Latvian language as store default, then

    • go to System -> Settings and Edit your default store.

    • go to tab Local and edit entries Language and Administration language and change to Latviešu.

If you have installed opencart version 4.0.2.1 you should make following steps:

open file admin/controller/startup/language.php

  1. find

$code = $this->config->get('language_code');

replace with

$code = $this->config->get('config_language_admin');

  1. find

if ($language_info) {

insert after

$this->language = new \Opencart\System\Library\Language($code);
  1. find

$this->language->addPath('extension/' . $language_info['extension'], DIR_EXTENSION . $language_info['extension'] . '/admin/language/');

replace with

				$this->language->addPath(DIR_EXTENSION . $language_info['extension'] . '/admin/language/');
			} else {
				$this->language->addPath(DIR_LANGUAGE);

If you have installed opencart version 4.0.2.2 you should make following steps:

  1. open file admin/controller/startup/language.php

find

$code = $this->config->get('config_language');

replace with

$code = $this->config->get('config_language_admin');
  1. open file system/config/admin.php

find

'view/*/before' => [

insert before

'language/*/after' => [
    0 => 'startup/language.after',
    1 => 'event/translation'
],

Support

If you need support, click here.

Last updated