Wordpress Comment box translation
My Wordpress website is in 4 languages. I have already translated my Wordpress theme string in all languages through Loco translate. But the strings which i have attached in screenshots were not include in the string translate file(PO file). Can you please tell me How i can translate my comment portion all 4 languages?
wordpress string translate
add a comment |
My Wordpress website is in 4 languages. I have already translated my Wordpress theme string in all languages through Loco translate. But the strings which i have attached in screenshots were not include in the string translate file(PO file). Can you please tell me How i can translate my comment portion all 4 languages?
wordpress string translate
add a comment |
My Wordpress website is in 4 languages. I have already translated my Wordpress theme string in all languages through Loco translate. But the strings which i have attached in screenshots were not include in the string translate file(PO file). Can you please tell me How i can translate my comment portion all 4 languages?
wordpress string translate
My Wordpress website is in 4 languages. I have already translated my Wordpress theme string in all languages through Loco translate. But the strings which i have attached in screenshots were not include in the string translate file(PO file). Can you please tell me How i can translate my comment portion all 4 languages?
wordpress string translate
wordpress string translate
edited Nov 15 '18 at 14:58
Adarsh
9110
9110
asked Nov 15 '18 at 10:25
Ahsan gaditAhsan gadit
11
11
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You should add the strings that aren't translated to the appropriate text domain using the function _e(), read more in the codex link. When you added them as needed you will see them shows in Loco.
But if will add the strings which i want to translate in this function. This will only translate for only one language and my translation will show in all other language too. But i want to change these string with respect to different languages.
– Ahsan gadit
Nov 15 '18 at 10:36
Once you add them in the text domain Loco will recognize them and let you translate them in your 4 languages
– Sid Biffi
Nov 15 '18 at 10:38
' _e('Leave a Reply', ' Hinterlasse eine Antwort'); ' Where i should add this code in my wordpress?
– Ahsan gadit
Nov 15 '18 at 10:56
On the page that the form is included, i need more infos to be helpful but i don't think this is the correct place to discuss it anyway
– Sid Biffi
Nov 15 '18 at 11:01
add a comment |
I think you can show these comments/string translated by third party API on the frontend, like Google Translate. you can find the Google Translate API.
For more information, you can see usage here: https://www.npmjs.com/package/google-translate-api
Note: This is custom coding if you are a developer you can move ahead. Also, this is not like WPML like the plugin, but a lightweight option in WordPress to do it easily. You can try it, so you don't need to translate every time each comment in four languages.
No i can't use Google translate because its a client website. My client doesnot want google translate. I will do custom code but i want little guidance.
– Ahsan gadit
Nov 15 '18 at 11:00
I'm not recommended to add Google Translate on the whole site, but you can use this jQuery API for comment loop and show the translated string on comment listing. That's it if your other option doesn't work!
– Baikare Sandeep
Nov 15 '18 at 11:03
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53317291%2fwordpress-comment-box-translation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You should add the strings that aren't translated to the appropriate text domain using the function _e(), read more in the codex link. When you added them as needed you will see them shows in Loco.
But if will add the strings which i want to translate in this function. This will only translate for only one language and my translation will show in all other language too. But i want to change these string with respect to different languages.
– Ahsan gadit
Nov 15 '18 at 10:36
Once you add them in the text domain Loco will recognize them and let you translate them in your 4 languages
– Sid Biffi
Nov 15 '18 at 10:38
' _e('Leave a Reply', ' Hinterlasse eine Antwort'); ' Where i should add this code in my wordpress?
– Ahsan gadit
Nov 15 '18 at 10:56
On the page that the form is included, i need more infos to be helpful but i don't think this is the correct place to discuss it anyway
– Sid Biffi
Nov 15 '18 at 11:01
add a comment |
You should add the strings that aren't translated to the appropriate text domain using the function _e(), read more in the codex link. When you added them as needed you will see them shows in Loco.
But if will add the strings which i want to translate in this function. This will only translate for only one language and my translation will show in all other language too. But i want to change these string with respect to different languages.
– Ahsan gadit
Nov 15 '18 at 10:36
Once you add them in the text domain Loco will recognize them and let you translate them in your 4 languages
– Sid Biffi
Nov 15 '18 at 10:38
' _e('Leave a Reply', ' Hinterlasse eine Antwort'); ' Where i should add this code in my wordpress?
– Ahsan gadit
Nov 15 '18 at 10:56
On the page that the form is included, i need more infos to be helpful but i don't think this is the correct place to discuss it anyway
– Sid Biffi
Nov 15 '18 at 11:01
add a comment |
You should add the strings that aren't translated to the appropriate text domain using the function _e(), read more in the codex link. When you added them as needed you will see them shows in Loco.
You should add the strings that aren't translated to the appropriate text domain using the function _e(), read more in the codex link. When you added them as needed you will see them shows in Loco.
answered Nov 15 '18 at 10:31
Sid BiffiSid Biffi
415714
415714
But if will add the strings which i want to translate in this function. This will only translate for only one language and my translation will show in all other language too. But i want to change these string with respect to different languages.
– Ahsan gadit
Nov 15 '18 at 10:36
Once you add them in the text domain Loco will recognize them and let you translate them in your 4 languages
– Sid Biffi
Nov 15 '18 at 10:38
' _e('Leave a Reply', ' Hinterlasse eine Antwort'); ' Where i should add this code in my wordpress?
– Ahsan gadit
Nov 15 '18 at 10:56
On the page that the form is included, i need more infos to be helpful but i don't think this is the correct place to discuss it anyway
– Sid Biffi
Nov 15 '18 at 11:01
add a comment |
But if will add the strings which i want to translate in this function. This will only translate for only one language and my translation will show in all other language too. But i want to change these string with respect to different languages.
– Ahsan gadit
Nov 15 '18 at 10:36
Once you add them in the text domain Loco will recognize them and let you translate them in your 4 languages
– Sid Biffi
Nov 15 '18 at 10:38
' _e('Leave a Reply', ' Hinterlasse eine Antwort'); ' Where i should add this code in my wordpress?
– Ahsan gadit
Nov 15 '18 at 10:56
On the page that the form is included, i need more infos to be helpful but i don't think this is the correct place to discuss it anyway
– Sid Biffi
Nov 15 '18 at 11:01
But if will add the strings which i want to translate in this function. This will only translate for only one language and my translation will show in all other language too. But i want to change these string with respect to different languages.
– Ahsan gadit
Nov 15 '18 at 10:36
But if will add the strings which i want to translate in this function. This will only translate for only one language and my translation will show in all other language too. But i want to change these string with respect to different languages.
– Ahsan gadit
Nov 15 '18 at 10:36
Once you add them in the text domain Loco will recognize them and let you translate them in your 4 languages
– Sid Biffi
Nov 15 '18 at 10:38
Once you add them in the text domain Loco will recognize them and let you translate them in your 4 languages
– Sid Biffi
Nov 15 '18 at 10:38
' _e('Leave a Reply', ' Hinterlasse eine Antwort'); ' Where i should add this code in my wordpress?
– Ahsan gadit
Nov 15 '18 at 10:56
' _e('Leave a Reply', ' Hinterlasse eine Antwort'); ' Where i should add this code in my wordpress?
– Ahsan gadit
Nov 15 '18 at 10:56
On the page that the form is included, i need more infos to be helpful but i don't think this is the correct place to discuss it anyway
– Sid Biffi
Nov 15 '18 at 11:01
On the page that the form is included, i need more infos to be helpful but i don't think this is the correct place to discuss it anyway
– Sid Biffi
Nov 15 '18 at 11:01
add a comment |
I think you can show these comments/string translated by third party API on the frontend, like Google Translate. you can find the Google Translate API.
For more information, you can see usage here: https://www.npmjs.com/package/google-translate-api
Note: This is custom coding if you are a developer you can move ahead. Also, this is not like WPML like the plugin, but a lightweight option in WordPress to do it easily. You can try it, so you don't need to translate every time each comment in four languages.
No i can't use Google translate because its a client website. My client doesnot want google translate. I will do custom code but i want little guidance.
– Ahsan gadit
Nov 15 '18 at 11:00
I'm not recommended to add Google Translate on the whole site, but you can use this jQuery API for comment loop and show the translated string on comment listing. That's it if your other option doesn't work!
– Baikare Sandeep
Nov 15 '18 at 11:03
add a comment |
I think you can show these comments/string translated by third party API on the frontend, like Google Translate. you can find the Google Translate API.
For more information, you can see usage here: https://www.npmjs.com/package/google-translate-api
Note: This is custom coding if you are a developer you can move ahead. Also, this is not like WPML like the plugin, but a lightweight option in WordPress to do it easily. You can try it, so you don't need to translate every time each comment in four languages.
No i can't use Google translate because its a client website. My client doesnot want google translate. I will do custom code but i want little guidance.
– Ahsan gadit
Nov 15 '18 at 11:00
I'm not recommended to add Google Translate on the whole site, but you can use this jQuery API for comment loop and show the translated string on comment listing. That's it if your other option doesn't work!
– Baikare Sandeep
Nov 15 '18 at 11:03
add a comment |
I think you can show these comments/string translated by third party API on the frontend, like Google Translate. you can find the Google Translate API.
For more information, you can see usage here: https://www.npmjs.com/package/google-translate-api
Note: This is custom coding if you are a developer you can move ahead. Also, this is not like WPML like the plugin, but a lightweight option in WordPress to do it easily. You can try it, so you don't need to translate every time each comment in four languages.
I think you can show these comments/string translated by third party API on the frontend, like Google Translate. you can find the Google Translate API.
For more information, you can see usage here: https://www.npmjs.com/package/google-translate-api
Note: This is custom coding if you are a developer you can move ahead. Also, this is not like WPML like the plugin, but a lightweight option in WordPress to do it easily. You can try it, so you don't need to translate every time each comment in four languages.
answered Nov 15 '18 at 10:46
Baikare SandeepBaikare Sandeep
1651211
1651211
No i can't use Google translate because its a client website. My client doesnot want google translate. I will do custom code but i want little guidance.
– Ahsan gadit
Nov 15 '18 at 11:00
I'm not recommended to add Google Translate on the whole site, but you can use this jQuery API for comment loop and show the translated string on comment listing. That's it if your other option doesn't work!
– Baikare Sandeep
Nov 15 '18 at 11:03
add a comment |
No i can't use Google translate because its a client website. My client doesnot want google translate. I will do custom code but i want little guidance.
– Ahsan gadit
Nov 15 '18 at 11:00
I'm not recommended to add Google Translate on the whole site, but you can use this jQuery API for comment loop and show the translated string on comment listing. That's it if your other option doesn't work!
– Baikare Sandeep
Nov 15 '18 at 11:03
No i can't use Google translate because its a client website. My client doesnot want google translate. I will do custom code but i want little guidance.
– Ahsan gadit
Nov 15 '18 at 11:00
No i can't use Google translate because its a client website. My client doesnot want google translate. I will do custom code but i want little guidance.
– Ahsan gadit
Nov 15 '18 at 11:00
I'm not recommended to add Google Translate on the whole site, but you can use this jQuery API for comment loop and show the translated string on comment listing. That's it if your other option doesn't work!
– Baikare Sandeep
Nov 15 '18 at 11:03
I'm not recommended to add Google Translate on the whole site, but you can use this jQuery API for comment loop and show the translated string on comment listing. That's it if your other option doesn't work!
– Baikare Sandeep
Nov 15 '18 at 11:03
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53317291%2fwordpress-comment-box-translation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown