This topic is locked

Languages

3/17/2009 1:53:13 PM
PHPRunner General questions
author

The help files have instructions for adding a new language. I want to add a comment interpreted for all languages, not add a new language. Is this possible?
Also the help files refer to a "Lang" directory but the only page I can see that pertains to languages is "language.php" which is in the "include" directory. The file I am looking at looks strange. In some lines, the quoted text is in red but in others it is in black. The changes seem to appear when ever there is an apostrophe in the text, such as for French when there is a contraction.
Do I need to fix this? If so, how?
Also, if anyone in the Forum would be able to translate my comment for me I would really appreciate it. I can do the French [and English, of course] and I have friends who did the German and Dutch for me. You can see which languages I cover here:
http://www.fortheloveoflabradors.com/labradors/login.php
Thanks!!

Sergey Kornilov admin 3/17/2009

The directory you looking for is C:\Program Files\PHPRunner5.0\lang
Add a new tag to each language file:

<message tag="COMMENT">My Comment</message>
Then in template file use the following:

message COMMENT

500457 3/17/2009

The directory you looking for is C:\Program Files\PHPRunner5.0\lang

Add a new tag to each language file:

<message tag="COMMENT">My Comment</message>
Then in template file use the following:

message COMMENT


Thank you!! Does the "Russian" work yet [under the first version I had it caused problems]? My pedigree pages get almost as many Russian visitors as it does English.

500458 3/17/2009

The directory you looking for is C:\Program Files\PHPRunner5.0\lang

Add a new tag to each language file:

<message tag="COMMENT">My Comment</message>
Then in template file use the following:

message COMMENT


OK I found that directory however, there are several .lng files there but they are not the ones I chose for my site and they were last changed Oct 2008. Just a few weeks ago I redid my project from Scratch! Shouldn't the languages I choose at that time be there?
Thanks SO Much
I cannot tell you how much I LOVE the phprunner program. I am always so amazed at what's gone in to it every time I use it!!! My fellow breeders think I am SO CLEVER because I could do this database program. I don't tell them that I did not do much of it!!

Sergey Kornilov admin 3/17/2009

These are language files that come with the program. Once you install PHPRunner they are not going to change.

500459 3/17/2009

These are language files that come with the program. Once you install PHPRunner they are not going to change.


OMG I cannot believe I got it to work on my own! This is what I did:
I modified the language.php file in the 'include' directory and added this to each language [using English for the ones I don't know but in French, German and Dutch for those sections:
$mlang_messages["Dutch(Standard)"]["MY_COMMENTS"]="Neem A.U.B. contact met mij op per e-mail om informatie toe te voegen, eventuele verbeteringen of vragen over hoe het informatie bestand te gebruiken zoals:

copieren van source code van de stamboom om in je eigen website te gebruiken. Vinden van informatie over de Labrador die je interessert: Klick op Labrador Pedigree Database, klick de pijlpunten voor de gewenste zoek gegevens zoals RegName, vindt de kroost

door zoeken van Sire of Dame. Stel een lijst zamen van je favoriete Labrador fokkers door het selecteren van Elk veld, Bevat en de fokkers naam.";
Then using the visual editor for the list.php I put this:
{mlang_message MY_COMMENTS}
where I wanted my comment.
Take a look!
http://www.fortheloveoflabradors.com/labra...language=French
I am totally in shock!!