openHASP/docs/08-ui-text.md
fvanroie ade03960ff
Gpio improvements (#24)
* Return network status

* lvgl v8 preparations

* Fix pin assignment

* Improve idle checking

* Add bcklpin 32

* Update upload_port

* Comment on seperate line

* Update test.yaml

* Copy boot partitions

* Add release workflow

* Update README.md

* Small changes

* Add docs

* Delete 17-javascript.md

* Update docs

* Rename haspWakeUp to guiWakeUp

* Code cleanup

* Rename haspWakeUp to guiWakeUp

* Code cleanup

* Change to lvgl#dev-v8

* Update check_obj_type

* Enable default PULLUP

* Bump StreamUtils Version

* Increase JsonDocument size

* Improve GPIO Settings

* Comment default ports

* Add more GPIOs configs

* Gpio improvements

* Use saved_page in hasp_new_object

Co-authored-by: fvanroie
2020-12-13 00:26:02 +01:00

1.7 KiB

Text for UI elements, _layouts, and _includes grouped together as a set of translation keys. This is by no means a full-on i18n solution, but it does help make customizing theme text a bit easier.

The English1 main keys in _data/ui-text.yml are translated in the following languages:

  • Brazilian Portuguese (Português brasileiro)
  • Catalan
  • Chinese
  • Danish
  • Dutch
  • Finnish
  • French (Français)
  • German (Deutsch)
  • Greek
  • Hungarian
  • Indonesian
  • Irish (Gaeilge)
  • Italian (Italiano)
  • Korean
  • Japanese
  • Malayalam
  • Myanmar (Burmese)
  • Nepali (Nepalese)
  • Polish
  • Persian (فارسی)
  • Romanian
  • Russian
  • Slovak
  • Spanish (Español)
  • Swedish
  • Thai
  • Turkish (Türkçe)
  • Vietnamese

If you're are interested in localizing them into other languages feel free to submit a pull request and I will be happy to look it over.

Many of the label based keys like meta_label, categories_label, tags_label, share_on_label, and follow_label can be left blank if you'd like to omit them from view. It really depends on you and if you want an even more minimal look to your site.

![UI text labels]({{ "/assets/images/mm-ui-text-labels.jpg" | relative_url }})

Note: The theme comes with localized text in English (en, en-US, en-GB). If you change locale in _config.yml to something else, most of the UI text will go blank. Be sure to add the corresponding locale key and translated text to _data/ui-text.yml to avoid this. {: .notice--warning}


  1. en-US, and en-GB use YAML anchors to reference the values in en as to not repeat them. ↩︎