Locales: Minor corrections and new strings added

Added: results, post_as_group, add_signature, contains_nsfw, attach_no_longer_available, open_post, version_incompatibility, all_news, posts_per_page, none
This commit is contained in:
Ilya Prokopenko 2021-09-18 11:49:51 +03:00
parent e0ecaf70ce
commit be1e5cf98f
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56
10 changed files with 57 additions and 24 deletions

View file

@ -20,12 +20,12 @@
{block tabs} {block tabs}
<form style="margin-left: 12px;"> <form style="margin-left: 12px;">
<input name="type" type="hidden" value="{$_GET['type'] ?? 'users'}" /> <input name="type" type="hidden" value="{$_GET['type'] ?? 'users'}" />
<input name="query" type="text" placeholder="Поиск" value="{$_GET['query'] ?? ''}" style="width: 90%" /> <input name="query" type="text" placeholder="{_"header_search"}" value="{$_GET['query'] ?? ''}" style="width: 90%" />
<input type="submit" class="button" value="Поиск!" style="width: 9%" /> <input type="submit" class="button" value="{_"search_button"}" style="width: 9%" />
</form> </form>
<p style="margin-left: 15px;"> <p style="margin-left: 15px;">
<b>{$count} результатов</b> <b>{tr("results", $count)}</b>
</p> </p>
{/block} {/block}
@ -36,7 +36,7 @@
{/block} {/block}
{block preview} {block preview}
<img src="{$x->getAvatarUrl()}" width="75" alt="Фотография" /> <img src="{$x->getAvatarUrl()}" width="75" alt="{_"photo"}" />
{/block} {/block}
{block name} {block name}
@ -49,7 +49,7 @@
{if $type === "users"} {if $type === "users"}
<tr> <tr>
<td><span class="nobold">{_"gender"}: </span></td> <td><span class="nobold">{_"gender"}: </span></td>
<td>{$x->isFemale() ? "женский" : "мужской"}</td> <td>{$x->isFemale() ? tr("female") : tr("male")}</td>
</tr> </tr>
<tr> <tr>
<td><span class="nobold">{_"relationship"}:</span></td> <td><span class="nobold">{_"relationship"}:</span></td>
@ -62,10 +62,10 @@
{/if} {/if}
<tr> <tr>
<td> <td>
<span class="nobold">Описание:</span> <span class="nobold">{_"description"}:</span>
</td> </td>
<td> <td>
{$x->getDescription() ?? "(отсутствует)"} {$x->getDescription() ?? '(' . tr("none") . ')'}
</td> </td>
</tr> </tr>
</tbody> </tbody>

View file

@ -65,7 +65,7 @@
{if OPENVK_ROOT_CONF['openvk']['credentials']['zadarma']['enable']} {if OPENVK_ROOT_CONF['openvk']['credentials']['zadarma']['enable']}
<tr> <tr>
<td width="120" valign="top"> <td width="120" valign="top">
<span class="nobold">Телефон: </span> <span class="nobold">{_"phone"}: </span>
</td> </td>
<td> <td>
<input type="phone" name="phone" value="{$user->getPhone()}" /> <input type="phone" name="phone" value="{$user->getPhone()}" />
@ -132,7 +132,7 @@
</tr> </tr>
<tr> <tr>
<td width="120" valign="top"> <td width="120" valign="top">
<span class="nobold">День рождения: </span> <span class="nobold">{_"birth_date"}: </span>
</td> </td>
<td> <td>
<input max={date('Y-m-d')} name="birthday" value={gmdate("Y-m-d", $user->getBirthday())} type="date"/> <input max={date('Y-m-d')} name="birthday" value={gmdate("Y-m-d", $user->getBirthday())} type="date"/>

View file

@ -7,7 +7,7 @@
<div n:if="!isset($globalFeed)" style="float: right;"> <div n:if="!isset($globalFeed)" style="float: right;">
<span> <span>
<b> <b>
<a href="/feed/all">Все новости</a> <a href="/feed/all">{_"all_news"}</a>
</b> </b>
</span> </span>
</div> </div>
@ -29,7 +29,7 @@
<input type="submit" value="{_'write'}" class="button" /> <input type="submit" value="{_'write'}" class="button" />
<div style="float: right;"> <div style="float: right;">
<a href="javascript:void(document.querySelector(`input[name=_pic_attachment]`).click());"> <a href="javascript:void(document.querySelector(`input[name=_pic_attachment]`).click());">
Прикрепить изображение {_"attach_photo"}
</a> </a>
</div> </div>
</form> </form>
@ -45,7 +45,7 @@
{/foreach} {/foreach}
{include "../components/paginator.xml", conf => $paginatorConf} {include "../components/paginator.xml", conf => $paginatorConf}
<br/> <br/>
Количество постов на странице: {_"posts_per_page"}:
<select id="pageSelect"> <select id="pageSelect">
<option value="1">1</option> <option value="1">1</option>
<option value="5">5</option> <option value="5">5</option>

View file

