i18n
- Write all text with the wp translation syntax so that we easily can translate the site to other languages
- Always use the ripples-theme text domain for translations in the theme
- We want the client to do the translation so do not try to write the english version yourself
- Use atomic design code style
Example
<?php
//Example: A form success message (atomic design)
echo __('Form.newsletter.success.message', 'ripples');
//Example 2: A sidebar (molecule) heading
_e('Sidebar.heading.tool-list', 'ripples');
?>
Relevant links: