Archived topic
Arabic translate in comment section
10 replies · Started by Essam on July 21, 2018
hello,
i tried several ways to translate the comment section :
"Leave a Comment " ,"Post comment " "*Name" ,"Email" , and "Website" placeholders and wasn't successful :(

i checked the translate project all is right at :
https://translate.wordpress.org/projects/wp-themes/generatepress/ar/default
but still not approved yet ?!!
so i download the po and mo files and put them in languages folder inside my "generatepress_child" and use this function in my child theme functions.php as this explained
https://developer.wordpress.org/reference/functions/load_child_theme_textdomain/#Example
and this is my code:
function wpdocs_child_theme_setup() {
load_child_theme_textdomain( 'generatepress', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'wpdocs_child_theme_setup' );
and still not worked !!
even i tried with plugin tom suggest before https://en-ca.wordpress.org/plugins/say-what/ with no luck!!
my environment run locally by :"Local by Flywheel"
Looking for any help
Thanks
Hello, i have done somethings first i change the function name
and updated code is that
// Load translation files from your child theme instead of the parent theme
function my_child_theme_locale() {
load_child_theme_textdomain( 'generatepress', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'my_child_theme_locale' );
at the same time i used this plugin to keep track of what i doing
https://wordpress.org/plugins/loco-translate/
and used the 100% translation pot (English ) and try to edit this line then it works so i replaced the ar.po and ar.mo with the version here
https://translate.wordpress.org/projects/wp-themes/generatepress/ar/default
so it is working now
my concern now why the translations on WordPress on above link still on waiting phase?! i goes over all of them i guarantee that all are correct hope they could be approved soon
Thanks
Hi there,
We simply need a volunteer to become the translation editor to approve the waiting translations.
In order to become a translation editor, you'd need to suggest a handful of suggestion in that language. If you're interested just let me know and I'll request that you become an editor.
Thanks!
Hi Tom,
Yes sure no problem :)
Thank you! Let me know when you've added some translations and I'll request that you become an editor :)
Thank you but i only translate 2 items all of the rest is waiting
as you could see :

Untranslated (0) • Waiting (140)
what should i do ?!
Thanks :)
But you translated two items? It may be enough for them to add you as an editor.. Perhaps there's some in the "Waiting" area that can be improved?
What's your WP.org username?
Hi Tom, sorry for the delay
here is my WP.org username : eshawas
Thanks
I've made the request: https://make.wordpress.org/polyglots/2018/07/29/hello-polyglots-219/
Now we just need to hope someone answers :)
Hi Tom ,
Thank you so much ,
i have done most of it and i will continuous to fully translated it
Thanks again
Thank you! I really appreciate it :)