WordPress.org

Support

Support » Plugins and Hacks » WP-Filebase Download Manager » [Resolved] Changing language in DataTables

[Resolved] Changing language in DataTables

Viewing 2 replies - 1 through 2 (of 2 total)
  • phobophil

    @phobophil

    With help from this thread I could change the language of the data table http://wordpress.org/support/topic/plugin-wp-filebase-download-manager-styling-the-output-in-a-table

    But I still cannot get the javascript running. I think I have to put this code to my header.php

    <script type="text/javascript" src="jquery.dataTables.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $('#example').dataTable( {
                "oLanguage": {
                    "sUrl": "dataTables.german.txt"
                }
            } );
        } );
    </script>

    The text file “dataTables.german.txt” is placed in the root folder of my template (the header.php as well). Please help me, I feel like a DAU (luser).

    phobophil

    @phobophil

    Still no success!

    I inserted the code into my header.php
    The “jquery.dataTables.js” is loaded. But the language doesn´t change at all. Now it looks like this:

    <script type="text/javascript" src="/wp-content/plugins/wp-filebase/extras/jquery/dataTables/js/jquery.dataTables.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
    	$('#example').dataTable( {
    	    "oLanguage": {
    		"sUrl": "/wp-content/plugins/wp-filebase/extras/jquery/dataTables/js/dataTables.german.txt"
    	    }
    	} );
        } );
    </script>

    What is wrong… the path?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Changing language in DataTables’ is closed to new replies.
Skip to toolbar