• Resolved icarleug

    (@icarleug)


    Hello!

    Is there a possibility to add a indicator to the saveable admin fields? (like a border style for textareas)
    Currently it seems like it is translating all fields on the page, but only saving those configured correctly which makes it hard to spot new non-saveable fields for plugins etc.

    Alternatively not to translate admin textareas that are not saved?
    Currently if you enter tags for the fields (like [:en]a[:sv]b[:]) it works and displays correctly, but the next time you save only the current language value is set.
    If the fields were not translated to begin with they would show correctly on the frontend and still be editable in the admin interface.

    Best Regards,
    Andreas

Viewing 3 replies - 1 through 3 (of 3 total)
  • VaLeXaR

    (@valexar)

    Hi @icarleug
    Unfortunately, it’s almost impossible to do this. Each plugin has its own implementation of the html code. I can not change the third-party plugin’s code. Yes, I can use JavaScript but it does not simplify the work. I will have to write the JS code for each plugin, since all plugins are different. Also, many plugins add fields dynamically. For example ACF or WooCommerce. And not every JS code has API to create events.
    WP Multilang works at the base level. It filters the data before recording to the base and before displaying it. And this provides a great opportunity for integration with third-party plug-ins.

    Thread Starter icarleug

    (@icarleug)

    Hello!

    It is still a bit problematic in that it filters the data before displaying it in input fields and textareas, but then don’t merge it before updating it, removing any language tags on non-supported fields (and leaving only the current language).

    For example, I use a non-supported SEO plugin that adds textareas to all admin pages.
    if I write [:sv]S?koptimering[:en]Search engine optimization[:] in the box and update, the value is saved and it is automatically translated to my current language.
    As I switch language it switches between the texts I inputed.
    However, if I press update again the current language is used as the textarea value and thus set without tag, switching language now only shows one value for all languages.

    I know it is not supported without proper configuration or integration, but if it changes the value upon load it would be nice if it is able to save it as well, or at least present it without translation so it can be edited manually.

    Best Regards,
    Andreas

    VaLeXaR

    (@valexar)

    So add this field to the configuration. And the translations will be stored for each language separately.

    • This reply was modified 7 years ago by VaLeXaR.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Admin field indicator.’ is closed to new replies.