Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   [SOLVED] Can't translate comments (http://forum.bytesforall.com/showthread.php?t=16306)

Danielwerner Dec 20, 2011 11:08 AM

[SOLVED] Can't translate comments
 
Hello,

I have the exact same issue as in thread http://forum.bytesforall.com/showthread.php?t=15839 (though that thread is closed).

I've done all the steps, such as downloaded the atahualpa.pot file, translated it, and then uploaded it in my atahualpa-folder. Everything is still in english. I tried translating it directly in the comments.php-file, and it STILL is left untranslated.

Downloaded a fresh comments.php, no dice. This seems to have stopped working with either the latest Atahualpa version or the latest Wordpress version (I updated them both at the same time).

Am I missing something?

I am using Atahualpa 3.7.3.

juggledad Dec 20, 2011 11:26 AM

Do you have the wp-config.php language option set?

Danielwerner Dec 20, 2011 11:30 AM

Yep, my entire blog is in swedish (including the dashboard), EXCEPT the comments. :)

juggledad Dec 20, 2011 11:42 AM

do you mean teh literal 'comments' or the actual comments people enter? (just want to make sure we are talking about the same thing) - the comments people enter will never be translated

Danielwerner Dec 21, 2011 10:57 AM

No, I mean the comment section which is generated by wordpress/atahualpa. Not the actual comments ofcourse. :)

Such as:

Leave a Reply
Name
Email
Website
Post comment

etc.

juggledad Dec 21, 2011 11:06 AM

can you attach the po file you are using?

Danielwerner Dec 21, 2011 11:36 AM

Surelydiddely! I added both the atahualpa one and the wordpress one. Though I wasn't allowed to upload them as attachments, hopefully you can download them here:

http://www.2shared.com/file/UG2q9Nm_/atahualpa.html
http://www.2shared.com/file/10dss7C0/sv_SE.html

Thanks.

juggledad Dec 22, 2011 04:17 AM

ok, in the po you have
HTML Code:

#: comments-paged.php:25
#: comments.php:26
#: legacy.comments.php:23
msgid "Ingen har kommenterat "
msgstr ""

and it should be
HTML Code:

#: comments-paged.php:25
#: comments.php:26
#: legacy.comments.php:23
msgid "No comments yet to "
msgstr "Ingen har kommenterat "

The 'msgid' is the text TO BE translated and the 'msgstr' is the TRANSLATED text

Danielwerner Dec 22, 2011 01:21 PM

Thanks! I had it wrong there. I corrected everything, saved it, uploaded and overwrote the old atahualpa.pot in the themes/atahualpa-folder. It STILL doesn't work though. I'm not sure what I'm missing.

Now it looks like this in the .pot:

#: comments-paged.php:164
#: comments.php:124
#: legacy.comments.php:149
msgid "Leave a Reply"
msgstr "Kommentera"

Just in case, I downloaded a fresh comments.php and overwrote that too. No dice. I also refreshed my cache for my browser and for wordpress.

juggledad Dec 23, 2011 05:28 AM

can you send me your latest po and mo files?

Danielwerner Dec 23, 2011 11:07 AM

Absolutely. Here are the latest files as they are now:

atahualpa.mo http://www.2shared.com/file/hQMqQDCA/atahualpa.html
atahualpa.pot http://www.2shared.com/file/sOfZAfvw/atahualpa.html
sv_SE.po (for wordpress itself) http://www.2shared.com/file/n45WEIuN/sv_SE.html

Thanks!

juggledad Dec 24, 2011 04:59 AM

The '.mo' file inthe atahualpa folder should be called 'sv_SE.mo' - sorry it took so long to spot this.

Danielwerner Dec 24, 2011 01:54 PM

Hmm, I must be cursed or something. It still doesn't work! Do I need to do anything in my code or settings for this?

I renamed the atahualpa.mo to sv_SE.mo, so now I have sv_SE.mo and atahualpa.pot in the atahualpa-folder. As usual, I refreshed the cache in my browser and in wordpress.

Merry christmas btw. :)

juggledad Dec 24, 2011 02:56 PM

You do the language picked in wp-configuration.php right?

Off the air till Monday - merry christmas

Danielwerner Dec 24, 2011 03:24 PM

Hmm, not sure what you mean by that. But if you're referring to wp-config.php in my wordpress-folder, yes, both are sv_SE there. For wordpress, everything works, and is translated into swedish. But for the atahualpa part, nothing translation-wise is working.

Dunno what fundamental setting I'm missing here.

juggledad Dec 26, 2011 05:31 AM

1 Attachment(s)
This is odd
- I took the sv_SE.mo you sent and put it in wp-content/languages
- took the atahualpa.mo renamed it to sv_SE.mo and put it in the wp-content/themes/atahualpa folder
set "define ('WPLANG', 'sv_SE');" in wp-config
Now when I do to my site this is what I see on the comments
Attachment 1695
if you would like I'll poke around in your site - send me a PM with an admin id/pw

Danielwerner Dec 26, 2011 01:52 PM

That's really odd... Either it's something I've missed in the configuration, or otherwise there must be something really weird with my entire installation.

Anyway, I sent you my login details.

juggledad Dec 26, 2011 07:07 PM

1 Attachment(s)
Ok, this is weird. Just for chuckler please try this se_SV.mo - it is the one you sent me and it is working, just want to make sure there wasne a duplicate mo hanging arround
Attachment 1696

Danielwerner Dec 27, 2011 11:10 AM

Nope, still nothing. :(

I downloaded that .mo and changed to it. Nothing.

I downloaded a fresh copy of Atahualpa, changed only the most noticeable phrases, switched to the new theme, deleted cache as usual, and it STILL doesn't work.

Then I copied the .mo and .pot and put it in a fresh copy of Atahualpa and put THAT in a test-account I have on my server (http://testblogg.danielwerner.se). To be sure, I reset all theme options to default (via the button in the atahualpa settings). And it still doesn't work.

So, there shouldn't be something wrong with my settings at least. And my .mo and .po for the Wordpress-installation should be fine too since those phrases don't affect comments. :confused:

Juggledad, could you please attach the .mo and .po which you used on your test-site when it showed swedish (as your printscreen showed)? And also exactly where you put them. And if you did anything else. Just to make sure I don't miss anything trivial here. :)

Thanks,

juggledad Dec 27, 2011 11:37 AM

I don't have a .po since you never sent one and tne .mo is the one you sent me that I sent back.
let me take another look at the site...

juggledad Dec 29, 2011 07:11 AM

The problem was with the .mo, there were two of them one right, one wrong. Once they used the 'correct' one the translations are working.


All times are GMT -6. The time now is 02:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.