Latvian Language Pack Extension For OpenCart 3.x

OpenCart extension documentation

Short Description

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

Installation

  1. 1.
    As always, first make file and database backup.
  2. 2.
    In your store admin panel go to Extensions -> Extension Installer.
  3. 3.
    Upload lvoc3xxx.ocmod.zip file. If you already have installed this language pack you will have information about files that will be overwritten.
  4. 4.
    Go to System -> Localisation -> Languages
  5. 5.
    Add a new language by pressing Insert. Fill in the fields with the following values:
    • Language Name: Latviešu
    • Code: lv
    • Locale: lv_lv.UTF-8,lv,latvian
    • Status: Enabled
    • Sort Order: 1 or any other number
  6. 6.
    Click on Save
  7. 7.
    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. 1.
    find
$code = $this->config->get('language_code');
replace with
$code = $this->config->get('config_language_admin');
  1. 2.
    find
$this->language->load('default');
replace with
$language = new \Opencart\System\Library\Language($language_info['code']); $this->registry->set('language', $language); $language->addPath(DIR_LANGUAGE); $this->language->load($language_info['code']);
open file catalog\controller\startup\language.php
  1. 1.
    find
$this->load->language('default');
replace with
$language = new \Opencart\System\Library\Language($language_info['code']); $this->registry->set('language', $language); $language->addPath(DIR_LANGUAGE); $this->language->load($language_info['code']);

Support

If you need support, click here.
Last modified 4mo ago