• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Archives for Internationalization (I18n)

Internationalization (I18n)

Why __() needs a hardcoded string in WordPress

Last updated on June 18, 2020 by Sal Ferrarello

When using a WordPress translation function, e.g. __(), you need to use a hardcoded string (not a variable).

Filed Under: Dev Tips, Programming, Recommendations Tagged With: Internationalization (I18n), WordPress

Squares with different countries' flags painted on them

Make Your Plugin Translatable

Last updated on June 26, 2018 by Sal Ferrarello

As we watch the number of non-English WordPress installations grow faster than English installations, the value of making your plugin “translation ready” grows as well. In order to make your plugin translatable (this is also know as Internationalization or I18n), there are three things you need to do. 1. Use Translation Functions Whenever you use […]

Filed Under: Dev Tips, Programming Tagged With: Internationalization (I18n), WordPress Plugin

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in