markaspot / mark-a-spot

Public Civic Issue Tracking and Crowdsourcing / Mapping Platform based on Drupal. Open311 Server and Client Software
http://mark-a-spot.com
55 stars 30 forks source link

installing with a different language renders custom blocks unusable #47

Closed carlosmirandalevy closed 6 years ago

carlosmirandalevy commented 7 years ago

If a language other than English is chosen during installation of the distribution, the custom blocks (Welcome!, Add block and mas custom) are generated empty and for some reason even when edited, they do not show up on the front page.

They are created by the install script and show up on the blocks management pages, but end up empty and even when edited, they render empty (or don't render) on the frontpage.

I tried this several times on clean install with Spanish or French. When the default language (English) is used, the custom blocks are created by the installation script and display on the frontpage.

screen shot 2017-03-11 at 5 40 01 pm

screen shot 2017-03-11 at 6 20 40 pm

screen shot 2017-03-11 at 6 26 37 pm

markaspot commented 7 years ago

I think this has to be by design, as default content needs at least one language being applied. The HAL/JSON content needs a language property that is english by default. Maybe I am wrong with that. Anyway, you can have editable blocks as block_content entities (see Issue https://github.com/markaspot/mark-a-spot/issues/42 or have them hard-coded in every language.

markaspot commented 6 years ago

Closing this.