mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Wall: Translate the post attachment menu
This commit is contained in:
parent
a31655cf2d
commit
c4303ad566
4 changed files with 10 additions and 4 deletions
|
@ -55,7 +55,7 @@
|
||||||
<input type="submit" value="{_'write'}" class="button" />
|
<input type="submit" value="{_'write'}" class="button" />
|
||||||
<div style="float: right; display: flex; flex-direction: column;">
|
<div style="float: right; display: flex; flex-direction: column;">
|
||||||
<a href="javascript:void(u('#post-buttons{$textAreaId} #wallAttachmentMenu').toggleClass('hidden'));">
|
<a href="javascript:void(u('#post-buttons{$textAreaId} #wallAttachmentMenu').toggleClass('hidden'));">
|
||||||
Прикрепить
|
{_attach}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div id="wallAttachmentMenu" class="hidden">
|
<div id="wallAttachmentMenu" class="hidden">
|
||||||
|
@ -65,11 +65,11 @@
|
||||||
</a>
|
</a>
|
||||||
<a href="javascript:void(document.querySelector('#post-buttons{$textAreaId} input[name=_vid_attachment]').click());">
|
<a href="javascript:void(document.querySelector('#post-buttons{$textAreaId} input[name=_vid_attachment]').click());">
|
||||||
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/mimetypes/application-vnd.rn-realmedia.png" />
|
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/mimetypes/application-vnd.rn-realmedia.png" />
|
||||||
Прикрепить видео
|
{_attach_video}
|
||||||
</a>
|
</a>
|
||||||
<a n:if="$graffiti ?? false" href="javascript:initGraffiti({$textAreaId});">
|
<a n:if="$graffiti ?? false" href="javascript:initGraffiti({$textAreaId});">
|
||||||
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/actions/draw-brush.png" />
|
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/actions/draw-brush.png" />
|
||||||
Нарисовать граффити
|
{_draw_graffiti}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -39,7 +39,7 @@ function handleUpload(id) {
|
||||||
|
|
||||||
function initGraffiti(id) {
|
function initGraffiti(id) {
|
||||||
let canvas = null;
|
let canvas = null;
|
||||||
let msgbox = MessageBox("Нарисовать граффити", "<div id='ovkDraw'></div>", ["Сохранить", "Отменить"], [function() {
|
let msgbox = MessageBox(tr("draw_graffiti"), "<div id='ovkDraw'></div>", [tr("save"), tr("cancel")], [function() {
|
||||||
canvas.getImage({includeWatermark: false}).toBlob(blob => {
|
canvas.getImage({includeWatermark: false}).toBlob(blob => {
|
||||||
let fName = "Graffiti-" + Math.ceil(performance.now()).toString() + ".jpeg";
|
let fName = "Graffiti-" + Math.ceil(performance.now()).toString() + ".jpeg";
|
||||||
let image = new File([blob], fName, {type: "image/jpeg", lastModified: new Date().getTime()});
|
let image = new File([blob], fName, {type: "image/jpeg", lastModified: new Date().getTime()});
|
||||||
|
|
|
@ -168,7 +168,10 @@
|
||||||
"contains_nsfw" = "Contains NSFW content";
|
"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" = "Attach";
|
||||||
"attach_photo" = "Attach photo";
|
"attach_photo" = "Attach photo";
|
||||||
|
"attach_video" = "Attach video";
|
||||||
|
"draw_graffiti" = "Draw graffiti";
|
||||||
"no_posts_abstract" = "Nobody wrote anything here... So far.";
|
"no_posts_abstract" = "Nobody wrote anything here... So far.";
|
||||||
"attach_no_longer_available" = "This attachment is no longer available.";
|
"attach_no_longer_available" = "This attachment is no longer available.";
|
||||||
"open_post" = "Open post";
|
"open_post" = "Open post";
|
||||||
|
|
|
@ -171,7 +171,10 @@
|
||||||
"contains_nsfw" = "Содержит NSFW-контент";
|
"contains_nsfw" = "Содержит NSFW-контент";
|
||||||
"nsfw_warning" = "Данный пост может содержать 18+ контент";
|
"nsfw_warning" = "Данный пост может содержать 18+ контент";
|
||||||
"report" = "Пожаловаться";
|
"report" = "Пожаловаться";
|
||||||
|
"attach" = "Прикрепить";
|
||||||
"attach_photo" = "Прикрепить фото";
|
"attach_photo" = "Прикрепить фото";
|
||||||
|
"attach_video" = "Прикрепить видео";
|
||||||
|
"draw_graffiti" = "Нарисовать граффити";
|
||||||
"no_posts_abstract" = "Здесь никто ничего не написал... Пока.";
|
"no_posts_abstract" = "Здесь никто ничего не написал... Пока.";
|
||||||
"attach_no_longer_available" = "Это вложение больше недоступно.";
|
"attach_no_longer_available" = "Это вложение больше недоступно.";
|
||||||
"open_post" = "Открыть запись";
|
"open_post" = "Открыть запись";
|
||||||
|
|
Loading…
Reference in a new issue