Go Back   PHP Link Directory Forum > International Discussions > Language Related Discussion

Language Related Discussion This forum is specifically for topic about using different language with phpLD Products.

Reply
 
topic widgets
Old 01-30-2010   #1
jaschweitzer
Supporter
 
Join Date: Jan 2010
Posts: 8
Default Two languages

Wondering if anyone had success with a site in two different languages. I have a translator widget on my site (my own modified google translator) but this is not good enough. I want an official translation of all my categories (not a problem, i know translators) and all the text. The text is no problem because it is contained in the {l} {/l} tags and can be edited with the language files. However I've found categories don't work this way. I tried to place the categories in these tags so that translation can be done this way but it didn't work. Any ideas???
jaschweitzer is offline   Reply With Quote
Old 01-30-2010   #2
James
:)
phpLD Support
phpLD Administrator
Supporter
Moderator
 
James's Avatar
 
Join Date: Aug 2006
Location: Nanaimo, BC , Canada
Posts: 24,204
Default

are you adding the category title to the en.php with a md5 hash?
__________________
Attention: For Support Please Read this thread.
IF the domain is not listed in your PhpLD users area and it is 3.x
You will have to list it before ANY questions are answered.

My paypal is rentawebmaster @ gmail.com
^^ if I have helped you help me I need a new laptop
PhpLD Recommended Hosting: Here
They work with you not against you
Live Directory
James is offline   Reply With Quote
Old 01-31-2010   #3
jaschweitzer
Supporter
 
Join Date: Jan 2010
Posts: 8
Default

Yes, in the en.php I have this:
'9bbd45bad55cfc620803907f2d8a0217' => 'Accounting',

and in the ru.php I have this:
'9bbd45bad55cfc620803907f2d8a0217' => 'бухалтерия',

And in my template I have this:
{l}{$cat.TITLE|escape}{/l}

Am I missing something? I was just thinking about making two separate databases for the two languages I want to use. But then it creates problems with having to add the same link twice. Even if it worked to translate the categories this way, will it sort the categories correctly in the other language??
jaschweitzer is offline   Reply With Quote
Old 01-31-2010   #4
James
:)
phpLD Support
phpLD Administrator
Supporter
Moderator
 
James's Avatar
 
Join Date: Aug 2006
Location: Nanaimo, BC , Canada
Posts: 24,204
Default

{l}Accounting{/l}
__________________
Attention: For Support Please Read this thread.
IF the domain is not listed in your PhpLD users area and it is 3.x
You will have to list it before ANY questions are answered.

My paypal is rentawebmaster @ gmail.com
^^ if I have helped you help me I need a new laptop
PhpLD Recommended Hosting: Here
They work with you not against you
Live Directory
James is offline   Reply With Quote
Old 02-03-2010   #5
jaschweitzer
Supporter
 
Join Date: Jan 2010
Posts: 8
Default

Code:
Content visible to registered users only.
Code:
Content visible to registered users only.
but you said I need to write:
{l}Accounting{/l}

So the language translation won't work with database-generated content? It was in the main.tpl where i edited this line. I can't add the name of the actual category into the template file, it is generated from the database depending on where the user is on the site.
jaschweitzer is offline   Reply With Quote
Old 02-03-2010   #6
James
:)
phpLD Support
phpLD Administrator
Supporter
Moderator
 
James's Avatar
 
Join Date: Aug 2006
Location: Nanaimo, BC , Canada
Posts: 24,204
Default

Looks like some testing is needed as I understand what you are trying to do.
Not saying it is possible the way you want to do it.
__________________
Attention: For Support Please Read this thread.
IF the domain is not listed in your PhpLD users area and it is 3.x
You will have to list it before ANY questions are answered.

My paypal is rentawebmaster @ gmail.com
^^ if I have helped you help me I need a new laptop
PhpLD Recommended Hosting: Here
They work with you not against you
Live Directory
James is offline   Reply With Quote
Old 03-11-2010   #7
jaschweitzer
Supporter
 
Join Date: Jan 2010
Posts: 8
Default two languages problems

I just made two databases - one for English, one for Russian. I have problems with garbled text in the database for Russian as I just copied the database so I wouldn't lose all my categories. But it seems to appear fine on the website when I look at it, just looks strange in category listings in the admin section, but when i go into edit an individual category the text appears fine. Strange but i can deal with it as long as it appears correctly on the public part of the website.


Also RSS is not working at all for Russian language, is there something I need to change in the database or code??
jaschweitzer is offline   Reply With Quote
Reply

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
topic widgets



All times are GMT +1. The time now is 12:50 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.