
/* - ++resource++irisgmbh.theme.javascripts/editbar_translation_overwrites.js - */
/* Disabling translation machinery for editbar buttons and provide a language
   indepependent vocabulary.
*/

jq(document).ready(function disableTrans() {

    // temp until i18n is fixed:
    jq('.section-startpage-de span.exturl').text('Mehr...');
    jq('.section-startpage-es .exturl').text('Mas...');
    jq('.section-startpage-fr .exturl').text('Plus...');

    // edit menu main
    jq('#contentview-folderContents a').text('Folder Contents');
    jq('#contentview-view a').text('View');
    jq('#contentview-edit a').text('Edit');
    jq('#contentview-contentrules a').text('Rules');
    jq('#contentview-local_roles a').text('Sharing');
    jq('#contentview-criteria a').text('Criteria');
    jq('#plone-contentmenu-translate dt a span:first-child').text('Translate into...');
    jq('#plone-contentmenu-display dt a span:first-child').text('Display');
    jq('#plone-contentmenu-factories dt a span:first-child').text('Add new...');
    jq('#plone-contentmenu-workflow dt a span:first-child').text('State:');
    jq('#plone-contentmenu-actions dt a span:first-child').text('Actions');

    // tranlations
    jq('#_manage_translations span').text('Manage translations...');

    // display
    jq('#folder-folder_listing span').text('Standard view');
    jq('#folder-folder_summary_view span').text('Summary view');
    jq('#folder-folder_full_view span').text('All content');
    jq('#folder-folder_tabular_view span').text('Tabular view');
    jq('#folder-atct_album_view span').text('Album view');

    jq('#folderChangeDefaultPage span').text('Change content item as default view...');

    // actions
    jq('dd.actionMenuContent a#cut span').text('Cut');
    jq('dd.actionMenuContent a#copy span').text('Copy');
    jq('dd.actionMenuContent a#paste span').text('Paste');
    jq('dd.actionMenuContent a#delete span').text('Delete');
    jq('dd.actionMenuContent a#rename span').text('Rename');
    jq('dd.actionMenuContent a#iterate_checkout span').text('Check out');

    // add types
    jq('#image span').text('Image');
    jq('#file span').text('File');
    jq('#topic span').text('Collection');
    jq('#link span').text('Link');
    jq('#news-item span').text('News');
    jq('#folder span').text('Folder');
    jq('#document span').text('Page');
    jq('#event span').text('Event');

    // states
    jq('#edit-bar .state-published').text('Published');
    jq('#edit-bar .state-private').text('Private');
    jq('#edit-bar .state-pending').text('Pending');

    // workflow
    jq('#workflow-transition-publish span').text('Publish');
    jq('#workflow-transition-submit span').text('Submit for publication');
    jq('#workflow-transition-reject span').text('Send back');
    jq('#workflow-transition-retract span').text('Retract');
    jq('#advanced span').text('Advanced...');
});


