• marimanga

    (@marimanga)


    Hello,

    I’m using Loco Translate plugin and i have an issue (not with loco translate) but wordpress.

    I want to translate some button of plugin for example “Apply for job” , “search for job” etc. but the only way translate changes is only when i change completely site language on Settings > General > Site Language but i don’t want to change wp-admin language because i like on English i just want to change some buttons and content plugins texts but thats impossible because loco translate doesn’t translate until site language is changed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Arnel C.

    (@arncus)

    Hello Marimanga,

    Sorry for the issues with the language used for a plugin button. This kind of issue often requires that you contact the developer of that plugin. It’s easy to make a total site change to force a particular language, but if you’re trying to keep a language while changing an element in something like a plugin, then you’ll need to work with the developer of that plugin to get to that code. There are a few different ways that a button can be added to WordPress, so you’ll need to get that information from your plugin’s developer. Present your case to the plugin developer and more often than not, they’ll help you out.

    Kindest regards,
    Arnel C.

    Moderator bcworkz

    (@bcworkz)

    FYI, it’s possible to set the site’s language to any non-English language and still have the admin area appear in English. It’s done by fiddling with the “locale” filter.

    Go to the User Contributed Notes at the bottom of this page:
    https://developer.www.ads-software.com/reference/hooks/locale/

    The proffered code is a simple stand alone plugin you can use to maintain English in the back end. Clearly by altering the “en_US” value used one can set the admin language to any language they have installed for their WP.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    It’s also possible without messing with a filter. On your User Profile page, you can set your own language different from that of the main site language setting. Each user can have their own preferred language setting.

    Thread Starter marimanga

    (@marimanga)

    Thanks for helping me.

    I changed site language without changing the admin dashboard language but last issue is date, e.g my language site is on my language and date&month is still on English for example, This post was published on “November” and i want to change all date and months on my language is there any code?

    Moderator bcworkz

    (@bcworkz)

    Huh, months translate for me on my site. Either your theme is using native PHP date functions that rely upon the set server locale or your language pack has not yet translated the months. You can check translation status at translate.www.ads-software.com. Follow the link for your language. Your theme should be using WP functions for date output. If it is using PHP’s date(), it ought to be updated to use WP functions. If this is the case, as a workaround try using something like setlocale( LC_TIME, 'fr_FR') in wp-config.php. The example is for French, use your specific locale code. Depending on server configuration, this may not work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress Language’ is closed to new replies.