Support Forums

Multilingual Module - Announcement

This is a discussion on Multilingual Module - Announcement within the Modification Release forums, part of the Developer Forums category; This is something I missed. I want to have full translation to 2 languages for my upgrade to v4. After ...


Go Back   68 Classifieds Forums > Developer Forums > Modification Release

Reply
 
Thread Tools Display Modes
Old 11-22-2008, 11:24 AM   #1
Customer
 
Join Date: Dec 2006
Posts: 112
Rep Power: 23
darek is on a distinguished road
Default Multilingual Module - Announcement

This is something I missed. I want to have full translation to 2 languages for my upgrade to v4. After creating Virtual Tour module, I gave it a try to create multi language module. I just wanted to have my 68c in polish and english. What it has:
- totally independent page creation and edition, and more, it uses real files, so after creating languages and pages, you may download all pages files, edit them on your pc and upload back, however, it is still possible to edit the pages using admin (see files).
- category translation in as many languages as you want
- extra fields translation in as many languages as you want
if you have any ideas about such module, let me know

I forgot, what it will do:
- generate language buttons for available languages
- display available pages for a chosen language
- display translated categories/breadcrumbs for a chosen language
- display translated extra fields for a chosen language

all will be nicely edited in the admin area
Attached Images
File Type: jpg multilingual_module.jpg (151.0 KB, 29 views)
File Type: jpg edit_page.jpg (140.7 KB, 28 views)
darek is offline   Reply With Quote
Old 11-22-2008, 06:15 PM   #2
Customer
 
Join Date: May 2008
Posts: 129
Rep Power: 18
ombre is on a distinguished road
Default

great stuff, must have. How to get a copy for a review ? Thanks in advance.
Does it work with 4.1 beta 2 ?
__________________
Version 4.2.3 - in production with over 40.000 ads
  • Have a developer license to sell, only 99 $
  • Previous Next Mod for your website
ombre is offline   Reply With Quote
Old 11-23-2008, 04:24 AM   #3
Customer
 
Join Date: Dec 2006
Posts: 112
Rep Power: 23
darek is on a distinguished road
Default

I am now working on the module, I know, I have sorted most problems so I could post a thread about it, however at the moment I am changing too many things and there is no front end files yet. This is what categories are going to look like

If anybody is planning on using it, english is a default languge, the module needs all the data created with 68c (this is mostly for categories, breedcrumbs and extra fields), then this data can be translated and pulled out from the database, the module cannot translate english for the above; however it will be possible to turn english language off. The module will have totally independent from 68c page solution, only pages will be in all languages including english, the rest will use data created by 68c

I will try to make the module working with any v4+ of 68c, though custom changes will be possible, it for sure will work on 4.1
Attached Images
File Type: jpg categories.jpg (109.8 KB, 15 views)
darek is offline   Reply With Quote
Old 12-02-2008, 10:16 AM   #4
Junior Member
 
Join Date: Nov 2008
Posts: 4
Rep Power: 0
ZacWoe is on a distinguished road
Default

I am impatient to see the results!
Any update?
ZacWoe is offline   Reply With Quote
Old 12-02-2008, 10:27 AM   #5
Customer
 
Join Date: Dec 2006
Posts: 112
Rep Power: 23
darek is on a distinguished road
Default

Zac, thanks, I had lots of other things to do and I had to put the module away for a moment, however I have changed lots of things since the annoucement.

the admin actually has all the tools needed for creating pages and editing category translation, all seem to work very stable

ok, if anyone interested I can give what I have for testing, if someone is seriously interested it would be possible to start creating pages on what has been done, I don't think I will change the part that has already been created

for testing and review I will give between 50-100% off, however I am not shure how much I will want for it, the script became really complicated

for sure I will finish it as I need it myself

----------------------------------------

no more testing, so far I sent the module to 2 people, no one answered, no more testing, no more discounts

Last edited by darek; 12-17-2008 at 04:11 AM.
darek is offline   Reply With Quote
Old 12-02-2008, 10:28 AM   #6
Customer
 
Join Date: Jul 2008
Location: Madrid, Spain
Posts: 34
Rep Power: 15
nickhaughton is on a distinguished road
Default

Hi again Darek,

I also have a need to add a second language to 68, have you done any further work on this?

Regards
__________________
Nick Haughton

v4.1.6 Developer
Default template.
nickhaughton is offline   Reply With Quote
Old 12-02-2008, 10:38 AM   #7
Customer
 
Join Date: Dec 2006
Posts: 112
Rep Power: 23
darek is on a distinguished road
Default

lots since the annoucement, but I had no chance to set up the frond end yet
darek is offline   Reply With Quote
Old 12-02-2008, 11:20 AM   #8
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 293
Rep Power: 23
hel68c is just really nice hel68c is just really nice
Default

Hello Darek,

All my site is Bilingual (English and French) . I'm not a programmer at all so a lot of try and try...

We are now open since few days only. You can take a look HobbyClassified.com.

If you need any help, let me know.
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 12-02-2008, 01:54 PM   #9
Customer
 
Join Date: Dec 2006
Posts: 112
Rep Power: 23
darek is on a distinguished road
Default

Serge, very nice work, I actually did the same before the module idea, I even got my categories translated and emails were sent in proper language, however it bothered me that for example "Animals" category was at the end instead at the beginning and to do that a module is rather necessary, also slug has to be the same in your system, I wanted to make it all easy and proper, page structure in my module is really easy, each language will have its slug, sorting of categories will be by its name.

You did really good job!

if you want category translation I did this:

in Categories.php
after line 47 ($rs['name']=htmlspecialchars($rs['name']) write this:
PHP Code:
$slug = ( empty($rs['slug']) ) ? $rs['id']: $rs['slug'];
$new_name 'LANG_CAT_'.strtoupper(str_replace("-","_"$slug));
//echo $new_name."<br>";    
if (defined($new_name)) {    
//echo $new_name."<br>";            
$rs['name'] = constant($new_name);
} else {
$rs['name'] = $rs['name'];

then in french.php (I noticed you use english slug for categories)
add translation of all categories like this:
PHP Code:
define("LANG_CAT_ANIMALS""Zwierzęta"true); 
where ANIMALS is slug animals for category Animals

the above way will let you translate categories to any language where real slug is the variable that lets you do the trick

the above code needs to be in a few places in Category.php
darek is offline   Reply With Quote
Old 12-02-2008, 03:25 PM   #10
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 293
Rep Power: 23
hel68c is just really nice hel68c is just really nice
Default

Nice trick

thanks for sharing!
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
v3.1.5 Announcement Eric Barnes News & Announcements 0 07-25-2006 12:56 PM


All times are GMT -4. The time now is 06:36 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0