diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-10-02 23:09:28 +0200 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-10-02 23:09:28 +0200 |
commit | 7abe1360b2426c87d32ea5beeb3e7adf31955060 (patch) | |
tree | 552b21004dcfbb961325a7e55469e7aae97a4772 /apps/files_external/js/google.js | |
parent | 68c8faf39ca02d1de260836ea67d6468d7a2064f (diff) | |
download | nextcloud-server-7abe1360b2426c87d32ea5beeb3e7adf31955060.tar.gz nextcloud-server-7abe1360b2426c87d32ea5beeb3e7adf31955060.zip |
l18n support added to files_external/js
Diffstat (limited to 'apps/files_external/js/google.js')
-rw-r--r-- | apps/files_external/js/google.js | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/apps/files_external/js/google.js b/apps/files_external/js/google.js index 7c62297df4d..0b3c314eb5d 100644 --- a/apps/files_external/js/google.js +++ b/apps/files_external/js/google.js @@ -3,7 +3,8 @@ $(document).ready(function() { $('#externalStorage tbody tr.OC_Filestorage_Google').each(function() { var configured = $(this).find('[data-parameter="configured"]'); if ($(configured).val() == 'true') { - $(this).find('.configuration').append('<span id="access" style="padding-left:0.5em;">Access granted</span>'); + $(this).find('.configuration') + .append('<span id="access" style="padding-left:0.5em;">'+t('files_external', 'Access granted')+'</span>'); } else { var token = $(this).find('[data-parameter="token"]'); var token_secret = $(this).find('[data-parameter="token_secret"]'); @@ -19,13 +20,15 @@ $(document).ready(function() { $(token_secret).val(result.access_token_secret); $(configured).val('true'); OC.MountConfig.saveStorage(tr); - $(tr).find('.configuration').append('<span id="access" style="padding-left:0.5em;">Access granted</span>'); + $(tr).find('.configuration').append('<span id="access" style="padding-left:0.5em;">'+t('files_external', 'Access granted')+'</span>'); } else { - OC.dialogs.alert(result.data.message, 'Error configuring Google Drive storage'); + OC.dialogs.alert(result.data.message, + t('files_external', 'Error configuring Google Drive storage') + ); } }); } else if ($(this).find('.google').length == 0) { - $(this).find('.configuration').append('<a class="button google">Grant access</a>'); + $(this).find('.configuration').append('<a class="button google">'+t('files_external', 'Grant access')+'</a>'); } } }); @@ -34,7 +37,7 @@ $(document).ready(function() { if ($(this).hasClass('OC_Filestorage_Google') && $(this).find('[data-parameter="configured"]').val() != 'true') { if ($(this).find('.mountPoint input').val() != '') { if ($(this).find('.google').length == 0) { - $(this).find('.configuration').append('<a class="button google">Grant access</a>'); + $(this).find('.configuration').append('<a class="button google">'+t('files_external', 'Grant access')+'</a>'); } } } @@ -65,10 +68,15 @@ $(document).ready(function() { if (OC.MountConfig.saveStorage(tr)) { window.location = result.data.url; } else { - OC.dialogs.alert('Fill out all required fields', 'Error configuring Google Drive storage'); + OC.dialogs.alert( + t('files_external', 'Fill out all required fields'), + t('files_external', 'Error configuring Google Drive storage') + ); } } else { - OC.dialogs.alert(result.data.message, 'Error configuring Google Drive storage'); + OC.dialogs.alert(result.data.message, + t('files_external', 'Error configuring Google Drive storage') + ); } }); }); |