Adding French Language to CZ UserInfo block v5

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Adding French Language to CZ UserInfo block v5
charmquark
CZ Newbie
charmquark has been a member for over 19 year's 19 Year Member
canada.gif
Gender: Female
Status: Offline
Joined: Apr 17, 2005
0.00 posts per day
Posts: 4
Points: 333
   
I need some French language definitions for the UserInfo block. I've tried copying them to root/language/lang-french.php and then only get a blank page when accessing index.html as a French language user. I've tried a few other things too, like replicating the CZUser-Info-english.php and creating a CZUser-Info-french.php. The index.html page loads, but stops and goes blank where the block should be. I've also been looking in the forums here for a solution because I can't possibly be the first with this problem, but found nothing relevant.

Any ideas, help, or links to the solution are greatly appreciated.

Have a happy coding day!



Back to top Reply with quote
#2   re: Adding French Language to CZ UserInfo block v5
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 55
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   
Hello
If you have a multilanguage site ( need to use/activate block-Languages.php which comes with php nuke )( must be visible to visitors )
You can simply copy CZUser-Info-english.php as CZUser-Info-french.php
just delete english definitions and replace them with French ones
upload CZUser-Info-french.php to language/CZUser-Info folder
now if a visitor chose french lang your CZUser block will be French

hope this helps




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#3   re: Adding French Language to CZ UserInfo block v5
charmquark
CZ Newbie
charmquark has been a member for over 19 year's 19 Year Member
canada.gif
Gender: Female
Status: Offline
Joined: Apr 17, 2005
0.00 posts per day
Posts: 4
Points: 333
   
Thank you for the response.

Block-language.php is active.

What you suggested is exactly what I did before I posted to this forum. Replicate the french defines using the english lang file, rename the file, and install it in the same directory as the english file.

When using the site in French lang mode, the User Info block does not appear, nor do the following blocks or footer.

I've tried many tweeks (ask Hammer) but I have had no success so far.

I'll attach my french lang define file.



Attached Files
CZUser-Info-french.zip (974 Bytes, Downloaded: 5242 Time(s))


Back to top Reply with quote
#4   re: Adding French Language to CZ UserInfo block v5
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 55
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   
can you try this please

open block-CZUser-Info.php

find ( almost at the beginning )
include("language/CZUser-Info/CZUser-Info-english.php");


replace with
include("language/CZUser-Info/CZUser-Info-french.php");


i assume you have eng and french file on your host server now



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#5   re: Adding French Language to CZ UserInfo block v5
charmquark
CZ Newbie
charmquark has been a member for over 19 year's 19 Year Member
canada.gif
Gender: Female
Status: Offline
Joined: Apr 17, 2005
0.00 posts per day
Posts: 4
Points: 333
   
left-side block-language.php turned on
english and french files exist in language/CZUserInfo
from block-User_Info_CZ_V5.php:
//Include the language
if (file_exists("language/CZUser-Info/CZUser-Info-$currentlang.php")) {
    include("language/CZUser-Info/CZUser-Info-$currentlang.php");
   } else {
    include("language/CZUser-Info/CZUser-Info-french.php");
}

Using DeepBlue theme

My index.php result: the page goes blank where the block should begin.

This isn't rocket science. I must be missing something. icon_sad.gif


Back to top Reply with quote
#6   re: Adding French Language to CZ UserInfo block v5
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 55
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   
i had to install lang french to my site for see whats wrong

here you can go

your only mistake was put another */ sign at copyright area



Attached Files
CZUser-Info-french.rar (942 Bytes, Downloaded: 5240 Time(s))



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum