About quote translation
-
Hi @adambradford,
I just translated the readme file of your plugin, but I can’t found the translation of quotes. Looking inside code I noticed that you forgot to include the text domain in plugin header comments. You also don’t used the WordPress translation functions in the thoughts. I think this would be a good idea to increase the users of your plugin.
If you want to fix it, begin adding the text domain to your plugin header comments in hello_positivity.php:
/* Plugin Name: Hello Positivity Description: Created for those of us who need a mental boost now and again. Version: 1.0 Author: Adam Bradford Author URI: https://www.adambradford.com Text Domain: hello-positivity */Then you should format each line of thoughts with translation function, you must to take care of escape the single quotes or apostrophes with backslash. This is the simplest way to do it:
Before:
Don\'t read the next sentence. You rebel, I like you!After:
__('Don\'t read the next sentence. You rebel, I like you!', 'hello-positivity');You can read more here: How to Internationalize Your Plugin.
PD1: I already prepared the lines for testing purposes, you can find the code here: https://www.codepile.net/pile/wD8veGyV
PD2: I translated the readme file of your other plugin Outgoing Mail Identity Editor too. You should also format the labels and placeholders of this one. I will translate the strings of both when it’s done.
Hope this helps you to improve your plugin! 😉
The topic ‘About quote translation’ is closed to new replies.