Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

Stuff has broken with update 3.7.5


  #1  
Old Apr 17, 2012, 02:47 PM
Danielwerner's Avatar
Danielwerner
 
94 posts · Jul 2009
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
__________________
http://blogg.danielwerner.se/
  #2  
Old Apr 17, 2012, 03:02 PM
Danielwerner's Avatar
Danielwerner
 
94 posts · Jul 2009
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;}
__________________
http://blogg.danielwerner.se/
  #3  
Old Apr 17, 2012, 03:09 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Apr 17, 2012 at 03:13 PM.
  #4  
Old Apr 17, 2012, 03:16 PM
Danielwerner's Avatar
Danielwerner
 
94 posts · Jul 2009
Quote:
Originally Posted by juggledad
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.
__________________
http://blogg.danielwerner.se/
  #5  
Old Apr 17, 2012, 03:20 PM
Danielwerner's Avatar
Danielwerner
 
94 posts · Jul 2009
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
__________________
http://blogg.danielwerner.se/
  #6  
Old Apr 17, 2012, 03:29 PM
Danielwerner's Avatar
Danielwerner
 
94 posts · Jul 2009
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.
__________________
http://blogg.danielwerner.se/
  #7  
Old Apr 17, 2012, 04:57 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Apr 17, 2012 at 05:04 PM.
  #8  
Old Apr 18, 2012, 12:12 PM
Danielwerner's Avatar
Danielwerner
 
94 posts · Jul 2009
Thanks, it works! Now we're just down to the translationproblem.
__________________
http://blogg.danielwerner.se/
  #9  
Old Apr 18, 2012, 12:30 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I'll look more tomorrow - right now I'm on grampa duty
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Apr 19, 2012, 11:46 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
Attached Files
File Type: zip atahualpa.pot.zip (2.6 KB, 561 views)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old Apr 19, 2012, 12:39 PM
Danielwerner's Avatar
Danielwerner
 
94 posts · Jul 2009
Alas, still nothing. I downloaded the file, put the swedish translations in the empty fields between the "". Still english.
__________________
http://blogg.danielwerner.se/
  #12  
Old Apr 19, 2012, 01:38 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #13  
Old Apr 20, 2012, 05:29 PM
Danielwerner's Avatar
Danielwerner
 
94 posts · Jul 2009
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.
__________________
http://blogg.danielwerner.se/
  #14  
Old Apr 20, 2012, 05:44 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
this is what I was playing with copying stuff you entered - it worked for me.
Attached Files
File Type: zip sv.zip (2.9 KB, 584 views)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #15  
Old Apr 20, 2012, 06:03 PM
Danielwerner's Avatar
Danielwerner
 
94 posts · Jul 2009
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?
__________________
http://blogg.danielwerner.se/
  #16  
Old Apr 20, 2012, 06:09 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #17  
Old Apr 20, 2012, 06:14 PM
Danielwerner's Avatar
Danielwerner
 
94 posts · Jul 2009
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?
__________________
http://blogg.danielwerner.se/
  #18  
Old Apr 20, 2012, 06:20 PM
Danielwerner's Avatar
Danielwerner
 
94 posts · Jul 2009
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.
__________________
http://blogg.danielwerner.se/

Last edited by Danielwerner; Apr 20, 2012 at 06:22 PM.
  #19  
Old Apr 20, 2012, 07:46 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
send me the .po and I'll take a look
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Atahualpa Theme Update Broken Links & Major Problems GreatestCollectibles.com New Versions, & Updating 3 Feb 25, 2012 05:27 AM
Need help locating stuff bajalocom Center area post/pages 3 Dec 31, 2009 06:38 PM
SEO stuff Dani808 Atahualpa 3 Wordpress theme 1 Dec 18, 2009 04:10 AM


All times are GMT -6. The time now is 02:26 AM.


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