Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Languages & Translations (http://forum.bytesforall.com/forumdisplay.php?f=11)
-   -   Small bug in comments.php (http://forum.bytesforall.com/showthread.php?t=3957)

VesaT Oct 19, 2009 02:29 AM

Small bug in comments.php
 
Hi,

I'm maintaining a multinlingual website (www.tiirikaine.fi), with Finnish as default (newest versions of WP & Atahualpa not fully translated into Finnish.

If have come across a small bug which appears in the comment form. Text relating to e-mail seems not translate e.g. into Finnish - other texts do. I haven't had a look whether this is a php coding problem (hard-coded) or if the text is omitted from the .po -file.
See the excerpt from "comments.php":
<input class="text email" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" />&nbsp;
<label for="<?php _e('email','atahualpa'); ?>"> <strong>
<?php _e('Mail</strong> (will not be published) ','atahualpa');
if ($req) _e('(required)','atahualpa'); ?></label>
</p>

<p>
<input class="text url" type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3" />&nbsp;
<label for="<?php _e('url','atahualpa'); ?>">
<?php _e('Website','atahualpa'); ?></label>
</p>

I also would like to have a possibility to omit "website" box totally from the comment form; easy done with hard-coding.

Hope the development team finds ways to fix these soonest!

Regards,
Vesa

VesaT Oct 20, 2009 04:06 AM

Hi again,

it seems indeed a php programming bug as the Finnish translation file is ok.

I had a look at the php code, and found out the <strong> </strong> tags somehow mess up the function. Removing these from the comments.php results in proper translation (have a look at http://www.visualmanagement.net/?p=1428), php code is currently as follows:
---------------- <p>
<input class="text email" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" />&nbsp;
<label for="<?php _e('email','atahualpa'); ?>">
<?php _e('Mail (will not be published) ','atahualpa');
if ($req) _e('(required)','atahualpa'); ?></label>
</p>
------------

Previously this part of code (current Atahualpa release) is as follows:
-------------------
<p>
<input class="text email" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" />&nbsp;
<label for="<?php _e('email','atahualpa'); ?>"> <strong>
<?php _e('Mail</strong> (will not be published) ','atahualpa');
if ($req) _e('(required)','atahualpa'); ?></label>
</p>

-------------------

I have no time at work to play with this to also get "Mail" showing in bold, but seems to work otherwise ok. Anyone with more time, please make changes to comments.php for the next release of Atahualpa.

Regards,
Vesa


All times are GMT -6. The time now is 04:52 AM.

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