• Resolved vendeka

    (@vendeka)


    Hi,

    I would like to translate ‘Copy, Print, Show/Hide Columns’ buttons into my language. I can be able to translate rest of terms in datasheet display but couldn’t find where to change those buttons.

    Furthermore, how can I provide you my updated translation for your plugin ( datatables-tr-TR.json file ) ?

    Thank you

    https://ww.wp.xz.cn/plugins/inline-google-spreadsheet-viewer/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Meitar

    (@meitar)

    I would like to translate ‘Copy, Print, Show/Hide Columns’ buttons into my language. I can be able to translate rest of terms in datasheet display but couldn’t find where to change those buttons.

    The “Copy,” “Print,” etc. buttons are Flash-based so the only way to translate them right now is through the custom button text feature, described here. You can either put the text in the “DataTables default object” setting in the plugin’s settings screen to change all the tables on your site at once or use the datatables_table_tools attribute in a shortcode to change only that one table.

    how can I provide you my updated translation for your plugin ( datatables-tr-TR.json file ) ?

    The datatables translation files are maintained upstream, so please submit DataTables translations to that project’s maintainer.

    For translations of Inline Google Spreadsheet Viewer options and help text and other textual UI elements, please submit gettext .po files or use the online editor for this project at Transifex. Thanks in advance for the contribution! 🙂

    Thread Starter vendeka

    (@vendeka)

    Hi,

    From plugin’s settings screen, I try below setting but it refuses to save:

    {
    "dom": 'T<"clear">lfrtip',
    "tableTools": {
    "aButtons": [
    {
    "sExtends": "copy",
    "sButtonText": "Copy to clipboard"
    },
    {
    "sExtends": "csv",
    "sButtonText": "Save to CSV"
    }
    }
    ]
    }
    }

    I prefer to make sitewide setting but I couldn’t make it work.

    Thank you for your support!

    Plugin Author Meitar

    (@meitar)

    You’re not able to save that because that’s not a valid JSON object. Notice that the dom value is using single-quotes, not double-quotes, and you have an extra } after the aButtons member property. I think you want this.

    {
        "dom": "T<'clear'>lfrtip",
        "tableTools": {
            "aButtons": [
                {
                    "sExtends": "copy",
                    "sButtonText": "Copy to clipboard"
                },
                {
                    "sExtends": "csv",
                    "sButtonText": "Save to CSV"
                }
            ]
        }
    }
    Thread Starter vendeka

    (@vendeka)

    Hi,

    I am trying to change ‘Show/Hide Colums’ text using below config but it is not working:

    {
        "dom": "TC<'clear'>lfrtip",
        "colVis": {
            "buttonText": "Change "
        }
    }

    The config is correct and I checked here which should be ok.

    I appreciate your kind help.

    Thank you

    Plugin Author Meitar

    (@meitar)

    I’ve updated the plugin to version 0.9.9.2, which enables the functionality you’re trying to use.

    Unfortunately, the colVis extension doesn’t actually support the defaults object natively, so I’ve monkey-patched the DataTables initialization script this plugin uses to look for a defaults object property keyed with colVis and to insert it into all DataTables-enhanced tables’s init objects. Hopefully this will be harmless but if there are other problems, please do let me know.

    Thread Starter vendeka

    (@vendeka)

    Hi,

    Thanks for quick update.

    It seems working without any problem so far.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Translation’ is closed to new replies.