# Deafault shop, default snippets in different localisation than DE or EN

**URL:** <https://forum.shopware.com/t/deafault-shop-default-snippets-in-different-localisation-than-de-or-en/60258>\
**Category:** International (English Only)\
**Created:** [2. Juli 2019 um 14:59 UTC](https://forum.shopware.com/t/deafault-shop-default-snippets-in-different-localisation-than-de-or-en/60258 "2019-07-02T14:59:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![reho](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@reho](https://forum.shopware.com/u/reho)\
**Post date:** [2. Juli 2019 um 14:59 UTC](https://forum.shopware.com/t/deafault-shop-default-snippets-in-different-localisation-than-de-or-en/60258/1 "2019-07-02T14:59:29Z")

</div>

I have a multishop enviroment with sub-shops. The main shop is in hungarian language, the sub shops are in czech, slovak, croatian etc.

If i go to Configuratuion-\>Snippets&nbsp;i see only the default de\_DE and en\_GB tabs and the additional tabs cs\_CZ, sk\_SK, hr\_HR but i can’t see the maon shop locale hu\_HU!

Why? How can I add the hungarian language to edit the snippets? At the main shop’s settings there is the hungarian locale was choosen. (as the others have choosen their locales)

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [5. Juli 2019 um 05:18 UTC](https://forum.shopware.com/t/deafault-shop-default-snippets-in-different-localisation-than-de-or-en/60258/2 "2019-07-05T05:18:45Z")

</div>

The tab for the hungarian language should be available as soon as one of your shops hast this locale.

If it is missing, you need to create a snippet in the database with the combination of the language and the shopID 1. Somethink like this:

```
INSERT INTO `s_core_snippets` (`id`, `namespace`, `shopID`, `localeID`, `name`, `value`, `created`, `updated`, `dirty`) VALUES ('0', 'backend/activate/skeleton', '1', (SELECT id FROM `s_core_locales` WHERE `locale` LIKE 'hu_HU'), 'WindowTitle', 'Cache leeren', '2019-06-06 08:59:44', '2019-06-06 08:59:44', '0');

```

As soon as there is one snippet with the combination locale + shopID1 the tab will be shown.

---

<div class="post-metadata">

**Author:** ![reho](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@reho](https://forum.shopware.com/u/reho)\
**Post date:** [5. Juli 2019 um 05:35 UTC](https://forum.shopware.com/t/deafault-shop-default-snippets-in-different-localisation-than-de-or-en/60258/3 "2019-07-05T05:35:08Z")

</div>

Okay, thanks. I’ve had only the main shop configured as hungarian language, the sub shops has only other languages.

I think it is a bug when&nbsp;the main shop’s locale doesn’t appear on the snippets translation except you have the same locale in one of the sub shops.

Anyway your solution is greatly working, thanks!

How can I refresh my translation from the crowdin repositroy? If I can, I’ll translate there and import it to my project. If I can’t I’ll translate it on my project and somehow I’ll send you to the crowdin to import it later.

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [5. Juli 2019 um 05:56 UTC](https://forum.shopware.com/t/deafault-shop-default-snippets-in-different-localisation-than-de-or-en/60258/4 "2019-07-05T05:56:31Z")

</div>

The Crowdin Import/Export is a bit complex. There are only two solutions:

- Add your translation directly to crowdin and wait for us to release it as a plugin

- Translate the Snippets directly in your shop and Export the s\_core\_snippets (perhaps only hungarian language) later on and send it to us.

---

<div class="post-metadata">

**Author:** ![reho](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@reho](https://forum.shopware.com/u/reho)\
**Post date:** [8. Juli 2019 um 14:19 UTC](https://forum.shopware.com/t/deafault-shop-default-snippets-in-different-localisation-than-de-or-en/60258/5 "2019-07-08T14:19:04Z")

</div>

Okay, I may choose the second version. If I have translated strings, I’ll let you know how can you access to import.

Anyway i found a bug in snippet export&nbsp;Shopware\_Controllers\_Backend\_Snippet&nbsp;in encodeLine() function. I tried to export the snippets into csv and it adds an&nbsp;apostrophe before all fields value as it is written in line 905.

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [8. Juli 2019 um 14:59 UTC](https://forum.shopware.com/t/deafault-shop-default-snippets-in-different-localisation-than-de-or-en/60258/6 "2019-07-08T14:59:12Z")

</div>

I’ve created a Pull Request some time ago for this issue:&nbsp;[Change escaping for snippets on csv export by mnaczenski · Pull Request #2139 · shopware/shopware · GitHub](https://github.com/shopware/shopware/pull/2139)
