Zeile 37: |
Zeile 37: |
| | | |
| You must add language-dependent text to '''''each''''' TNG language folder | | You must add language-dependent text to '''''each''''' TNG language folder |
− | * For '''''each''''' language folder (English, French, etc) you must edit the '''text.php''' file | + | * For '''''each''''' language folder (English, French, etc) you must edit the '''cust_text.php''' file |
| | | |
− | Near the bottom of the '''text.php''' file you will find the words
| + | <font color=blue> |
| + | * Some versions of TNG only have the '''cust_text.php''' file in the ''primary language'' folder. All you need to do is to copy the original '''cust_text.php''' file into '''''each''''' of the ''secondary langage folder(s)''. Of course, you will need to edit each of them to provide the corresponding translation from one language into another. |
| + | </font> |
| + | |
| + | Here is an example of the '''cust_text.php''' file in the '''English''' folder: |
| <pre> | | <pre> |
| + | // Text to appear in the TNG menus for the linkage to the Guestbook |
| + | $text['MYgblink'] = "Guest Book"; |
| + | // Text to appear in the title on the Guestbook page: |
| + | $text['MYgbtitle'] = "Welcome, please sign our Guest Book"; |
| global $rootpath; | | global $rootpath; |
| </pre> | | </pre> |
− | Insert two lines ''above'' that statement to give the proper language spellings. Here is the '''English''' example.
| + | |
| + | Here is an example of the '''cust_text.php''' file in the '''French''' folder: |
| <pre> | | <pre> |
| // Text to appear in the TNG menus for the linkage to the Guestbook | | // Text to appear in the TNG menus for the linkage to the Guestbook |
− | $text['MYgblink'] = "Guest Book"; | + | $text['MYgblink'] = "Signez notre Livre d'or"; |
| // Text to appear in the title on the Guestbook page: | | // Text to appear in the title on the Guestbook page: |
− | $text['MYgbtitle'] = "Welcome, please sign our Guest Book"; | + | $text['MYgbtitle'] = "Livre d'or de OurGenealogySite.com"; |
| global $rootpath; | | global $rootpath; |
| </pre> | | </pre> |
| + | |
| * <font color=red> Be sure to SAVE the file, and then repeat the same process for '''''each''''' language folder, using the correct language for the text inside the double-quotes. | | * <font color=red> Be sure to SAVE the file, and then repeat the same process for '''''each''''' language folder, using the correct language for the text inside the double-quotes. |
| </font> | | </font> |
− |
| |
| | | |
| == Creating a php file in TNG to access your guest book == | | == Creating a php file in TNG to access your guest book == |