{"action":"created","issue":{"url":"https://api.github.com/repos/DarwinNE/FidoCadJ/issues/59","labels_url":"https://api.github.com/repos/DarwinNE/FidoCadJ/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/DarwinNE/FidoCadJ/issues/59/comments","events_url":"https://api.github.com/repos/DarwinNE/FidoCadJ/issues/59/events","html_url":"https://github.com/DarwinNE/FidoCadJ/issues/59","id":113996942,"number":59,"title":"Multi language website for FidoCadJ","user":{"login":"MigthyThor","id":12007888,"avatar_url":"https://avatars.githubusercontent.com/u/12007888?v=3","gravatar_id":"","url":"https://api.github.com/users/MigthyThor","html_url":"https://github.com/MigthyThor","followers_url":"https://api.github.com/users/MigthyThor/followers","following_url":"https://api.github.com/users/MigthyThor/following{/other_user}","gists_url":"https://api.github.com/users/MigthyThor/gists{/gist_id}","starred_url":"https://api.github.com/users/MigthyThor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MigthyThor/subscriptions","organizations_url":"https://api.github.com/users/MigthyThor/orgs","repos_url":"https://api.github.com/users/MigthyThor/repos","events_url":"https://api.github.com/users/MigthyThor/events{/privacy}","received_events_url":"https://api.github.com/users/MigthyThor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-29T07:43:03Z","updated_at":"2015-10-29T08:52:15Z","closed_at":null,"body":"We need to add multi language support for the website. That's my plan to do it:\r\n\r\nI'm going to transform the current web site (in html) in a PHP web site. \r\n\r\nPHP web sites don't run on GitHub, but in the future who knows... for now we use it to **generate the html code.**\r\n\r\nWith a multi language web site made in PHP we will have a common file for the template, and many content file per page as many language we will use. Technically speaking, we separate the content from the viewer.\r\n\r\nSo, all we have to do, is **run the PHP site on a local server**, for every chang on web site (that aren't so frequently) copy and paste the html source code in the GitHub directory.\r\n\r\nI'll try to make **an example** on a piece of html code from page index.html\r\n\r\nNow the title of the page is defined by this code:\r\n`<title>FidoCadJ Free Graphical Editor for Electronics and more</title>`\r\n\r\nIn the PHP version there'll be an include about a language file(for example italian):\r\n`include(\"languages/italian/index.php\");`\r\nthat contain the languages definition, the title will change in:\r\n`<title><?php echo $TITLE; ?></title>`\r\n\r\nIf you will look at the output/source code of the new index.php, will see only the result:\r\n`<title>FidoCadJ Software gratuito per il disegno di circuiti elettronici e altro</title>`\r\n\r\nSo will have a new structure for the other (not english) languages:\r\nItalian -> http://darwinne.github.io/FidoCadJ/italian/index.html\r\nSpanish -> http://darwinne.github.io/FidoCadJ/spanish/index.html\r\nKlingon -> http://darwinne.github.io/FidoCadJ/klingon/index.html\r\n\r\nand so on...\r\n\r\nOf course, **I will tell Google wich languages we ar going to serve** and I'll make some beautiful **flags** for the user to choose the language he prefers.\r\n\r\n**I will translate the website in italian** and I'll make a **little guide for new translators** about how to edit the language file.\r\n\r\nHope I've been clear enough.\r\n\r\nCheers!"},"comment":{"url":"https://api.github.com/repos/DarwinNE/FidoCadJ/issues/comments/152114922","html_url":"https://github.com/DarwinNE/FidoCadJ/issues/59#issuecomment-152114922","issue_url":"https://api.github.com/repos/DarwinNE/FidoCadJ/issues/59","id":152114922,"user":{"login":"MigthyThor","id":12007888,"avatar_url":"https://avatars.githubusercontent.com/u/12007888?v=3","gravatar_id":"","url":"https://api.github.com/users/MigthyThor","html_url":"https://github.com/MigthyThor","followers_url":"https://api.github.com/users/MigthyThor/followers","following_url":"https://api.github.com/users/MigthyThor/following{/other_user}","gists_url":"https://api.github.com/users/MigthyThor/gists{/gist_id}","starred_url":"https://api.github.com/users/MigthyThor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MigthyThor/subscriptions","organizations_url":"https://api.github.com/users/MigthyThor/orgs","repos_url":"https://api.github.com/users/MigthyThor/repos","events_url":"https://api.github.com/users/MigthyThor/events{/privacy}","received_events_url":"https://api.github.com/users/MigthyThor/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T08:52:15Z","updated_at":"2015-10-29T08:52:15Z","body":"DarwinNE doesn't like libraries, so...neither Jquery "}}