Skip to content
This repository has been archived by the owner on Feb 23, 2020. It is now read-only.

Commit

Permalink
Change language
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Kuche <Jonas.kuche@gmail.com>
  • Loading branch information
Zitrone44 committed Apr 2, 2018
1 parent d960953 commit 0ca5720
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zlnk"
version = "0.4.2"
version = "0.4.3"
authors = ["Jonas Kuche <Jonas.kuche@gmail.com>"]

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/env_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn init() -> Env {
url_regex: Regex::new(&env::var("URL_REGEX").unwrap_or(URL_REGEX.to_string())).unwrap(),
short_length: usize::from_str(&env::var("SHORT_LENGTH").unwrap_or("5".to_string())).unwrap(),
short_alphabet: env::var("SHORT_ALPHABET").unwrap_or("hex".to_string()),
bad_request_message: env::var("BAD_REQUEST_MESSAGE").unwrap_or("Ungültige URL".to_string()),
bad_request_message: env::var("BAD_REQUEST_MESSAGE").unwrap_or("Invalid URL".to_string()),
mmdb_path: env::var("MMDB_PATH").unwrap_or("./GeoLite2-Country.mmdb".to_string()),
trust_proxy: env::var("TRUST_PROXY").is_ok(),
disable_stats: env::var("DISABLE_STATS").is_ok()
Expand Down
2 changes: 1 addition & 1 deletion static/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<body>
<div class="container">
<h1>404 <small>Not Found</small></h1>
Die angefragte kurz-Addresse konnte nicht gefunden werden.
The requested short-URL could not be found.
</div>
</body>
</html>
6 changes: 3 additions & 3 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
</head>
<body>
<div class="container">
<h1>Addresse Kürzen</h1>
<h1>Shorten URL</h1>
<form id="form">
<div class="form-group">
<input id="longURL" type="url" placeholder="Lange Addresse" class="form-control"/>
<input id="longURL" type="url" placeholder="Long URL" class="form-control"/>
<div id="longURLFeedback" class="invalid-feedback"></div>
</div>
<input id="submitButton" type="submit" class="btn btn-primary" value="Kürzen"/>
<input id="submitButton" type="submit" class="btn btn-primary" value="Shorten"/>
</form>
<div id="resultContainer" class="invisible">
<hr>
Expand Down

0 comments on commit 0ca5720

Please sign in to comment.