1
0
Fork 0

Translate templates

This commit is contained in:
Alex Kotov 2020-10-24 22:42:19 +05:00
parent 98dc60cc79
commit ad55888860
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
8 changed files with 62 additions and 30 deletions

View file

@ -1,2 +1,18 @@
about-us = About Us
amount = Amount
donate = Donate
download = Download
fedihub = FediHub
federated-services-without-censorship = Federated services without censorship.
history = History
our-team = Our team
password = Password
password-confirmation = Password confirmation
pdf = PDF
reports = Reports
seller-source = Seller/source
sign-in = Sign In
sign-out = Sign Out
sign-up = Sign Up
username = Username
year-month = Year, month

View file

@ -1,2 +1,18 @@
about-us = О нас
amount = Количество
donate = Сделать пожертвование
download = Скачать
fedihub = FediHub
federated-services-without-censorship = Федеративные сервисы без цензуры.
history = История
our-team = Наша команда
password = Пароль
password-confirmation = Подтверждение пароля
pdf = PDF
reports = Отчёты
seller-source = Продавец/источник
sign-in = Войти
sign-out = Выйти
sign-up = Зарегистрироваться
username = Имя пользователя
year-month = Год, месяц

View file

@ -17,7 +17,7 @@
</p>
<a href="{{ this.history }}" target="_blank" class="card-link">
History
{{ translate "en" "history" }}
</a>
</div>
</div>

View file

@ -1,7 +1,7 @@
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a href="/" class="navbar-brand">
<img src="/logo.jpg" width="30" height="30"/>
FediHub
{{ translate "en" "fedihub" }}
</a>
<button class="navbar-toggler"
@ -26,20 +26,20 @@
aria-haspopup="true"
aria-expanded="false"
>
About Us
{{ translate "en" "about-us" }}
</a>
<div class="dropdown-menu" aria-labelledby="aboutUsNavbarDropdown">
<a href="/team" class="dropdown-item">
Out team
{{ translate "en" "our-team" }}
</a>
<a href="/donate" class="dropdown-item">
Donate
{{ translate "en" "donate" }}
</a>
<a href="/reports" class="dropdown-item">
Reports
{{ translate "en" "reports" }}
</a>
</div>
</li>
@ -65,7 +65,7 @@
<input type="hidden" name="authenticity_token" value="{{ authenticity_token }}"/>
<button type="submit" class="dropdown-item">
Sign Out
{{ translate "en" "sign-out" }}
</button>
</form>
</div>
@ -74,11 +74,11 @@
{{else}}
<div class="ml-auto">
<a href="/sign_in" role="button" class="btn btn-light mr-2">
Sign In
{{ translate "en" "sign-in" }}
</a>
<a href="/sign_up" role="button" class="btn btn-primary mr-2">
Sign Up
{{ translate "en" "sign-up" }}
</a>
</div>
{{/if}}

View file

@ -1,20 +1,20 @@
<div class="container mt-4">
<h1>Reports</h1>
<h1>{{ translate "en" "reports" }}</h1>
<table class="table table-striped mt-3">
<thead>
<tr>
<th scope="col">
Year, month
{{ translate "en" "year-month" }}
</th>
<th scope="col">
Seller/source
{{ translate "en" "seller-source" }}
</th>
<th scope="col">
Amount
{{ translate "en" "amount" }}
</th>
<th scope="col">
Download
{{ translate "en" "download" }}
</th>
</tr>
</thead>
@ -25,7 +25,7 @@
<td>{{ this.datetime }}</td>
<td>{{ this.party }}</td>
<td>{{ this.amount }}</td>
<td><a href="{{ this.download }}">PDF</a></td>
<td><a href="{{ this.download }}">{{ translate "en" "pdf" }}</a></td>
</tr>
{{/each}}
</tbody>

View file

@ -1,21 +1,21 @@
<div class="container mt-4">
<h1>Sign In</h1>
<h1>{{ translate "en" "sign-in" }}</h1>
<form method="post" action="/sign_in">
<input type="hidden" name="authenticity_token" value="{{ authenticity_token }}"/>
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" value="{{ username }}" class="form-control" placeholder="Username"/>
<label for="username">{{ translate "en" "username" }}</label>
<input type="text" id="username" name="username" value="{{ username }}" class="form-control" placeholder="{{ translate "en" "username" }}"/>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" class="form-control" placeholder="Password"/>
<label for="password">{{ translate "en" "password" }}</label>
<input type="password" id="password" name="password" class="form-control" placeholder="{{ translate "en" "password" }}"/>
</div>
<button type="submit" class="btn btn-primary">
Sign In
{{ translate "en" "sign-in" }}
</button>
</form>
</div>

View file

@ -9,7 +9,7 @@
shrink-to-fit=no,
user-scalable=no"/>
<title>FediHub</title>
<title>{{ translate "en" "fedihub" }}</title>
<link rel="stylesheet" href="/assets/bundle.css">
</head>

View file

@ -1,26 +1,26 @@
<div class="container mt-4">
<h1>Sign Up</h1>
<h1>{{ translate "en" "sign-up" }}</h1>
<form method="post" action="/sign_up">
<input type="hidden" name="authenticity_token" value="{{ authenticity_token }}"/>
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" value="{{ username }}" class="form-control" placeholder="Username"/>
<label for="username">{{ translate "en" "username" }}</label>
<input type="text" id="username" name="username" value="{{ username }}" class="form-control" placeholder="{{ translate "en" "username" }}"/>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" class="form-control" placeholder="Password"/>
<label for="password">{{ translate "en" "password" }}</label>
<input type="password" id="password" name="password" class="form-control" placeholder="{{ translate "en" "password" }}"/>
</div>
<div class="form-group">
<label for="password_confirmation">Password confirmation</label>
<input type="password" id="password_confirmation" name="password_confirmation" class="form-control" placeholder="Password confirmation"/>
<label for="password_confirmation">{{ translate "en" "password-confirmation" }}</label>
<input type="password" id="password_confirmation" name="password_confirmation" class="form-control" placeholder="{{ translate "en" "password-confirmation" }}"/>
</div>
<button type="submit" class="btn btn-primary">
Sign Up
{{ translate "en" "sign-up" }}
</button>
</form>
</div>