Ombre Posted October 11, 2017 Share Posted October 11, 2017 Dear All, Please explain me how to convert these old PHP site into responsive one. The address of site is www.cnc4milling.com. Will be very thankfull to receive an information or code which to implement and convert the site into responsive. The other problem is changing of language on the web. At the beginning the website was created with one language English, but was prepared to be with two languages, but it was not finished at all. Please let to solve these problems and to make it with changing language. I have created also bulgarian varinat of the web pages and need only code to implement and to be possible to change the languages. Will be very thankfull to receive competitive help. Thank you in advance. Best Regards Ombre P.S. Sending css file of the web site. style.css Link to comment Share on other sites More sharing options...
justsomeguy Posted October 11, 2017 Share Posted October 11, 2017 It's not as simple as making a few changes. It would probably be more efficient to just redesign it and start with a responsive design. You may want to use something like Wordpress where you can have basically easy support for multiple languages without necessarily needing to be a programmer yourself. Link to comment Share on other sites More sharing options...
Ombre Posted October 12, 2017 Author Share Posted October 12, 2017 I have this code in the begining of my index file: <?php $page=($_REQUEST['page'] ? $_REQUEST['page'] : "applications"); $lang=($_REQUEST['lang'] ? $_REQUEST['lang'] : "en"); $lang=($lang != "bg" && $lang != "en") ? "en" : $lang; include "./lang/" . $lang . "/menu.php"; include("functions.php"); $title = checkPage($_GET['page']); include("meta.php"); $meta = metapage($_GET['page']); ?> Is it possible to convert this code and to able two language sellection English and Bulgarian. Thank you in advance Link to comment Share on other sites More sharing options...
justsomeguy Posted October 12, 2017 Share Posted October 12, 2017 It looks like it's already doing that. It's including a file depending on the selected language. Link to comment Share on other sites More sharing options...
Ombre Posted October 13, 2017 Author Share Posted October 13, 2017 Probably yes, but how to made switch between the pages. I even couldn't insert button pictures for language change. Do you have in mind how this is possible to be done. Best REgards, Valentin Link to comment Share on other sites More sharing options...
justsomeguy Posted October 13, 2017 Share Posted October 13, 2017 I don't know how that was set up, but it's including a file called menu.php in a directory based on the language, so maybe whoever built that expected you to create different files for each page and put them in the appropriate language directories, and then change that code on each page to include the files appropriate for that page and language. You should have the same set of files in every language directory, the menu.php file should exist in the directory for every language. I don't know how the original programmer set that up or what they put inside those files, but that's what it looks like. I even couldn't insert button pictures for language change. Do you have in mind how this is possible to be done. You can make a regular image link, but the URL should include a lang variable set to whatever language you want to use. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now