|
| |||||||
| Language Related Discussion This forum is specifically for topic about using different language with phpLD Products. |
![]() |
| | topic widgets |
| | #1 |
| Supporter Join Date: Jan 2010 Posts: 8 | 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??? |
| | |
| | #2 |
| :) phpLD Support phpLD Administrator Supporter Moderator Join Date: Aug 2006 Location: Nanaimo, BC , Canada Posts: 24,204 | 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 |
| | |
| | #3 |
| Supporter Join Date: Jan 2010 Posts: 8 | 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?? |
| | |
| | #4 |
| :) phpLD Support phpLD Administrator Supporter Moderator Join Date: Aug 2006 Location: Nanaimo, BC , Canada Posts: 24,204 | {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 |
| | |
| | #5 |
| Supporter Join Date: Jan 2010 Posts: 8 | Code: Content visible to registered users only. Code: Content visible to registered users only. {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. __________________ Ruskey Biz | Russian Business Directory |
| | |
| | #6 |
| :) phpLD Support phpLD Administrator Supporter Moderator Join Date: Aug 2006 Location: Nanaimo, BC , Canada Posts: 24,204 | 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 |
| | |
| | #7 |
| Supporter Join Date: Jan 2010 Posts: 8 | 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?? __________________ Ruskey Biz | Russian Business Directory |
| | |