• Resolved Redpik

    (@redpik)


    Hi,

    Loco Translate is not working if we use a constant variable for translation.

    __('one response', _TWOOBL_DOMAIN_LANG_)

    A way to repair this?
    Thanx a lot.

    • This topic was modified 6 years, 8 months ago by Redpik.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tim W

    (@timwhitlock)

    The string extractor doesn’t evaluate constants.

    Either use string literals (as per WordPress standards), or configure your bundle to extract ALL strings.

    The latter is achieved by entering "*" (asterisk without quotes) as your text domain under the Advanced tab. Note that this will cause all strings with undefined text domains to be extracted.

    Thread Starter Redpik

    (@redpik)

    Yay! Thanx a lot for your quick and clear answer.
    The “*” tip works like a charm.

    • This reply was modified 6 years, 8 months ago by Redpik.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Loco translate and constant variable’ is closed to new replies.