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

Add Auto Translation insert at end of file rosetta.js #226

Open
Rocky771 opened this issue Aug 7, 2019 · 0 comments
Open

Add Auto Translation insert at end of file rosetta.js #226

Rocky771 opened this issue Aug 7, 2019 · 0 comments

Comments

@Rocky771
Copy link

Rocky771 commented Aug 7, 2019

Django 2.2.4
django-rosetta 0.9.3

$('div.submit-row p.paginator').append( $("<b id='mytrans'>Copy everything (only to empty)</b>").css({'margin-left': '50px', 'border': '1px solid #ca361d', 'padding': '7px 10px', 'border-radius': '5px', 'cursor': 'pointer'}).click(function(event) { $('table#result_list tbody tr').each(function(index, el) { if ( $(this).find('td.translation textarea').val() == '' ) { $(this).find('td.translation textarea').val( $.trim( $(this).find('td.original span.message').text() ) ); } }); }) );

https://yadi.sk/a/TtzXGmFscZ8-Fw

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