• Resolved joni0808

    (@joni0808)


    Hello,

    I would like to translate the plugin by Loco translate.

    I can translate most of the words, but there are some words which not works.
    For example: Status, Subejct, Name, Category…

    Thank you for the help in advance!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Milind Ighe

    (@miliighe)

    Hello there,
    The non translated fields in the ticket form can’t be translated using normal translation files(po/mo) or loco plugin.
    Unfortunately, it is not possible to translate those string using WordPress default translation functions( __(), _e(), etc). Those are for creating language files and must only be used on static strings. They need to be static because the tools for generating the language files don’t execute PHP, so they can’t process variables. They just parse the text of the code, essentially. The custom field names are not static they are stored in the database. WordPress also does not help you with this.

    There are two ways to translate them:

    1. Rename fields in your required language from settings. Go to Custom Field settings and rename fields in your site language.
    2. Use WPML or PolyLang plugin. These plugins allows you to translate such dynamic strings that are stored in the database.
Viewing 1 replies (of 1 total)
  • The topic ‘Translate plugin by Loco translate’ is closed to new replies.