Sha256: 4847a33237a585a6d17cfc50643da55dafbb256593f475c8377c4192e8ba0bfa

Contents?: true

Size: 943 Bytes

Versions: 9

Compression:

Stored size: 943 Bytes

Contents

# Custom Texts

You can change most of the texts through the Administration panel.

If you want to change a given text that isn’t on the Administration panel, and belongs on Decidim code, you should first find out which key is being used. For instance, we want to change the home page text where it says "Let's build a more open, transparent and collaborative society.", we would search the text (using [github](https://github.com/decidim/decidim/search?utf8=%E2%9C%93&q=%22Let%27s+build+a+more+open%2C+transparent+and+collaborative+society.%22&type= ) or grep) and then I’d extract that key and their parents. On this case it’d be:

```yml
en:
  pages:
    home:
      footer_sub_hero:
        footer_sub_hero_body: Let's build a more open, transparent and collaborative society.<br /> Join, participate and decide.
```

We need to create a file for this translation as Rails documentation says, for instance config/locales/home.en.yml

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-0.11.2 docs/customization/texts.md
decidim-0.11.1 docs/customization/texts.md
decidim-0.11.0.pre1 docs/customization/texts.md
decidim-0.10.1 docs/customization/texts.md
decidim-0.10.0 docs/customization/texts.md
decidim-0.9.3 docs/customization/texts.md
decidim-0.9.2 docs/customization/texts.md
decidim-0.9.1 docs/customization/texts.md
decidim-0.9.0 docs/customization/texts.md