Tiny fix in comments.php?

Viewing 3 posts - 1 through 3 (of 3 total)
  • #7146
    mrc
    Participant

    Hi,

    i’m a new user of minimatica, it’s an excellent photogallery

    Trying to translate the standard english theme, i found a little anomaly that perhaps requires to be fixed:

    in comments.php , row 67

     

    ‘comment_field’        => ‘<p><label for=”comment”>’ . __( ‘Comment’  ) . ‘</label><br /><textarea id=”comment” name=”comment” cols=”45″ rows=”8″ aria-required=”true”></textarea></p>’,

     

    didn’t translate the “Comment” label….

     

    Editing row 67 like this, adding ‘minimatica’ as textdomain

     

    ‘comment_field’        => ‘<p><label for=”comment”>’ . __( ‘Comment’ , ‘minimatica’ ) . ‘</label><br /><textarea id=”comment” name=”comment” cols=”45″ rows=”8″ aria-required=”true”></textarea></p>’,

     

    seems to fix the problem.

    If some developer is reading this forum and she/he could verify…

    Thank you 🙂

     

    Best regards

    #7152
    gavintfn
    Participant

    nice catch…. its really late, so ill double check tomorrow… but here’s a few guesses why thats happening….

    one….should probably use %s to specify that strings are text strings, so _(‘%s Comment’) I know daniel already put a conversion in… but it shouldn’t hurt…

    a long shot but at a quick glance, your br tag is set up for XHTML, I did not see an XHTML tag… its HTML… so maybe make that switch the br tag to the html version… it does not have to close in html.

    but most likely…

    if you ftp into your site, go to wp-content/themes/minimatica/languages/minimatica.pot

    this is the file that sets up the translation….

    for example in french…. your translations should look like this:

    #: comments.php:67
    msgid “Comments”
    msgstr “Commentaire”

    look for the term you want to translate….and change accordingly..

    heres the codex link…
    http://codex.wordpress.org/Translating_WordPress

    reply if ya need more help…

    #7155
    mrc
    Participant

    Thank you for your reply

    Well, I have translated minimatica in this manner:
    1) I opened minimatica.pot in the /languages directory with poedit
    2) I saved the file in poedit as it_IT.po and it_IT.mo
    3) I translated all sentencies with poedit
    4) as soon as I completed the translation, I saved again it_IT.po and it_IT.mo, and I copied them into the /languages directory in the minimatica theme directory
    5) finally, all translations work well 🙂 expect the one marked in the starting post (comments.php row 67)… is there something wrong??

    Thank you again

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.