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 » Montezuma Theme »

Can't translate comment_form.php


  #1  
Old May 9, 2013, 05:47 AM
guldarmband
 
11 posts · May 2013
I've tried in every way I can imagine to translate the comment_form.php-file.

* I've used poedit and it works for the rest of the site, but not comment_form.php
* I've created a child theme and uploaded the translated comment_form.php but noting happens.

The only way I make it work is if I translate it in the parent theme, but then I'll have to redo it with every update and I would be really happy if I that could be avoided!

Anyone knows how to do it?
  #2  
Old May 9, 2013, 07:21 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
url pointing to the issue?
  #3  
Old May 9, 2013, 10:33 AM
guldarmband
 
11 posts · May 2013
http://guldarmband.com/rp/2013/04/29/ar-du-inte-medlem-i-rp-foreningen-an/
  #4  
Old May 9, 2013, 03:25 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
looks like that never made it into the po file. you will need to edit montezuma/includes/template-tags.php line 8
HTML Code:
	printf( _n( 'One comment on “%2$s”', '%1$s more thoughts on “%2$s”', get_comments_number(), 'montezuma' ),
  #5  
Old May 13, 2013, 03:27 AM
guldarmband
 
11 posts · May 2013
Yes, but if I translate it and upload to my child theme the changes doesn't override the montezuma theme like they should. Any idea of how I can change it without changing in the parent theme?
  #6  
Old May 13, 2013, 05:30 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
For now you will have to edit the actual theme file. I've sent a note to the developer asking that this get added to the PO file for the next release.
  #7  
Old May 13, 2013, 06:02 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I discovered an error. You should be able to put your translated comment(s) titles at mto->Comments->Comments Titles, but there was some missing code that ended up ignoring these titles. To fix this,

edit '/includes/template_tags.php' and change line 8 (version 1.1.9) from
HTML Code:
	printf( _n( 'One comment on “%2$s”', '%1$s more thoughts on “%2$s”', get_comments_number(), 'montezuma' ),
to
HTML Code:
	global $montezuma, $comment;

	printf( _n( $montezuma['comments_title_single'] , $montezuma['comments_title_plural'], get_comments_number(), 'montezuma' ),
and change your titles at mto->Comments->Comments Titles and test it and let me know how it works for you.

If it works I'll write up a patch for the next release.
  #8  
Old May 13, 2013, 07:42 AM
guldarmband
 
11 posts · May 2013
Quote:
Originally Posted by juggledad
edit '/includes/template_tags.php' and change line 8 (version 1.1.9) from
HTML Code:
	printf( _n( 'One comment on “%2$s”', '%1$s more thoughts on “%2$s”', get_comments_number(), 'montezuma' ),
to
HTML Code:
	global $montezuma, $comment;

	printf( _n( $montezuma['comments_title_single'] , $montezuma['comments_title_plural'], get_comments_number(), 'montezuma' ),
and change your titles at mto->Comments->Comments Titles and test it and let me know how it works for you.

If it works I'll write up a patch for the next release.
It works! Now I only have the "Leave a Reply" and such to translate, but I guess I'll have to do that in the actual theme file?
  #9  
Old May 13, 2013, 08:45 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
translate the 'Leave a Reply' in the PO file

Bookmarks

Tags
comment_form.php, translate



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I translate TF ? tallyho ThemeFrame Presales 3 Mar 5, 2013 05:57 PM
Translate unelma Languages & Translations 1 May 25, 2012 12:40 PM
How to translate? jjforums Languages & Translations 0 Sep 30, 2010 11:32 AM
There i can translate Algiz Languages & Translations 2 Oct 28, 2009 01:10 PM


All times are GMT -6. The time now is 12:01 AM.


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