Deployment Day: Version 1.7.2 Improved Multilingual Support

We’ve just upgraded all stores to the latest version of the SolidShops e-commerce CMS. This is a maintenance release with a few improvements, based on the feedback we’ve received.

Translation files for your themes

If you already created a multilingual theme on our platform, you probably got frustrated since you had to maintain all the translations at the top of every file or as globals in a seperate partial. We solved this issue with our “language” files.

For each language you need to create a JSON file with all the values you want to translate. For instance:

{
    "language": "dutch",
    "description": "dutch translation for SolidShops store",
    "data": {
        "attributeA": {
            "attributeB": "a value"
        }
    }
}

In your template you can use the following code snipped to print the value.

{{ solid.lang("attributeA.attributeB")}}

Example language files can be found here.

Get and Set your store’s language

You can enter the default language for your store in the SolidShops Admin.

This language can be fetched in your theme with the following code snippet:

{{ solid.getLang()}}

This language variable can be overwritten in your template:

{{ solid.setLang("french)}}

This can come in really handy if you want to change the language of your store depending on a variable in the uri.

More information can be found here.


Blum: A multilingual Twitter Bootstrap3 theme

We created a responsive multilingual theme based on twitter bootstrap3 called Blum.

The README file of this theme contains more information about the installation of this theme and the configuration of your products, pages and categories.

This theme uses bower for frontend dependencies and has a grunt task for automatically compiling your scss files. The default grunt task also includes a livereload watch wich can automatically update your browser after each change you make trough your IDE.

1

 

Enjoy the updates everyone and let us know if you have an idea that can improve our application and our service to you. We’d love to know!