Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

[SOLVED] Changes to the Comments Form


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 3, 2011, 07:02 AM
JulesG
 
47 posts · Sep 2011
Atahualpa 371 Wordpress 321

I'm trying to change the title of the Comments Form "Leave a Reply" and the content of the Submit button "Post Commment"

There are no options for these in Style & configure COMMENTS and Style Forms. How can it be done ?

URL of my work-in-progress blog: http://julesgobeil.com/wpfr/

Thanks for your help
Jules

Last edited by JulesG; Nov 13, 2011 at 09:03 AM.
  #2  
Old Nov 3, 2011, 07:55 AM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
did you try doing a forum search?
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #3  
Old Nov 3, 2011, 10:19 AM
JulesG
 
47 posts · Sep 2011
Yes I did a forum search. All solutions involve making changes to comments.php and I hate to go that route because these changes are lost when upgrading to a new version.

I'm trying to add the required tags in Add HTML/CSS Inserts but my knowledge of CSS is quite limited

Adding this doesn't work:
Code:
h3.reply, h3#reply-title {
    value: "Ajouter un commentaire";
    }
Is there a better way ?
  #4  
Old Nov 3, 2011, 01:09 PM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
There is an error in comments.php which causes a PO file created from it to be incomplete skipping the translation for 'Leave A Reply'. The attached file should fix the error, but you will have to create the PO file from it to use it.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support

Last edited by juggledad; Nov 3, 2011 at 01:37 PM.
  #5  
Old Nov 3, 2011, 01:39 PM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
oops, I accidentally uploaded the uncorrected version (sigh) here is the corrected version
comments.zip

I removed the 'bad' version from the previous post.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #6  
Old Nov 6, 2011, 02:17 PM
JulesG
 
47 posts · Sep 2011
Thanks for your help, much appreciated. It forced me to get a better understanding of this PO/MO translation thing. Unfortunately, it is not available yet for 3.7.1. No big deal, I still have a lot of work to do on this blog. I'll work on the contents for a while instead of the container. Hopefully the translation will be available by then.

Regards
Jules
  #7  
Old Dec 7, 2011, 12:19 PM
7bc's Avatar
7bc
 
11 posts · Jan 2011
Paris, France - Tunis, Tunisia
Please, did you find a solution to get the text translated in the comments area.

I updated the comments.php file as said above, updated the po and mo files, but I still get "will not be published", "required" and "Post Comment" instead of french sentences.

In another blog with Atahualpa 3.4.9, I don't have this problem.

Thank you for your reply.
  #8  
Old Dec 7, 2011, 12:30 PM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
7bc: what version of Atahualpa are you using? What is the URL?
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #9  
Old Dec 7, 2011, 01:50 PM
7bc's Avatar
7bc
 
11 posts · Jan 2011
Paris, France - Tunis, Tunisia
I'm using last version of Atahualpa : 3.7.3

Here is the site : Gérard Vincent
  #10  
Old Dec 7, 2011, 03:00 PM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
I see you have a caching plugin active. Have you flushed the cache?
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #11  
Old Dec 7, 2011, 03:09 PM
7bc's Avatar
7bc
 
11 posts · Jan 2011
Paris, France - Tunis, Tunisia
I have just deactived the cache extension, and the problem remains.
  #12  
Old Dec 8, 2011, 03:16 AM
7bc's Avatar
7bc
 
11 posts · Jan 2011
Paris, France - Tunis, Tunisia
Also I don't find any "Post Comment" sentence in the .PO file, in order to check whether the french translation is available.
  #13  
Old Dec 8, 2011, 06:22 AM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
There is an updated pot file as of 3.7.3 here: New POT file as of version 3.7.3
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #14  
Old Dec 8, 2011, 04:05 PM
7bc's Avatar
7bc
 
11 posts · Jan 2011
Paris, France - Tunis, Tunisia
Sorry to be so naive, but with Poedit, it's impossible to update the PO file from the downloaded atahualpa 3.7.3 pot file
The log file is attached.
Attached Files
File Type: txt log.txt (3.4 KB, 252 views)
  #15  
Old Dec 8, 2011, 06:25 PM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
here try this. I don't have a poeditor (on my mac) so I sort of hand constructed this. I should have fixed the errors you reported
atahualpa373pot2.zip
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #16  
Old Dec 9, 2011, 04:36 AM
7bc's Avatar
7bc
 
11 posts · Jan 2011
Paris, France - Tunis, Tunisia
Thank you very much, JuggleDad, it's perfect, except for the word Name. Even if it's translated in the Po file, it doesn't appear on the web.
Did I miss anything ?
  #17  
Old Dec 9, 2011, 05:14 AM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
arugh... there are three places Name is used. two of them are 'Name' and one is 'Name ' and those two strings don't match...

Here is the easy fix - edit comments.php and change line 96 from
HTML Code:
				'&nbsp;&nbsp;<label for="author"><strong>' . __( 'Name' ,'atahualpa') . '</strong> ' . ( $req ? __('(required)','atahualpa') : '' ) . '</label></p>',
to
HTML Code:
				'&nbsp;&nbsp;<label for="author"><strong>' . __( 'Name ' ,'atahualpa') . '</strong> ' . ( $req ? __('(required)','atahualpa') : '' ) . '</label></p>',
(the change is adding a space after Name)
I'll add this to the updates for the next version

P.S. care to share your translation for others to use? Put it in the 'Languages & Translations' forum
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support

Last edited by juggledad; Dec 9, 2011 at 05:19 AM.
  #18  
Old Dec 9, 2011, 05:28 AM
7bc's Avatar
7bc
 
11 posts · Jan 2011
Paris, France - Tunis, Tunisia
Done and checked, it's all right. Thank you very much Juggledad.

In another thread, I guess the french designers would be happy to get the new POT or po file.
  #19  
Old Dec 9, 2011, 05:29 AM
7bc's Avatar
7bc
 
11 posts · Jan 2011
Paris, France - Tunis, Tunisia
I'll share it as said in your previous post.

Thank you again.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the comments form background color ? koyl Forum How-To 1 Sep 11, 2010 05:52 PM
HELP - Need comments & form only on first post? frgvn Comments, trackbacks & pings 0 Mar 15, 2010 09:56 AM
Styling the comments area title font, form field and label font, and form field sizes jkintzele Comments, trackbacks & pings 5 Nov 10, 2009 09:18 AM
OpenID Comments Form Chris Bennett Plugins & Atahualpa 5 Sep 20, 2009 08:17 PM


All times are GMT -6. The time now is 11:56 PM.


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