e-colori - Tobias
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Error text in an array is not translated, if polylang is activatedThanks again, but it did not help
It was a typing error (here in the forum) the domain is both: ‘wpsmnt_’
I checked every priority from 1-10 no difference?I just checked if
_e( 'Price', 'wpsmnt_' );
would be translated at this point in the function.
Same issue if I deactive polylang, it works.It is a mystery for me? Any more ideas?
Forum: Plugins
In reply to: [Polylang] Error text in an array is not translated, if polylang is activatedThis sounds like a possibility…
My textdomain is loaded in theprivate function __construct() { add_action( 'plugins_loaded', array( $this, 'load_plugin_textdomain' ), 1, 1);
and
public function load_plugin_textdomain() { load_plugin_textdomain( 'wpsmnt_', false, dirname( plugin_basename( __FILE__ ) ).'/lang/' ); }
You suggest it should be in a hook?
Forum: Plugins
In reply to: [Polylang] Error text in an array is not translated, if polylang is activatedSorry you are right.
It is a new plugin not published yet, programmed by myself.This error array is filled in a function and than
$err_mess = ''; foreach( $error as $err ) { $err_mess .= $err . '<br />'; } $this->message .= '<p class="wpsmnt_error">'.$err_mess.'</p>';
And than echoed in a second function on the frontend?
echo $this->message;
What I do not understand is, if I deactivate polylang it is translated?
Forum: Plugins
In reply to: [Polylang] Theme page: author.php returns to home instead of other languageThank you for testing.
Any suggestions how I could solve the problem, if my theme does use and support an author.php file for showing author infos from the DB: users and user_meta: Name, description, nicename etc. ?Forum: Plugins
In reply to: [Polylang] Theme page: author.php returns to home instead of other languageThank you for your fast answer.
It gives me this warning:Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'pll_author_translation_url' not found or invalid function name in C:\xampp\htdocs\confi\wp-includes\plugin.php on line 199
And it does not do the trick ;-(
Forum: Plugins
In reply to: [Polylang] Theme page: author.php returns to home instead of other languageOK, I see.
I am not showing all the posts the author has written (loop) on that page.It shows author infos from the DB: users and user_meta: Name, description, nicename etc.
Forum: Fixing WordPress
In reply to: Google authoring Warning: Missing required hCard "author"@vishnudath
It is nearly perfect. You should not miss the: rel=”author” and use the build in author link of wordpress: <?php the_author() ?>
e.g.:<span class="vcard author"><span class="fn"> by <a href="https://google.com/profiles/1234567890123456789" rel="author"><?php the_author() ?></a> </span></span>
This number: “1234567890123456789” should be your google+ profile ID.