wp-useronline icon indicating copy to clipboard operation
wp-useronline copied to clipboard

Localization / translation errors/question

Open Pharizna opened this issue 6 years ago • 5 comments

Hi

I'm using your very nice plugin in my spanish web (www.pcdemano.com) but I don't now how to localize to spanish some words in the useronline page

For example... image

Thank you in advance for your help :)

Pharizna avatar Sep 20 '18 09:09 Pharizna

The Spanish translation is https://plugins.trac.wordpress.org/browser/wp-useronline/tags/2.86/lang/wp-useronline-es_ES.mo https://plugins.trac.wordpress.org/browser/wp-useronline/tags/2.86/lang/wp-useronline-es_ES.po

You can download and place it in the same folder as wp-useronline

lesterchan avatar Sep 20 '18 09:09 lesterchan

Thank you but , I've downloaded the files and place in the same folder... but the text are english.

I've unactived and actived your plugin but the problem remains :(

Pharizna avatar Sep 20 '18 10:09 Pharizna

Try replace https://github.com/lesterchan/wp-useronline/blob/master/wp-useronline.php#L17 With

load_plugin_textdomain( 'wp-useronline', false, dirname( plugin_basename( __FILE__ ) ) );

And put the lang files in wp-content/plugins/wp-useronline

lesterchan avatar Sep 20 '18 10:09 lesterchan

It's very strange :(

Now, it's in /lang/plugins/ . (close to the others simillar files) ... but it doesn't work with your plugin :(

Pharizna avatar Sep 20 '18 10:09 Pharizna

I changed the L17 in your php file and put the lang files in your folder... but it's in english yet :(

Pharizna avatar Sep 20 '18 11:09 Pharizna