Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Embed in post' is not translated: #17

Open
inliquid opened this issue Jul 22, 2014 · 2 comments
Open

'Embed in post' is not translated: #17

inliquid opened this issue Jul 22, 2014 · 2 comments

Comments

@inliquid
Copy link

See the screenshot:

x

At the same time 'Delete' is translated.

Here is 'definitions.Attachments.php'

$definitions["Attach a file"] = "Прикрепить файл";
$definitions["Drop files to upload"] = "Перетащите сюда файлы для загрузки";
$definitions["Embed in post"] = "Встроить в сообщение";
$definitions["message.attachmentNotFound"] = "Этот файл вам недоступен. Возможно, он отсутствует, либо у вас нет прав для его просмотра";

@inliquid
Copy link
Author

Small comment -> translation doesn't work only when you just upladed new file, when you edit existing post, it works.

@inliquid
Copy link
Author

inliquid commented Aug 1, 2014

/addons/plugins/Attachments/resources/attachments.js:39

.html('<a href="#" class="control-delete" title="'+T("Delete")+'" data-id="'+responseJSON.attachmentId+'"><i class="icon-remove"></i></a> <strong>' + file Name + '</strong> <span class="attachment-controls"><a href="#" class="control-embed" title="'+T("Embed in post")+'" data-id="'+responseJSON.attachmentId+'"><i class="icon-external-link"></i></a></span>');

Please consider also adding quotes to -> "'+T("Delete")+'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant