Browse Source

Merge pull request #508 from vallyol/master

ru-RU.ini - Full translation by @vallyol
pull/514/head
Dan 4 years ago
committed by GitHub
parent
commit
27cc9cbbff
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 190 additions and 178 deletions
  1. +6
    -0
      lang/en_US.ini
  2. +176
    -170
      lang/ru_RU.ini
  3. +1
    -1
      system/admin/admin.php
  4. +3
    -3
      system/admin/views/login.html.php
  5. +4
    -4
      system/htmly.php

+ 6
- 0
lang/en_US.ini View File

@ -256,3 +256,9 @@ Posts_by="Posts by"
Pages="Pages" Pages="Pages"
Menu="Menu" Menu="Menu"
Popular="Popular" Popular="Popular"
;Errors
User_Error="User field is required"
Pass_Error="Password field is required"
Token_Error="CSRF Token not correct"
Captcha_Error="reCaptcha not correct"
Invalid_Error="ERROR: Invalid username or password"

+ 176
- 170
lang/ru_RU.ini View File

@ -9,7 +9,7 @@ Are_you_sure_you_want_to_delete_ = "Вы уверены, что хотите у
Audio_post = "Статья с аудио" Audio_post = "Статья с аудио"
Audio_post_comment = "Создать статью с аудио" Audio_post_comment = "Создать статью с аудио"
Author = "Автор" Author = "Автор"
Backup = "Резервное копирование"
Backup = "Бэкап"
Cancel = "Отменить" Cancel = "Отменить"
Categories = "Категории" Categories = "Категории"
Category = "Категория" Category = "Категория"
@ -65,13 +65,13 @@ Related_posts = "Похожие статьи"
Revert_to_draft = "Переключить на черновик" Revert_to_draft = "Переключить на черновик"
Save = "Сохранить" Save = "Сохранить"
Save_as_draft = "Сохранить как черновик" Save_as_draft = "Сохранить как черновик"
Search = "Посик"
Search = "Поиск"
Search_for = "Искать" Search_for = "Искать"
Static_page = "Статичная страница" Static_page = "Статичная страница"
Static_page_comment = "Создать статичную страницу" Static_page_comment = "Создать статичную страницу"
Static_pages = "Статичные страницы" Static_pages = "Статичные страницы"
Tag = "Тег"
Tags = "Теги"
Tag = "Метка"
Tags = "Метки"
Title = "Заголовок" Title = "Заголовок"
Uncategorized = "Без категории" Uncategorized = "Без категории"
Uncategorized_comment = "Статьи, которым не нужна категория или которые не подходят ни к одной существующей категории." Uncategorized_comment = "Статьи, которым не нужна категория или которые не подходят ни к одной существующей категории."
@ -85,175 +85,181 @@ Views = "Просмотры"
Your_recent_posts = "Ваши недавние статьи" Your_recent_posts = "Ваши недавние статьи"
by = "" by = ""
read_more = "Читать далее" read_more = "Читать далее"
Dashboard="Dashboard"
Posts_list="Posts list"
Posts_draft="Posts draft"
Menus="Menu Editor"
Settings="Settings"
Tools="Tools"
Check_update="Check update"
Import_RSS="Import RSS"
User="User"
Proudly_powered_by="Proudly powered by"
Home="Home"
Type_to_search="Type to search"
Admin_panel_style_based_on="Admin panel style based on"
Sign_in_to_start_your_session="Sign in to start your session"
Back_to="Back to"
Login="Login"
User="User"
Password="Password"
Comma_separated_values="Comma separated values"
If_leave_empty_we_will_excerpt_it_from_the_content_below="If leave empty we will excerpt it from the content below"
optional="optional"
If_the_url_leave_empty_we_will_use_the_post_title="If the url leave empty we will use the post title"
If_the_url_leave_empty_we_will_use_the_page_title="If the url leave empty we will use the page title"
Only="Only"
Featured_Audio="Featured Audio"
Featured_Video="Featured Video"
Featured_Image="Featured Image"
Featured_Quote="Featured Quote"
Featured_Link="Featured Link"
Content="Content"
Preview="Preview"
Enter_image_URL="Enter image URL"
Upload="Upload"
Insert_Image="Insert Image"
This_page_doesnt_exist="This page doesn't exist !"
Would_you_like_to_try_our="Would you like to try our "
homepage="homepage"
instead="instead"
Your_backups="Your backups"
Create_backup="Create backup"
All_cache_has_been_deleted="All cache has been deleted !"
Edit_category="Edit category"
Date="Date"
Time="Time"
No_available_backup="No available backup at this time."
You_dont_have_permission_to_access_this_page="You don't have permission to access this page"
Save_category="Save category"
Import_RSS_Feed_2.0="Import RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="By using this importer you are agree if the feed is yours or at least you have the authority to publish it."
Feed_Url="Feed URL"
Add_source_link_optional="Add source link (optional)"
Import_Feed="Start Import Feed"
At_the_moment_you_are_using_auto_generated_menu="At the moment you are using auto generated menu."
Add_menu="Add menu"
Name="Name"
Link_name="Link name"
Slug="Slug"
item_slug="Insert Link URL"
CSS_Class_Optional="CSS Class (optional)"
item_class="Insert CSS class"
Add_link="Add link"
Save_Edit="Save Edit"
Save_Menu="Save menu"
Add_new_post="Add new post"
Add_new_page="Add new page"
Update_Available="Update Available"
Congrats_You_have_the_latest_version_of_HTMLy="Congrats! You have the latest version of HTMLy."
Update_to="Update to"
now="now"
Performance_Settings="Performance Settings"
General="General"
Reading="Reading"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Custom"
General_Settings="General Settings"
Reading_Settings="Reading Settings"
Widget_Settings="Widget Settings"
Metatags_Settings="Metatags Settings"
Custom_Settings="Custom Settings"
Address_URL="Address (URL)"
Blog_Title="Blog title"
Blog_Title_Placeholder="My HTMLy Blog"
Tagline="Tagline"
Tagline_Placeholder="Databaseless PHP Blogging Platform"
Tagline_description="In a few words, explain what this blog is about."
Blog_Description="In one paragraph, tell us more about your blog."
Language="System Language"
Timezone="Timezone"
Date_Format="Date Format"
Blog_Theme="Blog Theme"
Copyright_Line="Copyright line"
Copyright_Line_Placeholder="(c) Your name."
Save_Config="Save config"
Front_page_displays="Front page displays"
Your_latest_blog_posts="Your latest blog posts"
Enable_blog_URL="Enable /blog URL"
Enable="Enable"
Disable="Disable"
Posts_in_front_page_show_at_most="Posts in front page show at most"
Blog_posts_displayed_as="Blog posts displayed as"
Full_post="Full post"
Summary="Summary"
Summary_character="Summary character"
Read_more_text="Read more text"
Read_more_text_placeholder="Read more"
Posts_index_settings="Posts index settings"
Posts_in_category_page_at_most="Posts in category page at most"
Posts_in_archive_page_at_most="Posts in archive page at most"
Posts_in_tag_page_at_most="Posts in tag page at most"
Posts_in_search_result_at_most="Posts in search result at most"
Posts_in_type_page_at_most="Posts in type page at most"
Posts_in_profile_page_at_most="Posts in profile page at most"
RSS_settings="RSS settings"
RSS_feeds_show_the_most_recent="RSS feeds show the most recent"
RSS_character="RSS character"
Permalink="Permalink"
year_month_your_post_slug="/year/month/your-post-slug"
post_your_post_slug="/post/your-post-slug"
Meta_description_character="Meta description character"
Breadcrumb_home_text="Breadcrumb home text"
Sitemap="Sitemap"
Valid_values_range_from_0_to_1.0._See="Valid values range from 0.0 to 1.0. See"
hint_Use_CtrlCMDF_to_search_for_your_config_key_or_value="<u>hint:</u> Use <code>Ctrl</code>/<code>CMD</code> + <code>F</code> to search for your config key or value."
pro_tips_You_can_creating_custom_config_key_and_print_out_your_config_key_value_anywhere_in_your_template="<u>pro tips:</u> You can creating custom config key and print out your config key value anywhere in your template."
Dashboard="Панель"
Posts_list="Список статей"
Posts_draft="Черновики"
Menus="Редактор меню"
Settings="Настройки"
Tools="Инструменты"
Check_update="Проверить обновления"
Import_RSS="Импорт RSS"
User="Пользователь"
Proudly_powered_by="Разработано"
Home="Главная"
Type_to_search="Введите для поиска"
Admin_panel_style_based_on="Стиль админ панели основан на"
Sign_in_to_start_your_session="Авторизация пользователя"
Back_to="Вернуться на"
Login="Вход"
User="Пользователь"
Password="Пароль"
Comma_separated_values="Разделенные запятыми значения"
If_leave_empty_we_will_excerpt_it_from_the_content_below="Если оставить пустым, данные будут внесены из основного содержимого"
optional="необязательный"
If_the_url_leave_empty_we_will_use_the_post_title="Если адрес оставить пустым, будет использован заголовок статьи"
If_the_url_leave_empty_we_will_use_the_page_title="Если адрес оставить пустым, будет использован заголовок страницы"
Only="Только"
Featured_Audio="Аудио"
Featured_Video="Видео"
Featured_Image="Изображение"
Featured_Quote="Цитата"
Featured_Link="Ссылка"
Content="Содержимое"
Preview="Просмотр"
Enter_image_URL="Введите URL изображения"
Upload="Загрузить"
Insert_Image="Вставить изображение"
This_page_doesnt_exist="Такая станица не существует!"
Would_you_like_to_try_our="Хотели бы вы попробовать "
homepage="главная"
instead="вместо"
Your_backups="Резервные копии"
Create_backup="Создать резервную копию"
All_cache_has_been_deleted="Все кеши были очищены!"
Edit_category="Редактировать категорию"
Date="Дата"
Time="Время"
No_available_backup="Резервные копии отсутствуют"
You_dont_have_permission_to_access_this_page="У вас нет разрешений для доступа к этой странице"
Save_category="Сохранить категорию"
Import_RSS_Feed_2.0="Импорт RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="Используя данный импортер, вы подтверждаете, что лента принадлежит вам, или у вас есть полномочия на ее публикацию"
Feed_Url="Адрес рассылки"
Add_source_link_optional="Добавить ссылку на источник (не обязательно)"
Import_Feed="Запустить импорт ленты"
At_the_moment_you_are_using_auto_generated_menu="Сейчас вы используете автоматически созданное меню"
Add_menu="Добавить меню"
Name="Имя"
Link_name="Название ссылки"
Slug="ЧПУ"
item_slug="Вставьте ЧП ссылку"
CSS_Class_Optional="CSS класс (не обязательно)"
item_class="Добавьте класс CSS"
Add_link="Добавить ссылку"
Save_Edit="Сохранить"
Save_Menu="Сохранить меню"
Add_new_post="Добавить новую статью"
Add_new_page="Добавить новую страницу"
Update_Available="Доступно обновление"
Congrats_You_have_the_latest_version_of_HTMLy="Поздравляем! У вас установлена последняя версия HTMLy"
Update_to="Обновить до"
now="сейчас"
Performance_Settings="Настройки производительности"
General="Общие"
Reading="Чтение"
Widget="Виджет"
Metatags="Мета теги"
Performance="Производительность"
Custom="Пользовательские"
General_Settings="Общие настройки"
Reading_Settings="Настройки чтения"
Widget_Settings="Управление виджетами"
Metatags_Settings="Настройки мета тегов"
Custom_Settings="Пользовательские настройки"
Address_URL="Адрес (URL)"
Blog_Title="Заголовок блога"
Blog_Title_Placeholder="Мой блог на HTMLy"
Tagline="Подзаголовок"
Tagline_Placeholder="Платформа для ведения блогов на PHP без базы данных"
Tagline_description="В нескольких словах расскажите, о чем этот блог"
Blog_Description="Расскажите больше о своем блоге (один абзац)"
Language="Язык системы"
Timezone="Часовой пояс"
Date_Format="Формат даты"
Blog_Theme="Тема блога"
Copyright_Line="Авторские права"
Copyright_Line_Placeholder="(c) Ваше имя"
Save_Config="Сохранить настройки"
Front_page_displays="Показывать на главной странице"
Your_latest_blog_posts="Ваши последние статьи"
Enable_blog_URL="Включить ссылку /blog"
Enable="Включить"
Disable="Выключить"
Posts_in_front_page_show_at_most="Количество статей на главной, не более"
Blog_posts_displayed_as="Записи в блоге отображаются в виде"
Full_post="Статья полностью"
Summary="Отрывок"
Summary_character="Количество символов в отрывке"
Read_more_text="Текст Читать далее"
Read_more_text_placeholder="Подробнее"
Posts_index_settings="Настройки количества статей"
Posts_in_category_page_at_most="Количество статей на странице категорий, не более"
Posts_in_archive_page_at_most="Количество статей на архивных страницах, не более"
Posts_in_tag_page_at_most="Количество статей на страницах для каждой метки, не более"
Posts_in_search_result_at_most="Количество статей в результатах поиска, не более"
Posts_in_type_page_at_most="Количество статей на страницах для каждого типа записей, не более"
Posts_in_profile_page_at_most="Количество статей на страницах профиля пользователя, не более"
RSS_settings="Настройки RSS"
RSS_feeds_show_the_most_recent="Количество последних новостей в RSS каналах"
RSS_character="Количество символов в RSS"
Permalink="Постоянная ссылка"
year_month_your_post_slug="/год/месяц/постоянная-ссылка-на-статью"
post_your_post_slug="/post/постоянная-ссылка-на-статью"
Meta_description_character="Количество символов в мета-описании"
Breadcrumb_home_text="Текст для главной страницы в хлебных крошках"
Sitemap="Карта сайта"
Valid_values_range_from_0_to_1.0._See="Допустимые значения от 0.0 до 1.0. Подробнее: "
hint_Use_CtrlCMDF_to_search_for_your_config_key_or_value="<u>совет:</u> Для поиска ключа конфигурации и его значения используйте комбинацию клавиш <code>Ctrl</code>/<code>CMD</code> + <code>F</code>"
pro_tips_You_can_creating_custom_config_key_and_print_out_your_config_key_value_anywhere_in_your_template="<u>совет:</u> Вы можете создать собственный ключ конфигурации и выводить значение этого ключа в любом месте вашего шаблона"
your_key="your.key" your_key="your.key"
Your_New_Config_Key="Your New Config Key"
Your_New_Value="Your New Value"
Related_widget_posts_at_most="Related widget posts at most"
Recent_posts_widget_at_most="Recent posts widget at most"
Popular_posts_widget="Popular posts widget"
Popular_posts_widget_at_most="Popular posts widget at most"
Comments="Comments"
To_using_Disqus_or_Facebook_comment_you_need_to_provide_Disqus_shortname_or_Facebook_App_ID="To using Disqus or Facebook comment you need to provide Disqus shortname or Facebook App ID."
Comment_system="Comment system"
Disabled="Disabled"
Disqus_shortname="Disqus shortname"
Your_New_Config_Key="Ваш новый ключ конфигурации"
Your_New_Value="Значение ключа"
Related_widget_posts_at_most="Количество похожих статей, не более"
Recent_posts_widget_at_most="Количество новых статей, не более"
Popular_posts_widget="Популярные статьи"
Popular_posts_widget_at_most="Количество популярных статей, не более"
Comments="Комментарии"
To_using_Disqus_or_Facebook_comment_you_need_to_provide_Disqus_shortname_or_Facebook_App_ID="Для использования комментариев Disqus или Facebook вам необходимо указать короткое имя Disqus или Facebook App ID."
Comment_system="Выберите систему"
Disabled="Отключено"
Disqus_shortname="Имя Disqus"
Disqus_shortname_placeholder="htmly" Disqus_shortname_placeholder="htmly"
Facebook_App_ID="Facebook App ID" Facebook_App_ID="Facebook App ID"
widget_key_placeholder="12345abcde" widget_key_placeholder="12345abcde"
Recaptcha="reCAPTCHA" Recaptcha="reCAPTCHA"
Get_one_here="Get one here"
Site_Key="Site Key"
Secret_Key="Secret Key"
Google_Analytics="Google Analytics"
Universal_Analytics="Universal Analytics (gtag.js)"
Google_Analytics_legacy="Google Analytics (legacy)"
This_is_legacy_code_usually_new_created_analytics_using_gtag_js="This is legacy code. Usually new created analytics using gtag.js"
Google_Search_Console="Google Search Console"
For_google_site_verification_meta="For google-site-verification meta"
Social_Media="Social Media"
Twitter_account="Twitter account"
Facebook_page="Facebook page"
Cache_expiration="Cache expiration (in hours)"
Cache_off="Cache off"
Yes_not_recommended="Yes (not recommended)"
Not="No"
Cache_timestamp="Cache timestamp"
Page_generation_time="Page generation time"
Github_pre_release="Github pre-release"
Pre_release="Pre-release"
Yes_Im_in="Yes I'm in"
Nope="Nope"
Page="Page"
Get_one_here="Получить"
Site_Key="Ключ сайта"
Secret_Key="Секретный ключ"
Google_Analytics="Аналитика Google"
Universal_Analytics="Универсальная (gtag.js)"
Google_Analytics_legacy="Аналитика Google (legacy)"
This_is_legacy_code_usually_new_created_analytics_using_gtag_js="Это устаревший код. Обычно новая аналитика создается с использованием gtag.js"
Google_Search_Console="Поисковая консоль Google"
For_google_site_verification_meta="Для google-site-verification (мета тег)"
Social_Media="Социальные медиа"
Twitter_account="Аккаунт Twitter"
Facebook_page="Страница Facebook"
Cache_expiration="Срок действия кеша (в часах)"
Cache_off="Кеш выключен"
Yes_not_recommended="Да (не рекомендуется)"
Not="Нет"
Cache_timestamp="Отметка времени кеша"
Page_generation_time="Время создания страницы"
Github_pre_release="Предварительный выпуск на Github"
Pre_release="предварительный выпуск"
Yes_Im_in="Да"
Nope="Нет"
Page="Страница"
of="of" of="of"
Edit_post="Edit"
View_post="View"
Posts_by="Posts by"
Pages="Pages"
Menu="Menu"
Popular="Popular"
Edit_post="Редактировать"
View_post="Просмотр"
Posts_by="Статьи автора"
Pages="Страницы"
Menu="Меню"
Popular="Популярный"
;Errors
User_Error="Заполните имя пользователя"
Pass_Error="Введите пароль"
Token_Error="Неправильный токен"
Captcha_Error="reCaptcha не верна"
Invalid_Error="ОШИБКА: Неверные имя пользователя или Пароль"

