Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   Stuff has broken with update 3.7.5 (http://forum.bytesforall.com/showthread.php?t=17340)

Danielwerner Apr 17, 2012 02:47 PM

Stuff has broken with update 3.7.5
 
Hi,

Two things have broken when I updated from 3.7.3 to 3.7.5. My site is http://blogg.danielwerner.se/.

1. I had a css-insert which removed the outer menu 1-border. I don't know what it was, but I haven't changed anything. All the old inserts are there, but since the upgrade I now have two borders. One #ccc round border, which should be there. But also a lighter, dashed, square border outside the other border. How do I remove that? The border-setting for menu 1 only affects the "inner border".

2. The .pot-translation has broken AGAIN. There were major issues with this the last time. I finally got the comment-section translated to Swedish, but since the upgrade, it's all back to english. I upgraded Atahualpa, took the new pot-file and translated it manually, and then replaced the untranslated one with the translated one. That's all I've done. Am I missing something?

Please advice asap. Thanks alot!

Kind regards,
Daniel

Danielwerner Apr 17, 2012 03:02 PM

Btw; this is what my css-inserts look like right now, if that helps:

/* removing the default top padding of td#middle of "classic" Atahualpa,
and putting some more padding-bottom here, for more margin above the footer */
td#middle {
padding: 0 0 15px 0;
}

div.searchbox {
position: absolute;
top: 95px;
right: 20px;
}

div.searchbox-form {
margin: 5px 0 15px 5px;
}
div#menu1 ul.rMenu {
background: transparent;
border: none;
}
div#imagecontainer {
margin: 5px 0;
border: solid 5px #666;
-moz-border-radius:10px;
-khtml-border-radius: 10px;
-webkit-border-radius:10px;
border-radius: 10px;
}
div.widget ul li {
padding: 1px 0px 1px 0px !important;
background: url('<?php bloginfo('template_directory'); ?>/images/bullets/round-gray.gif') no-repeat 0 7px;
}

/* Menu Bars */

div#menu1 ul.rMenu-ver {
-moz-border-radius:5px;
-khtml-border-radius: 50px;
-webkit-border-radius:5px;
border-radius: 5px;
padding: 5px;
/* the background color of sub-UL's must be set here */
background: #ccc;
box-shadow: 0 3px 10px #6663;
-moz-box-shadow: 0 10px 5px #666;
}

div#menu2 ul.rMenu {
-moz-border-radius:5px;
-khtml-border-radius: 50px;
-webkit-border-radius:5px;
border-radius: 5px;
padding: 3px;
margin: 5px 0;
}
div#menu2 ul.rMenu-ver {
-moz-border-radius:5px;
-khtml-border-radius: 50px;
-webkit-border-radius:5px;
border-radius: 5px;
padding: 5px;
/* the background color of sub-UL's must be set here */
background: #666;
box-shadow: 0 3px 10px #333;
-moz-box-shadow: 0 3px 10px #333;
}


/* Adjustments for the menu bars, which in their default
state have 1px borders plus -1px margins to avoid 1+1=2px
borders between neighbor items. */
ul.rMenu-hor ul, ul.rMenu-hRight ul { margin-top: 0px; }
ul.rMenu-hor li { margin-bottom: 0px; margin-top: 0px; margin-left: 0px; }
ul.rMenu-hor { padding-left: 0px; }
ul.rMenu-ver li { margin-top: 0xp; }

div#menu1 ul.rMenu li a, div#menu2 ul.rMenu li a {
padding: 6px 10px;
}
/* Space between items of page menu bar */
div#menu1 ul.rMenu li {
margin-right: 5px;
}
/* Reset margin for 2nd+ level items */
div#menu1 ul.rMenu li li {
margin-right: 0;
}

/* round corners for menu bar items */
div#menu1 ul.rMenu li, div#menu1 ul.rMenu li a,
div#menu2 ul.rMenu li, div#menu2 ul.rMenu li a {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
/* reset 2nd+ level */
/*
div#menu1 ul.rMenu li li, div#menu1 ul.rMenu li li a,
div#menu2 ul.rMenu li li, div#menu2 ul.rMenu li li a {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
*/

/* XX comments to .... */
h3#comments {
margin: 5px 0;
padding: 10px;
background: #fff;
-moz-border-radius:10px;
-khtml-border-radius: 10px;
-webkit-border-radius:10px;
border-radius: 10px;
border: solid 1px #e5e5e5;
}

ul.commentlist {
border-top: 0;
margin: 0;
}
ul.commentlist li.thread-odd, ul.commentlist li.thread-even {
margin: 5px 0;
padding: 10px;
background: #fff;
-moz-border-radius:10px;
-khtml-border-radius: 10px;
-webkit-border-radius:10px;
border-radius: 10px;
border: solid 1px #e5e5e5;
}

div.sticky div.post-footer {
display: none;
}

div.sticky div.post-byline{
display: none;
}

div.sticky div.post-headline{
display: none;
}

.page-item-5698 a span {font-weight: bold;}

juggledad Apr 17, 2012 03:09 PM

go to export/import settings and export your settings and attach them to a reply.

as for the pot, I may have messed it up. I tried creating a new one but haven't had much experience with poedit.

