Parse Error
-
Hello,
I’ve installed the plug-in Translate ( https://www.ads-software.com/extend/plugins/translate/ ), I wanted to translate a part of my single.php and I’ve applied the code like it’s described here : https://www.misternifty.com/translate/
This plug-in looks fantastic and would fit perfectly my translations needs.Here’s my code
<?php translate_text(‘lang=French| text=<p class="postinfo">Par <?php the_author_posts_link(); ?> le <?php the_time('M d, Y') ?> avec <a href="<?php comments_link(); ?>"><?php _e('Comments'); ?> <?php comments_number('0','1','%'); ?></a></p>’) ?> <?php translate_text(‘lang=English| text=<p class="postinfo">By <?php the_author_posts_link(); ?> on <?php the_time('M d, Y') ?> with <a href="<?php comments_link(); ?>"><?php _e('Comments'); ?> <?php comments_number('0','1','%'); ?></a></p>’) ?>
When I want to access my posts I have a Parse error: parse error in D:\wamp\www\blog\wp-content\themes\chatter_child\single.php on line 25
The line 25 is where the php translate begins.
What is wrong with my code, do you have any clues to help me ?Thanks you for your help.
Best regards,
- The topic ‘Parse Error’ is closed to new replies.