Translation in Asset Admin for cs_CZ, sk_SK #934

Closed
JStika opened this Issue Feb 10, 2014 · 1 comment

Projects

None yet

3 participants

@JStika
JStika commented Feb 10, 2014

I cannot find where is string "Are you sure you want to delete this record?" has to be translated, when user click to delete file.

I find In /cms/javascript/AssetAdmin.js is code:
$('.AssetAdmin.cms-edit-form .action.gridfield-button-delete').entwine({
onclick: function(e) {
var msg;
if(this.closest('.ss-gridfield-item').data('class') == 'Folder') {
msg = ss.i18n._t('AssetAdmin.ConfirmDelete');
} else {
msg = ss.i18n._t('TABLEFIELD.DELETECONFIRMMESSAGE');
}
if(!confirm(msg)) return false;

            this.getGridField().reload({data: [{name: this.attr('name'), value: this.val()}]});
            e.preventDefault();
            return false;
        }
    });

But translated not loaded:

"TABLEFIELD.DELETECONFIRMMESSAGE": "Are you sure you want to delete this record?"

nor

"AssetAdmin.ConfirmDelete": "Are you sure you want to delete this record?"

Why?

@simonwelsh simonwelsh added the 3.1 label Mar 16, 2014
@chillu
Member
chillu commented Aug 31, 2016

We've completely rewriting AssetAdmin in 4.x (see https://github.com/silverstripe/silverstripe-asset-admin). If you think this is still an issue in 4.x (currently the master branch), please reopen an issue on the other repo. Sorry for the long radio silence here.

@chillu chillu closed this Aug 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment