|
#1
Nov 3, 2011, 07:02 AM
|
|
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
Nov 3, 2011, 07:55 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
did you try doing a forum search?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Nov 3, 2011, 10:19 AM
|
|
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
Nov 3, 2011, 01:09 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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.
__________________
"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; Nov 3, 2011 at 01:37 PM.
|
#5
Nov 3, 2011, 01:39 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
oops, I accidentally uploaded the uncorrected version (sigh) here is the corrected version
comments.zip
I removed the 'bad' version from the previous post.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#6
Nov 6, 2011, 02:17 PM
|
|
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
Dec 7, 2011, 12:19 PM
|
|
|
|
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
Dec 7, 2011, 12:30 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
7bc: what version of Atahualpa are you using? What is the URL?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#9
Dec 7, 2011, 01:50 PM
|
|
|
|
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
Dec 7, 2011, 03:00 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
I see you have a caching plugin active. Have you flushed the cache?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#11
Dec 7, 2011, 03:09 PM
|
|
|
|
11 posts · Jan 2011
Paris, France - Tunis, Tunisia
|
|
I have just deactived the cache extension, and the problem remains.
|
#12
Dec 8, 2011, 03:16 AM
|
|
|
|
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
Dec 8, 2011, 06:22 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
There is an updated pot file as of 3.7.3 here: New POT file as of version 3.7.3
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#14
Dec 8, 2011, 04:05 PM
|
|
|
|
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.
|
#15
Dec 8, 2011, 06:25 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#16
Dec 9, 2011, 04:36 AM
|
|
|
|
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
Dec 9, 2011, 05:14 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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:
' <label for="author"><strong>' . __( 'Name' ,'atahualpa') . '</strong> ' . ( $req ? __('(required)','atahualpa') : '' ) . '</label></p>',
to
HTML Code:
' <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
__________________
"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; Dec 9, 2011 at 05:19 AM.
|
#18
Dec 9, 2011, 05:28 AM
|
|
|
|
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
Dec 9, 2011, 05:29 AM
|
|
|
|
11 posts · Jan 2011
Paris, France - Tunis, Tunisia
|
|
I'll share it as said in your previous post.
Thank you again.
|
|