Forums

Where to place setlocale() etc? Line numbers with *.mo files (1 post)

  1. tlgeorge
    Member
    Posted 5 years ago #

    Hi All,

    I've looked through the forum at localisation topics, and I'm quite happy with the concept of gettext() and *.mo files, in fact I wish I had known about them earlier! However, I do have two questions..

    First of all, where should I place my code to import my *.mo category file and the setlocale() function? I'm not overly-familiar with the code structure of WP, and the wide range of SSI's, so if someone could point me in the right direction, I'd really appreciate it.

    Also, I notice the *.mo files have line numbers. Are these just the numbers in the main files? For example, if I have put _()'s round Last Post in sidebar.php, should the line reference be this line number? This may sound silly, but the reason I ask is because obviously when you run the scripts, you have SSI's being included left right and centre, and so I didn't know whether it might be the line position once all the files have been brought together.

    Thanks in advance,

    Tom

Topic Closed

This topic has been closed to new replies.

About this Topic