@ -4,19 +4,19 @@
<img class="media" src="{$attachment->getURL()}" alt="{$attachment->getDescription()}" /> <img class="media" src="{$attachment->getURL()}" alt="{$attachment->getDescription()}" />
</a> </a>
{else} {else}
<a href="javascript:alert('Это вложение более недоступно');"> <a href="javascript:alert('{_"attach_no_longer_available"}');">
<img class="media" src="/assets/packages/static/openvk/img/camera_200.png" alt="Фотография недоступна" /> <img class="media" src="/assets/packages/static/openvk/img/camera_200.png" alt="{_"attach_no_longer_available"}" />
</a> </a>
{/if} {/if}
{elseif $attachment instanceof \openvk\Web\Models\Entities\Post} {elseif $attachment instanceof \openvk\Web\Models\Entities\Post}
{php $GLOBALS["_nesAttGloCou"] = (isset($GLOBALS["_nesAttGloCou"]) ? $GLOBALS["_nesAttGloCou"] : 0) + 1} {php $GLOBALS["_nesAttGloCou"] = (isset($GLOBALS["_nesAttGloCou"]) ? $GLOBALS["_nesAttGloCou"] : 0) + 1}
{if $GLOBALS["_nesAttGloCou"] > 2} {if $GLOBALS["_nesAttGloCou"] > 2}
<a href="/wall{$attachment->getPrettyId()}">Смотреть запись</a> <a href="/wall{$attachment->getPrettyId()}">{_"open_post"}</a>
{else} {else}
{include "post.xml", post => $attachment, compact => true} {include "post.xml", post => $attachment, compact => true}
{/if} {/if}
{else} {else}
<span style="color:red;">Не удалось отобразить это вложение. Возможно, БД несовместима с этой версией OpenVK.</span> <span style="color:red;">{_"version_incompatibility"}</span>
{/if} {/if}
{php $GLOBALS["_nesAttGloCou"] = NULL} {php $GLOBALS["_nesAttGloCou"] = NULL}

View file

@ -24,7 +24,7 @@
{elseif $model === "videos"} {elseif $model === "videos"}
<p>Будьте первым, кто оставит комментарий к этой видеозаписи</p> <p>Будьте первым, кто оставит комментарий к этой видеозаписи</p>
{else} {else}
<p>Будьте первым кто оставит комментарий к этой хуйне!</p> <p>Будьте первым кто оставит комментарий к этой дичи!</p>
{/if} --> {/if} -->
{_"comments_tip"} {_"comments_tip"}
{/if} {/if}

View file

@ -1,5 +1,5 @@
<div n:if="!($conf->page === 1 && $conf->count <= $conf->perPage)" class="paginator"> <div n:if="!($conf->page === 1 && $conf->count <= $conf->perPage)" class="paginator">
<hr/> <br/>
<center> <center>
<a n:if="$conf->page != 1" <a n:if="$conf->page != 1"
href="?{http_build_query(array_merge($_GET, ['p' => ($conf->page - 1)]), 'k', '&', PHP_QUERY_RFC3986)}" href="?{http_build_query(array_merge($_GET, ['p' => ($conf->page - 1)]), 'k', '&', PHP_QUERY_RFC3986)}"

View file

@ -16,7 +16,7 @@
</div> </div>
<div id="post-buttons" style="display: none;"> <div id="post-buttons" style="display: none;">
<div class="post-upload"> <div class="post-upload">
Вложение: <span>(unknown)</span> {_"attachment"}: <span>(unknown)</span>
</div> </div>
<div class="post-opts"> <div class="post-opts">
{if !is_null($thisUser) && $owner < 0 && $club->canBeModifiedBy($thisUser)} {if !is_null($thisUser) && $owner < 0 && $club->canBeModifiedBy($thisUser)}
@ -28,15 +28,15 @@
</script> </script>
<label> <label>
<input type="checkbox" name="as_group" onchange="onWallAsGroupClick(this)" /> От имени сообщества <input type="checkbox" name="as_group" onchange="onWallAsGroupClick(this)" /> {_"post_as_group"}
</label> </label>
<label id="forceSignOpt" style="display: none;"> <label id="forceSignOpt" style="display: none;">
<input type="checkbox" name="force_sign" /> Подпись автора <input type="checkbox" name="force_sign" /> {_"add_signature"}
</label> </label>
{/if} {/if}
<label> <label>
<input type="checkbox" name="nsfw" /> Содержит NSFW-контент <input type="checkbox" name="nsfw" /> {_"contains_nsfw"}
</label> </label>
</div> </div>
<input type="file" name="_pic_attachment" accept="image/*" style="display:none;" /> <input type="file" name="_pic_attachment" accept="image/*" style="display:none;" />

View file

@ -254,7 +254,7 @@
"main" = "Hauptseite"; "main" = "Hauptseite";
"contacts" = "Kontakte"; "contacts" = "Kontakte";
"avatar" = "Avatar"; "avatar" = "Avatar";
"privacy" = "privatsphäre"; "privacy" = "Privatsphäre";
"interface" = "oberfläche"; "interface" = "oberfläche";
"profile_picture" = "Profilbild"; "profile_picture" = "Profilbild";