+ 1
- 1
system/admin/admin.php View File

@ -44,7 +44,7 @@ function session($user, $pass)
{ {
$user_file = 'config/users/' . $user . '.ini'; $user_file = 'config/users/' . $user . '.ini';
if (!file_exists($user_file)) { if (!file_exists($user_file)) {
return $str = '<div class="error-message"><ul><li class="alert alert-danger">ERROR: Invalid username or password.</li></li></div>';
return $str = '<div class="error-message"><ul><li class="alert alert-danger">' . i18n('Invalid_Error') . '</li></li></div>';
} }
$user_enc = user('encryption', $user); $user_enc = user('encryption', $user);


+ 3
- 3
system/admin/views/login.html.php View File

@ -11,14 +11,14 @@
if (empty($username)) { if (empty($username)) {
echo 'error'; echo 'error';
} }
} ?>" name="user" placeholder="Username"/>
} ?>" name="user" placeholder="<?php echo i18n('User'); ?>"/>
<br> <br>
<label><?php echo i18n('Password');?> <span class="required">*</span></label> <label><?php echo i18n('Password');?> <span class="required">*</span></label>
<input type="password" class="form-control <?php if (isset($password)) { <input type="password" class="form-control <?php if (isset($password)) {
if (empty($password)) { if (empty($password)) {
echo 'error'; echo 'error';
} }
} ?>" name="password" placeholder="Password"/>
} ?>" name="password" placeholder="<?php echo i18n('Password'); ?>"/>
<br> <br>
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>"> <input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>">
<?php if (config('google.reCaptcha') === 'true'): ?> <?php if (config('google.reCaptcha') === 'true'): ?>
@ -30,4 +30,4 @@
</form> </form>
<?php } else { <?php } else {
header('location: admin'); header('location: admin');
} ?>
} ?>

+ 4
- 4
system/htmly.php View File

@ -154,16 +154,16 @@ post('/login', function () {
} else { } else {
$message['error'] = ''; $message['error'] = '';
if (empty($user)) { if (empty($user)) {
$message['error'] .= '<li class="alert alert-danger">User field is required.</li>';
$message['error'] .= '<li class="alert alert-danger">' . i18n('User_Error') . '</li>';
} }
if (empty($pass)) { if (empty($pass)) {
$message['error'] .= '<li class="alert alert-danger">Password field is required.</li>';
$message['error'] .= '<li class="alert alert-danger">' . i18n('Pass_Error') . '</li>';
} }
if (!$proper) { if (!$proper) {
$message['error'] .= '<li class="alert alert-danger">CSRF Token not correct.</li>';
$message['error'] .= '<li class="alert alert-danger">' . i18n('Token_Error') . '</li>';
} }
if (!$captcha) { if (!$captcha) {
$message['error'] .= '<li class="alert alert-danger">reCaptcha not correct.</li>';
$message['error'] .= '<li class="alert alert-danger">' . i18n('Captcha_Error') . '</li>';
} }
config('views.root', 'system/admin/views'); config('views.root', 'system/admin/views');


Loading…
Cancel
Save