×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Template based on language

Template based on language 11 years 1 month ago #22913

  • Olivier Nolbert
  • Olivier Nolbert's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hi,

Is there a way to select a template based on the website language ?

Thx for this great extension !

Olivier

Template based on language 11 years 1 month ago #22915

  • Olivier Nolbert
  • Olivier Nolbert's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Well, I've managed this on my side...

I've hacked the extension to add multi-language management in templates. So now i can select for which language the template is used.

I can provide the modifications if needed.

Olivier

Template based on language 11 years 1 month ago #22916

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Olivier,
That sounds like a cool modification. I'm currently working on a new version, so if you show me your modification I can add it.

Btw - I'm actually rewriting the template system...

Cheers,
Daniel

Template based on language 11 years 1 month ago #22918

  • Olivier Nolbert
  • Olivier Nolbert's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hi Daniel,

The zip file contains the 3 hacked files. I've commented my code with 'JILIKO' tag.

You also have to add an extra 'language' column ( char(7) ) to the cmandrill templates table for this to work.

What's missing is the language column in the backend templates view with filter.

Olivier
Attachments:
  • Page:
  • 1
Time to create page: 0.101 seconds