admin管理员组文章数量:1130349
I just got my hands on a WordPress site and i'm trying to edit some words from a theme login template, so I went to cPanel to check how the theme templates handle the copy and I found the pt_PT.po with the words I was looking for.
After understanding a bit better how .po and .mo files work, I installed LOCO translations plugin to edit those files and I found the phrases I was looking for, edited and saved them.
I went back to cPanel and the .po file was changed with the copy I wanted, but there were no changes to the site, even after cleaning the cache. .mo file was also changed because had the same "last modified" timestamp.
I read in other answers that adding define('WPLANG', 'your_language'); to the wp-config.php would do the trick, but since this site already has the translations from English to Portuguese online it didn't make sense to me to add that line.
I'm I wrong and I still need to add it or is it something else?
Thanks!
I just got my hands on a WordPress site and i'm trying to edit some words from a theme login template, so I went to cPanel to check how the theme templates handle the copy and I found the pt_PT.po with the words I was looking for.
After understanding a bit better how .po and .mo files work, I installed LOCO translations plugin to edit those files and I found the phrases I was looking for, edited and saved them.
I went back to cPanel and the .po file was changed with the copy I wanted, but there were no changes to the site, even after cleaning the cache. .mo file was also changed because had the same "last modified" timestamp.
I read in other answers that adding define('WPLANG', 'your_language'); to the wp-config.php would do the trick, but since this site already has the translations from English to Portuguese online it didn't make sense to me to add that line.
I'm I wrong and I still need to add it or is it something else?
Thanks!
Share Improve this question asked Oct 23, 2018 at 22:53 RyuuksRyuuks 1253 bronze badges 2 |1 Answer
Reset to default 1i had a similar question posted some time ago: why is translation not working on theme?
it might be the solution to put your translation files into the right location (languages directory in wp-content/languages/themes/) and prefix them with the theme name like themename-pt_PT.po
I just got my hands on a WordPress site and i'm trying to edit some words from a theme login template, so I went to cPanel to check how the theme templates handle the copy and I found the pt_PT.po with the words I was looking for.
After understanding a bit better how .po and .mo files work, I installed LOCO translations plugin to edit those files and I found the phrases I was looking for, edited and saved them.
I went back to cPanel and the .po file was changed with the copy I wanted, but there were no changes to the site, even after cleaning the cache. .mo file was also changed because had the same "last modified" timestamp.
I read in other answers that adding define('WPLANG', 'your_language'); to the wp-config.php would do the trick, but since this site already has the translations from English to Portuguese online it didn't make sense to me to add that line.
I'm I wrong and I still need to add it or is it something else?
Thanks!
I just got my hands on a WordPress site and i'm trying to edit some words from a theme login template, so I went to cPanel to check how the theme templates handle the copy and I found the pt_PT.po with the words I was looking for.
After understanding a bit better how .po and .mo files work, I installed LOCO translations plugin to edit those files and I found the phrases I was looking for, edited and saved them.
I went back to cPanel and the .po file was changed with the copy I wanted, but there were no changes to the site, even after cleaning the cache. .mo file was also changed because had the same "last modified" timestamp.
I read in other answers that adding define('WPLANG', 'your_language'); to the wp-config.php would do the trick, but since this site already has the translations from English to Portuguese online it didn't make sense to me to add that line.
I'm I wrong and I still need to add it or is it something else?
Thanks!
Share Improve this question asked Oct 23, 2018 at 22:53 RyuuksRyuuks 1253 bronze badges 2-
1
In WordPress 4.0 and above, you should set your site's language via this page: Settings > General > Site Language and no need to define the
WPLANG. – Sally CJ Commented Oct 24, 2018 at 0:04 - There are dozens of possible causes. Provide a download link to the theme's source code and an example string you can't get to work. – Tim Commented Oct 24, 2018 at 11:16
1 Answer
Reset to default 1i had a similar question posted some time ago: why is translation not working on theme?
it might be the solution to put your translation files into the right location (languages directory in wp-content/languages/themes/) and prefix them with the theme name like themename-pt_PT.po
本文标签: translationChange template copy with pomo files
版权声明:本文标题:translation - Change template copy with pomo files 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749237167a2337468.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


WPLANG. – Sally CJ Commented Oct 24, 2018 at 0:04