Jump to content

cant export or update language of child theme


Recommended Posts

I run prestashop 1.7 on linux server (docker).

I created child theme of classic theme that presta was installed with. I needed to add some new text, so inside one of .tpl files overwriting file from parent theme, I created new language string, like this:

    {l s='Text' d='Shop.menu'}

Accordig to [this][1] document i need to use "export a language" option in translation page in admin panel.

When i try to use this option, nothing happens, admin panel just blocks. Exporting works fine for classic theme. Same with "UPDATE A LANGUAGE" option, works for classic, doesnt works for my child theme.

Experting or editing language seems to even hang my server, i have to reset  it otherwise nothing works even if i close presta admin panel.

This is my theme.yml file for child theme:

    parent: classic
    name: steel
    display_name: steel
    version: 1.0.0
    assets:
      use_parent_assets: false
    
    
    global_settings:
      configuration:
        PS_IMAGE_QUALITY: png
      modules:
       to_enable:
         - ps_linklist
      hooks:
        modules_to_hook:
          displayNav1:
            - ps_contactinfo
          displayNav2:
            - ps_languageselector
            - ps_currencyselector
            - ps_customersignin
            - ps_shoppingcart
          displayTop:
            - ps_mainmenu
            - ps_searchbar
          displayHome:
            - ps_imageslider
            - ps_featuredproducts
            - ps_banner
            - ps_customtext
          displayFooterBefore:
            - ps_emailsubscription
            - ps_socialfollow
          displayFooter:
            - ps_linklist
            - ps_customeraccountlinks
            - ps_contactinfo
          displayLeftColumn:
            - ps_categorytree
            - ps_facetedsearch
          displaySearch:
            - ps_searchbar
          displayProductAdditionalInfo:
            - ps_sharebuttons
          displayReassurance:
            - blockreassurance
          displayOrderConfirmation2:
            - ps_featuredproducts
          displayCrossSellingShoppingCart:
            - ps_featuredproducts
    
          displayLanguage:
            - ps_languageselector
          displayBasketAndUser:
            - ps_customersignin
            - ps_shoppingcart          
    
    
      image_types:
        cart_default:
          width: 125
          height: 125
          scope: [products]
        small_default:
          width: 98
          height: 98
          scope: [products, categories, manufacturers, suppliers]
        medium_default:
          width: 452
          height: 452
          scope: [products, manufacturers, suppliers]
        home_default:
          width: 250
          height: 250
          scope: [products]
        large_default:
          width: 800
          height: 800
          scope: [products, manufacturers, suppliers]
        category_default:
          width: 141
          height: 180
          scope: [categories]
        stores_default:
          width: 170
          height: 115
          scope: [stores]

  [1]: http://build.prestashop.com/howtos/translation/how-to-translate-your-theme/
 

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...