-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for multiply languages #27
Changes from all commits
30a5dc9
2e7ff83
b39f4e5
60892f3
86ef02c
b971af0
f631100
51c1494
46c8791
0e72cc9
83e9f2f
fb3c8a1
34badcc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/_site | ||
/_site | ||
/tmp |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ | |
<meta http-equiv="X-UA-Compatible" content="chrome=1"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
<link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'> | ||
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen"> | ||
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen"> | ||
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print"> | ||
<link rel="stylesheet" type="text/css" href="{{ site.github.url }}/stylesheets/stylesheet.css" media="screen"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this necessary? are relative paths not working here anymore? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, because I use redirects on subfolders with the language, you need absolute paths for the stylesheets. Otherway the index in the folder doesn't find the sheets. |
||
<link rel="stylesheet" type="text/css" href="{{ site.github.url }}/stylesheets/github-light.css" media="screen"> | ||
<link rel="stylesheet" type="text/css" href="{{ site.github.url }}/stylesheets/print.css" media="print"> | ||
|
||
<!--[if lt IE 9]> | ||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
layout: null | ||
--- | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script type="text/javascript"> | ||
var languages = { | ||
// "bg": "bg", | ||
// "de": "de", | ||
// "es": "es", | ||
// "fr": "fr", | ||
// "id": "id", | ||
}; | ||
|
||
var code = window.navigator.language || window.navigator.userLanguage || "en"; | ||
if (code.substr(0,2) !== "zh") { code = code.substr(0,2); } | ||
|
||
var language = languages[code]; | ||
if (!language) { language = "en"; } | ||
|
||
document.location = "/" + language + "/"; | ||
</script> | ||
<noscript> | ||
<meta http-equiv="refresh" content="0; URL=/en/"> | ||
</noscript> | ||
<title>Refugees on Rails - Cologne</title> | ||
</head> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add a comment why exactly we are ignoring that one file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I don't get the error on any of my machines, linux or mac after testing for a whole weekend. I couldn't find it. Even online checker say, this file is okay, so i ignore an error on travis I can't reproduce or understand.