View file

@ -47,6 +47,7 @@
"status" = "Status"; "status" = "Status";
"no_information_provided" = "No information provided."; "no_information_provided" = "No information provided.";
"deceased_person" = "Deceased person"; "deceased_person" = "Deceased person";
"none" = "none";
"relationship" = "Relationship"; "relationship" = "Relationship";
@ -115,10 +116,21 @@
"feed" = "News"; "feed" = "News";
"publish_post" = "Add post"; "publish_post" = "Add post";
"all_news" = "All news";
"posts_per_page" = "Number of posts per page";
"attachment" = "Attachment";
"post_as_group" = "Post as group";
"add_signature" = "Add signature";
/* ^ can be translated as "author's signature". ^ */
"contains_nsfw" = "Contains NSFW content";
"nsfw_warning" = "This post may have NSFW-content"; "nsfw_warning" = "This post may have NSFW-content";
"report" = "Report"; "report" = "Report";
"attach_photo" = "Attach photo"; "attach_photo" = "Attach photo";
"no_posts_abstract" = "Nobody wrote anything here... At least."; "no_posts_abstract" = "Nobody wrote anything here... At least.";
"attach_no_longer_available" = "This attachment is no longer available.";
"open_post" = "Open post";
"version_incompatibility" = "This attachment could not be displayed. Probably the database is incompatible with the current version of OpenVK.";
/* Friends */ /* Friends */
@ -262,7 +274,7 @@
"main" = "Main"; "main" = "Main";
"contacts" = "Contacts"; "contacts" = "Contacts";
"avatar" = "Avatar"; "avatar" = "Avatar";
"privacy" = "privacy"; "privacy" = "Privacy";
"interface" = "Interface"; "interface" = "Interface";
"profile_picture" = "Profile picture"; "profile_picture" = "Profile picture";
@ -284,6 +296,10 @@
"search_for_groups" = "Search for groups"; "search_for_groups" = "Search for groups";
"search_for_people" = "Search for people"; "search_for_people" = "Search for people";
"search_button" = "Find"; "search_button" = "Find";
"results_zero" = "No results";
"results_one" = "$1 result";
"results_other" = "$1 results";
"privacy_setting_access_page" = "Who can view my page"; "privacy_setting_access_page" = "Who can view my page";
"privacy_setting_read_info" = "Who can see main information of my page"; "privacy_setting_read_info" = "Who can see main information of my page";
"privacy_setting_see_groups" = "Who can see my groups and meetings"; "privacy_setting_see_groups" = "Who can see my groups and meetings";

View file

@ -44,6 +44,7 @@
"status" = "Статус"; "status" = "Статус";
"no_information_provided" = "Информация отсутствует."; "no_information_provided" = "Информация отсутствует.";
"deceased_person" = "Страница покойного человека"; "deceased_person" = "Страница покойного человека";
"none" = "отсутствует";
"years" = "лет"; "years" = "лет";
"relationship" = "Семейное положение"; "relationship" = "Семейное положение";
@ -114,10 +115,20 @@
"wall_many" = "$1 записей"; "wall_many" = "$1 записей";
"wall_other" = "$1 записей"; "wall_other" = "$1 записей";
"all_news" = "Все новости";
"posts_per_page" = "Количество записей на странице";
"attachment" = "Вложение";
"post_as_group" = "От имени сообщества";
"add_signature" = "Подпись автора";
"contains_nsfw" = "Содержит NSFW-контент";
"nsfw_warning" = "Данный пост может содержать 18+ контент"; "nsfw_warning" = "Данный пост может содержать 18+ контент";
"report" = "Пожаловаться"; "report" = "Пожаловаться";
"attach_photo" = "Прикрепить фото"; "attach_photo" = "Прикрепить фото";
"no_posts_abstract" = "Здесь никто ничего не написал... Пока."; "no_posts_abstract" = "Здесь никто ничего не написал... Пока.";
"attach_no_longer_available" = "Это вложение больше недоступно.";
"open_post" = "Открыть запись";
"version_incompatibility" = "Не удалось отобразить это вложение. Возможно, база данных несовместима с текущей версией OpenVK.";
/* Friends */ /* Friends */
@ -307,6 +318,12 @@
"search_for_groups" = "Поиск групп"; "search_for_groups" = "Поиск групп";
"search_for_people" = "Поиск людей"; "search_for_people" = "Поиск людей";
"search_button" = "Найти"; "search_button" = "Найти";
"results_zero" = "Ни одного результата";
"results_one" = "Один результат";
"results_few" = "$1 результата";
"results_many" = "$1 результатов";
"results_other" = "$1 результатов";
"privacy_setting_access_page" = "Кому в интернете видно мою страницу"; "privacy_setting_access_page" = "Кому в интернете видно мою страницу";
"privacy_setting_read_info" = "Кому видно основную информацию моей страницы"; "privacy_setting_read_info" = "Кому видно основную информацию моей страницы";
"privacy_setting_see_groups" = "Кому видно мои группы и встречи"; "privacy_setting_see_groups" = "Кому видно мои группы и встречи";