gbr Posted January 9, 2013 Share Posted January 9, 2013 Hi, I have a site in 2 languages, my probleme is the download section of a product. When I join a file to a product I join an english pdf file, and a french pdf file. But the two document are always display. I want that when the site is in english, only the engish document is displayed in download section of the product, and when the site is in french only the french file could be display. How can I make it? I need a module? Thank's. Link to comment Share on other sites More sharing options...
NemoPS Posted January 9, 2013 Share Posted January 9, 2013 You don't exactly need a module. You need to edit the code so that, for example, if you name your pdfs like "readme_en", you can use a regular expression to target each language, and hide the display in case it doesn't match the ISO code of the current language Of course, you have to know PHP, regular expressions ad Smarty. Cheers! Link to comment Share on other sites More sharing options...
gbr Posted January 11, 2013 Author Share Posted January 11, 2013 Thank's, The problem is that I now PHP but not Smarty. It's for this reason I search a module to add. Cheers Link to comment Share on other sites More sharing options...
NemoPS Posted January 11, 2013 Share Posted January 11, 2013 Yeah, but as I said it's more a modification than a module. I can do that for you if you want (as a paid job) Link to comment Share on other sites More sharing options...
gbr Posted January 11, 2013 Author Share Posted January 11, 2013 Thank's for your proposal, could you send me more information by private message? Price,...? Link to comment Share on other sites More sharing options...
NemoPS Posted January 11, 2013 Share Posted January 11, 2013 Sent Link to comment Share on other sites More sharing options...
Recommended Posts