mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	translation for login/logout pages #212
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| <!doctype html> | ||||
|  | ||||
| {% load static %} | ||||
| {% load i18n %} | ||||
|  | ||||
| <html lang="en"> | ||||
| <head> | ||||
| @@ -16,7 +17,7 @@ | ||||
| 	<link rel="stylesheet" href="{% static styles_css %}"> | ||||
| </head> | ||||
| <body> | ||||
|   <app-root>Loading...</app-root> | ||||
|   <app-root>{% translate "Paperless-ng is loading..." %}</app-root> | ||||
| 	<script src="{% static runtime_js %}" defer></script> | ||||
| 	<script src="{% static polyfills_js %}" defer></script> | ||||
| 	<script src="{% static main_js %}" defer></script> | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| <!doctype html> | ||||
|  | ||||
| {% load static %} | ||||
| {% load i18n %} | ||||
|  | ||||
| <html lang="en"> | ||||
|   <head> | ||||
| @@ -9,7 +10,7 @@ | ||||
|     <meta name="description" content=""> | ||||
|     <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors"> | ||||
|     <meta name="generator" content="Jekyll v4.1.1"> | ||||
|     <title>Paperless Sign In</title> | ||||
|     <title>{% translate "Paperless-ng signed out" %}</title> | ||||
|  | ||||
|     <!-- Bootstrap core CSS --> | ||||
| 		<link href="{% static 'bootstrap.min.css' %}" rel="stylesheet"> | ||||
| @@ -37,8 +38,8 @@ | ||||
|   <body class="text-center"> | ||||
|     <div class="form-signin"> | ||||
| 			<img class="mb-4" src="{% static 'frontend/en-US/assets/logo.svg' %}" alt="" width="300"> | ||||
| 			<p>You have been successfully logged out. Bye!</p> | ||||
| 			<a href="/">Sign in again</a> | ||||
| 			<p>{% translate "You have been successfully logged out. Bye!" %}</p> | ||||
| 			<a href="/">{% translate "Sign in again" %}</a> | ||||
| 		</div> | ||||
| 	</body> | ||||
| </html> | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| <!doctype html> | ||||
|  | ||||
| {% load static %} | ||||
| {% load i18n %} | ||||
|  | ||||
| <html lang="en"> | ||||
|   <head> | ||||
| @@ -9,7 +10,7 @@ | ||||
|     <meta name="description" content=""> | ||||
|     <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors"> | ||||
|     <meta name="generator" content="Jekyll v4.1.1"> | ||||
|     <title>Paperless Sign In</title> | ||||
|     <title>{% translate "Paperless-ng sign in" %}</title> | ||||
|  | ||||
|     <!-- Bootstrap core CSS --> | ||||
| 		<link href="{% static 'bootstrap.min.css' %}" rel="stylesheet"> | ||||
| @@ -38,17 +39,19 @@ | ||||
|     <form class="form-signin" method="post"> | ||||
| 			{% csrf_token %} | ||||
| 			<img class="mb-4" src="{% static 'frontend/en-US/assets/logo.svg' %}" alt="" width="300"> | ||||
| 			<p>Please sign in.</p> | ||||
| 			<p>{% translate "Please sign in." %}</p> | ||||
| 			{% if form.errors %} | ||||
| 				<div class="alert alert-danger" role="alert"> | ||||
| 					Your username and password didn't match. Please try again. | ||||
| 					{% translate "Your username and password didn't match. Please try again." %} | ||||
| 				</div> | ||||
| 			{% endif %} | ||||
| 			<label for="inputUsername" class="sr-only">Username</label> | ||||
| 			<input type="text" name="username" id="inputUsername" class="form-control" placeholder="Username" required autofocus> | ||||
| 			<label for="inputPassword" class="sr-only">Password</label> | ||||
| 			<input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required> | ||||
| 			<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button> | ||||
| 			{% translate "Username" as i18n_username %} | ||||
| 			{% translate "Password" as i18n_password %} | ||||
| 			<label for="inputUsername" class="sr-only">{{ i18n_username }}</label> | ||||
| 			<input type="text" name="username" id="inputUsername" class="form-control" placeholder="{{ i18n_username }}" required autofocus> | ||||
| 			<label for="inputPassword" class="sr-only">{{ i18n_password }}</label> | ||||
| 			<input type="password" name="password" id="inputPassword" class="form-control" placeholder="{{ i18n_password }}" required> | ||||
| 			<button class="btn btn-lg btn-primary btn-block" type="submit">{% translate "Sign in" %}</button> | ||||
| 		</form> | ||||
| 	</body> | ||||
| </html> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler