Jump to content

[SOLVED]Localization


bvelichkov

Recommended Posts

Hi guys,

 

I have a strange issue here - a week ago we have migrated a new customer to our hosting. The store runs on Prestashop version 1.6.1.1 and I can not force it to use only bulgarian language.

ps_shop table contents:
 

+---------+---------------+-----------+-------------+----------+--------+---------+
| id_shop | id_shop_group | name      | id_category | id_theme | active | deleted |
+---------+---------------+-----------+-------------+----------+--------+---------+
|       1 |             1 | Parfumibg |           2 |        2 |      1 |       0 |
+---------+---------------+-----------+-------------+----------+--------+---------+

 

ps_lang table contents:

+---------+-----------------------------------------+--------+----------+---------------+------------------+------------------+--------+
| id_lang | name                                    | active | iso_code | language_code | date_format_lite | date_format_full | is_rtl |
+---------+-----------------------------------------+--------+----------+---------------+------------------+------------------+--------+
|       1 | български език (Bulgarian)              |      1 | bg       | bg-bg         | Y-m-d            | Y-m-d H:i:s      |      0 |
+---------+-----------------------------------------+--------+----------+---------------+------------------+------------------+--------+


ps_lang_shop table contents:

+---------+---------+
| id_lang | id_shop |
+---------+---------+
|       1 |       1 |
+---------+---------+
 

 

Bulgarian seems to work fine, but buttons, quick view, etc. are in english, as you can see in the attached screenshot. The most strange thing is if you turn on browser detection, ( Localisation --> Configuration --> Set language from browser ) everything is translated into bulgarian, if your browser locale is BG.

How can I bypass this? I want default language to be BG no matter what browser locale is.



 

post-410771-0-37299300-1476193812_thumb.png

Edited by bvelichkov (see edit history)
Link to comment
Share on other sites

Hi guys,

 

I have a strange issue here - a week ago we have migrated a new customer to our hosting. The store runs on Prestashop version 1.6.1.1 and I can not force it to use only bulgarian language.

 

ps_shop table contents:

 

+---------+---------------+-----------+-------------+----------+--------+---------+

| id_shop | id_shop_group | name      | id_category | id_theme | active | deleted |

+---------+---------------+-----------+-------------+----------+--------+---------+

|       1 |             1 | Parfumibg |           2 |        2 |      1 |       0 |

+---------+---------------+-----------+-------------+----------+--------+---------+

 

ps_lang table contents:

 

+---------+-----------------------------------------+--------+----------+---------------+------------------+------------------+--------+

| id_lang | name                                    | active | iso_code | language_code | date_format_lite | date_format_full | is_rtl |

+---------+-----------------------------------------+--------+----------+---------------+------------------+------------------+--------+

|       1 | български език (Bulgarian)              |      1 | bg       | bg-bg         | Y-m-d            | Y-m-d H:i:s      |      0 |

+---------+-----------------------------------------+--------+----------+---------------+------------------+------------------+--------+

 

 

ps_lang_shop table contents:

 

+---------+---------+

| id_lang | id_shop |

+---------+---------+

|       1 |       1 |

+---------+---------+

 

 

Bulgarian seems to work fine, but buttons, quick view, etc. are in english, as you can see in the attached screenshot. The most strange thing is if you turn on browser detection, ( Localisation --> Configuration --> Set language from browser ) everything is translated into bulgarian, if your browser locale is BG.

 

How can I bypass this? I want default language to be BG no matter what browser locale is.

 

 

 

 

 

Maybe a permission problem? If you try to translate these strings from backoffice to BG, does the translation appear?

Link to comment
Share on other sites

SOLVED

 

Absolutely strange behavior.... Module translations were located in /modules/module_name/translations, but, when I tried to make a translation from back office, it tries to save it in /themes/theme_name/modules/module_name/translations. Solved by adding translations folder for every single module in /themes/tneme_name/modules/module_name and chmod 777 it. Such a crazy thing.....

Link to comment
Share on other sites

SOLVED

 

Absolutely strange behavior.... Module translations were located in /modules/module_name/translations, but, when I tried to make a translation from back office, it tries to save it in /themes/theme_name/modules/module_name/translations. Solved by adding translations folder for every single module in /themes/tneme_name/modules/module_name and chmod 777 it. Such a crazy thing.....

 

Awesome, and yes many people have been tripped up by that translation issue, me included.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...