68 Classifieds Forums

Multilingual Module - Announcement

This is a discussion on Multilingual Module - Announcement within the Modification Release forums, part of the Help & Support 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 > Help & Support > Modification Release

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-22-2008, 11:24 AM
Member
 
Join Date: Dec 2006
Posts: 95
Rep Power: 10
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, 20 views)
File Type: jpg edit_page.jpg (140.7 KB, 22 views)
Reply With Quote
  #2  
Old 11-22-2008, 06:15 PM
Member
 
Join Date: May 2008
Posts: 73
Rep Power: 4
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.0.9 - now live with 40.000 ads
Reply With Quote
  #3  
Old 11-23-2008, 04:24 AM
Member
 
Join Date: Dec 2006
Posts: 95
Rep Power: 10
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, 11 views)
Reply With Quote
  #4  
Old 12-02-2008, 10:16 AM
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?
Reply With Quote
  #5  
Old 12-02-2008, 10:27 AM
Member
 
Join Date: Dec 2006
Posts: 95
Rep Power: 10
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.
Reply With Quote
  #6  
Old 12-02-2008, 10:28 AM
Junior Member
 
Join Date: Jul 2008
Location: Madrid, Spain
Posts: 18
Rep Power: 3
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.0.8 Developer
Reply With Quote
  #7  
Old 12-02-2008, 10:38 AM
Member
 
Join Date: Dec 2006
Posts: 95
Rep Power: 10
darek is on a distinguished road
Default

lots since the annoucement, but I had no chance to set up the frond end yet
Reply With Quote
  #8  
Old 12-02-2008, 11:20 AM
hel68c's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 170
Rep Power: 6
hel68c is on a distinguished road
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
Reply With Quote
  #9  
Old 12-02-2008, 01:54 PM
Member
 
Join Date: Dec 2006
Posts: 95
Rep Power: 10
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
Reply With Quote
  #10  
Old 12-02-2008, 03:25 PM
hel68c's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 170
Rep Power: 6
hel68c is on a distinguished road
Default

Nice trick

thanks for sharing!
__________________
Serge
HobbyClassified.com
V4.08 Developper
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multilingual site ? switch v3.1 Modules & Modifications 6 12-16-2007 03:24 PM
Limit announcement fo gppromano v3.1 Modules & Modifications 4 09-20-2007 10:38 AM
Announcement Display on Index Jake v3.1 Questions & Support 6 11-09-2006 08:38 AM
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:09 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22