Post by arne » Sat Sep 28, 2013 5:59 pm

Hello !

After installing a norwegian language pack, the menu in the lover left corner is still in english:

Information: About us - Delivery information - Privacy policy - Terms & conditions

Is there a way to translate those remaining few words to norwegian ?

Where can I find that textfile ?
Last edited by arne on Tue Oct 08, 2013 6:47 am, edited 1 time in total.

Newbie

Posts

Joined
Sat Sep 28, 2013 5:43 pm

Post by arne » Mon Oct 07, 2013 5:22 am

To ask a little bit different:

Somewhere there should be a documentation that explain how the content of the language files is related to the visible content on the web.

If there exsist such a documentation is thould be a rather simple task to trace down where the text files that is not yet translated is stored.

Could it be required to translate some other source file than the language pack to optain a fully translated web appearance ?

Newbie

Posts

Joined
Sat Sep 28, 2013 5:43 pm

Post by arne » Tue Oct 08, 2013 6:43 am

After have been thinking about this problem for a while I desided to use some kind of automated tool to search on those text strings that in the lower left corner of the home page of opencart.

I used this command under Linux: grep -nr Delivery Information .

First I searced the english language pack but found nothing.

Then I searched trough all the installation package and there finaly in the database installation script (opencart.sql) I found it:

INSERT INTO `oc_information_description` (`information_id`, `language_id`, `title`, `description`) VALUES
(4, 1, 'About Us', '<p>\r\n About Us</p>\r\n'),
(5, 1, 'Terms & Conditions', '<p>\r\n Terms &amp; Conditions</p>\r\n'),
(3, 1, 'Privacy Policy', '<p>\r\n Privacy Policy</p>\r\n'),
(6, 1, 'Delivery Information', '<p>\r\n Delivery Information</p>\r\n');

I guess there could be two alternative solutions:

1. To edit the installation script to the proper text values before installation.
2. To open the proper database file via phpmyadmin and edit the values of the data fields.

I dont have a running installation at the moment to test it out on, but I guess this should give a solution to the problem.
By the way, as these englsh text strings are stored in the database and not in the language pack (??!!) this problem might be common problem for all language packages ??

(I have onlu made one Opencart installation and im rather new to it so I dont't know.)

If anyone else have the time to test it out it would be nice.

Newbie

Posts

Joined
Sat Sep 28, 2013 5:43 pm

Post by arne » Tue Oct 08, 2013 8:12 am

Seems to be working. Testing now with the phpmyadmin method. Believe I used this language pack:

http://www.opencart.com/index.php?route ... _license=0

Newbie

Posts

Joined
Sat Sep 28, 2013 5:43 pm

Post by arne » Tue Oct 08, 2013 8:07 pm

Things seems to be working but there is still an error message (vissible only in the admin panel):

Notice: Error: Could not load language norwegian! in /var/www/arne/opencart/system/library/language.php on line 39

Could this be just an indication that the admin panel is not translated to Norweigan and then just a "false positive" ?

As a part of the troubleshooting the english language pack were removed. There is now only one option of selecting the admin language, and that is "Norwegian". The error message is believed to be because the admin panel tries to load a norwegian admin module, that does not exist.

I guess this error message is just a "false positive" that will go away as soon as the Opencart is reinstalled and the admin language is set to english. (Administration->Setting->tab_local->Administration Language->English)

One other minor detail: The language pack guide says language code "no". I used "nb" that reduces the number of error messages to the one line.

Newbie

Posts

Joined
Sat Sep 28, 2013 5:43 pm
Who is online

Users browsing this forum: No registered users and 1 guest