Support » Plugin: Advanced Access Manager » Text domain issue

  • Tofandel


    All the text translations of the plugin use a constant AAM_KEY

    While I understand why and agree that it’s a good idea as you only need to change the constant if you ever need to replace the text domain and it’s also shorter to write and will throw a warning if you misspell the name.

    The problem is gettext utilities cannot interpret constants on the fly. And it’s the same for WPML

    The wordpress handbook also provides a big warning message about using variables as text domain

    As a result when scanning the plugin for translations, the strings are registered under wp’s default text domain instead of ‘advanced-access-manager’

    And thus translating the strings doesn’t work

  • The topic ‘Text domain issue’ is closed to new replies.