How to use __() and other basic internationalization
-
I am using Polylang in my multi-lingual site (5 langs for every page/menu).
But I need other multi-lang items, as image captions, site slogans,…. In bloginfo I might have pieces of text, but in one lang, as far as I know.
Hard-coding (by means of pll_current_language to detect the language) is not a sensible option. I am handling 5 langs x 50 strings = 250 strings, roughly.
It looks like pot/po/mo files and __() _e() esc_html_e().. functions in php templates are the answer. But I am really confused on that. Can I produce pot files manually or using a light freeware, or using LOCO? Must I download gettext or maybe POedit? I want “my translations” not to override the admin, “core” translations.
May I please get an advice from someone already skilled in this topic?
thanks
- The topic ‘How to use __() and other basic internationalization’ is closed to new replies.