You should still be able to use the one from 3.7.3

yyou need a
HTML Code:

div#menu1 {border: none;}
I don't see that in your inserts

Danielwerner Apr 17, 2012 03:16 PM

Quote:

Originally Posted by juggledad (Post 83775)
go to export/import settings and export your settings and attach them to a reply.

as for the pot, I may have messed it up. I tried creating a new one but haven't had much experience with poedit.

You should still be able to use the one from 3.7.3

I PMed you the whole shebang. Thanks!

And as for the .pot; are you sure that'll work? You probably know more than I do regarding this, but I noticed that some phrases had changed its lines, so just want to make sure it won't be messed up if I change back.

Danielwerner Apr 17, 2012 03:20 PM

Or nevermind, I saw your edit before I sent anything. Thanks alot, it works now. I didn't have that insert before I updated, so I don't know why it suddenly was required. Oh well, thanks again.

There's still the pot-problem (somehow that doesn't sound very well :)) though. This is how the old working one looks, and how the new non-working one looks:

http://speedy.sh/Nn3J3/atahualpa-old.pot
http://speedy.sh/kND2D/atahualpa.pot

Danielwerner Apr 17, 2012 03:29 PM

Hmm... Found another thing which doesn't work. The center column style.

I've set it to "padding: 10px 15px;", but there is zero padding for the comments and for the next/previous-links. I tried setting the left/right-padding to 200px but nothing happens.

juggledad Apr 17, 2012 04:57 PM

take a look at the first line of your CSS inserts and what do you have there?
I think it is
HTML Code:

td#middle {
    padding: 0 0 15px;
}

and that will override what is in the ato->Style & edit CENTER COLUMN->Center column style option

Danielwerner Apr 18, 2012 12:12 PM

Thanks, it works! Now we're just down to the translationproblem. :)

juggledad Apr 18, 2012 12:30 PM

I'll look more tomorrow - right now I'm on grampa duty :)

juggledad Apr 19, 2012 11:46 AM

1 Attachment(s)
Ok, I think I know what the issue is. It seems that POEDIT when it sees a 'percent sign' thinks it is a PH variable and tosses in an extra line. If the translation value is not a valie PHP variable, it throws an error.

Try this atahualpa.pot and see if it works for you - this is for 3.7.5

Danielwerner Apr 19, 2012 12:39 PM

Alas, still nothing. I downloaded the file, put the swedish translations in the empty fields between the "". Still english.

juggledad Apr 19, 2012 01:38 PM

You do have the 'define ('WPLANG', 'sv_SE');' in your wp-config.php, correct?
You saved the file so you now have a sv_SE.po and sv_SE.mo in your atahualpa folder?

Danielwerner Apr 20, 2012 05:29 PM

Yes. As I said, this happened when I updated to the latest atahualpa. Nothing in the original wordpress folder has been changed.

If you have a 3.7.5-pot (and .mo) which works in another language in your test environment, please send it to me and I'll test with that one.

juggledad Apr 20, 2012 05:44 PM

1 Attachment(s)
this is what I was playing with copying stuff you entered - it worked for me.

Danielwerner Apr 20, 2012 06:03 PM

Hmm... Partly works now. I copied your .mo and .po and added them in my atahualpa-folder. The "X comments to" above the comment section is now displayed in Swedish, but nothing else. For example, I've translated the "18 april 2012 at 23:39" part but that's displayed as "X at X" instead of "X kl X" which is the correct swedish translation.

Also, I found this in the .mo - could that be the answer why only those parts get translated?

X-Poedit-Basepath: .
X-Poedit-SearchPath-0: .
% kommentarer p 1 kommentar p Ingen har kommenterat

One thing I don't get is: what's the difference between .po and .pot? Should both of them be named sv_SE or just one? Should both be in the atahualpa-folder?

juggledad Apr 20, 2012 06:09 PM

A .po and a .pot are teh same thing, just the extension is different. When you use POEDIT and hit 'save' the .mo is created from the .po you have been working with, it is the 'machine readable' version for lack of a better term.

when you save the .po, do any errors occur? if so, show the detals and save teh file. It will create a 'log.txt' file in the folder with the .po and you can look at it to see what the error actually is.

I discovered that POEDIT created a PHP statement when ever it saw a '%' and that was part of the issue. If you get an error when saving, the result won't work, so save often when you are adding translations and if you get an error you will know it has something to do with the last bit you entered.

Danielwerner Apr 20, 2012 06:14 PM

Oh, perhaps I'm an idiot here, but I've been editing my files with wordpad all this time. Could that be the main issue? That the .mo and .po need to be from the same "source" or else they'll be incompatible and it won't work?

Danielwerner Apr 20, 2012 06:20 PM

Lolz, there we have it. Downloaded poedit, saved it, replaced the old files, worked in less than a minute.

Next update I'll just sit down, shut up, and use poedit. :) Thanks for your help!

Edit: One thing which doesn't get translated though, is the phrases which got translated with the files you sent me ("% comments on, No comments yet, etc"). That's odd.

juggledad Apr 20, 2012 07:46 PM

send me the .po and I'll take a look


All times are GMT -6. The time now is 11:17 AM.

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