Child theme translations
-
Hi
I have followed the steps about “Internationalisation” on the wordpress codex page.To internationalize a child theme follow these steps:
- Add a languages directory.
Something like my-theme/languages/. - Add language files.
Your filenames have to be he_IL.po & he_IL.mo (depending on your language), unlike plugin files which are domain-he_IL.xx. - Load a textdomain.
Use load_child_theme_textdomain() in functions.php during the after_setup_theme action. The text domain defined in load_child_theme_textdomain() should be used to translate all strings in the child theme. - Use GetText functions to add i18n support for your strings.
What about the last step about using getText functions.
Please give me an example about using the getText function and where should I put these strings? - Add a languages directory.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Child theme translations’ is closed to new replies.