Catalan translation for DataTables

  • Author: Sergi
  • Author: Oriol Roselló Castells
  • Author: angel.navas
  • Author: Daniel
  • Author: program
  • Author: Jordi Sacristan
Language Plug-in for Catalan

Use

There are a number of ways to make use of this translation in your DataTables.

Browser loading / CDN

Loading DataTables' language information directly in the browser is done with the .json file:

JS

You DataTables initialisation might look like this:

var table = new DataTable('#myTable', {
    language: {
        url: '//cdn.datatables.net/plug-ins/2.3.2/i18n/ca.json',
    },
});

ES modules

If you are using ES modules (e.g. with Vite or similar bundler), then can use the datatables.net-plugins package (.mjs files), which this translation is available in. In such a case your initialisation code might look like:

import DataTable from 'datatables.net';
import language from 'datatables.net-plugins/i18n/ca.mjs';

var table = new DataTable('#myTable', {
    language,
});

CommonJS

If you are using CommonJS (i.e. in an older version of Node or Webpack), the translation files can be loaded in from the .js files which will return the JSON structure for the translation (note that unlike the other DataTables plug-ins it does not return a function to be executed - just a JSON object):

var $ = require('jquery');
var DataTable = require('datatables.net')(window, $);
var language = require('datatables.net-plugins/i18n/ca.js');

var table = new DataTable('#myTable', {
    language: language,
});

Plug-in code


{
    "aria": {
        "sortAscending": ": Activa per ordenar la columna de manera ascendent",
        "sortDescending": ": Activa per ordenar la columna de manera descendent"
    },
    "autoFill": {
        "cancel": "Cancel·lar",
        "fill": "Omple totes les cel·les amb <i>%d<\/i>",
        "fillHorizontal": "Omple les cel·les horitzontalment",
        "fillVertical": "Omple les cel·les verticalment",
        "info": ""
    },
    "buttons": {
        "collection": "Col·lecció",
        "colvis": "Columnes",
        "colvisRestore": "Restaurar visibilitat",
        "copy": "Copia",
        "copyKeys": "Pressiona ctrl o poma + C per copiar les dades de la tabla al teu portapaper",
        "copySuccess": {
            "_": "%d files copiades",
            "1": "1 fila copiada"
        },
        "copyTitle": "Copia al portapapers",
        "createState": "Crear Estat",
        "csv": "CSV",
        "excel": "Excel",
        "pageLength": {
            "_": "Mostra %d files",
            "-1": "Mostra totes les files"
        },
        "pdf": "PDF",
        "print": "Imprimeix",
        "removeAllStates": "Borrar tots els Estats",
        "removeState": "Borra",
        "renameState": "Canviar nom",
        "savedStates": "Estats gravats",
        "stateRestore": "Restaura",
        "updateState": "Actualitza"
    },
    "datetime": {
        "amPm": {
            "0": "am",
            "1": "pm"
        },
        "hours": "Hora",
        "minutes": "Minuts",
        "months": {
            "0": "Gener",
            "1": "Febrer",
            "10": "Novembre",
            "11": "Desembre",
            "2": "Març",
            "3": "Abril",
            "4": "Maig",
            "5": "Juny",
            "6": "Juliol",
            "7": "Agost",
            "8": "Setembre",
            "9": "Octubre"
        },
        "next": "Següent",
        "previous": "Anterior",
        "seconds": "Segons",
        "unknown": "Desconegut",
        "weekdays": {
            "0": "Dg",
            "1": "Dl",
            "2": "Dt",
            "3": "Dc",
            "4": "Dj",
            "5": "Dv",
            "6": "Ds"
        }
    },
    "decimal": "",
    "editor": {
        "close": "Tancar",
        "create": {
            "button": "Nou",
            "submit": "Crear",
            "title": "Crear nova entrada"
        },
        "edit": {
            "button": "Editar",
            "submit": "Actualitzar",
            "title": "Editar entrada"
        },
        "error": {
            "system": "Ha ocurregut un error de sistema (Més informació)"
        },
        "multi": {
            "info": "El ítems seleccionats contenen diferents valors per aquesta entrada. Per editar i configurar tots els ítems per a aquesta entrada al mateix valor, prem o clica tabular aquí, sino, mantindran els seus valors individuals",
            "noMulti": "Aquest camp pot ser editat individualment; però no com a part d'un grup",
            "restore": "Desfés el canvi",
            "title": "Múltiples valors"
        },
        "remove": {
            "button": "Eliminar",
            "confirm": {
                "_": "Està segur de voler eliminar %d files?",
                "1": "Està segur de voler elmiminar 1 fila?"
            },
            "submit": "Eliminar",
            "title": "Eliminar"
        }
    },
    "emptyTable": "No hi ha registres disponibles en aquesta taula",
    "info": "Mostrant del _START_ al _END_ d'un total de _TOTAL_ registres",
    "infoEmpty": "No hi ha registres disponibles",
    "infoFiltered": "(filtrat de _MAX_ registres)",
    "infoPostFix": "",
    "infoThousands": ".",
    "lengthMenu": "Mostra _MENU_ registres",
    "loadingRecords": "Carregant...",
    "paginate": {
        "first": "Primer",
        "last": "Darrer",
        "next": "Següent",
        "previous": "Anterior"
    },
    "processing": "Processant...",
    "search": "Cerca:",
    "searchBuilder": {
        "add": "Afegir condició",
        "button": {
            "_": "Constructor de cerca (%d)",
            "0": "Constructor de cerca"
        },
        "clearAll": "Eliminar tot",
        "condition": "Condició",
        "conditions": {
            "array": {
                "contains": "Conté",
                "empty": "Buit",
                "equals": "Iguals",
                "not": "No",
                "notEmpty": "No buit",
                "without": "Sense"
            },
            "date": {
                "after": "Després",
                "before": "Abans",
                "between": "Entre",
                "empty": "Buit",
                "equals": "Iguals",
                "not": "No",
                "notBetween": "No entre",
                "notEmpty": "No buit"
            },
            "number": {
                "between": "Entre",
                "empty": "Buit",
                "equals": "Iguals",
                "gt": "Major que",
                "gte": "Mejor o igual a",
                "lt": "Menor que",
                "lte": "Menor o igual a",
                "not": "No",
                "notBetween": "No entre",
                "notEmpty": "No buit"
            },
            "string": {
                "contains": "Conté",
                "empty": "Buit",
                "endsWith": "Finalitza amb",
                "equals": "Iguals",
                "not": "No",
                "notContains": "No inclou",
                "notEmpty": "No buit",
                "notEndsWith": "No acaba amb",
                "notStartsWith": "No comença amb",
                "startsWith": "Comença amb"
            }
        },
        "data": "Data",
        "deleteTitle": "Esborrar regla de filtrat",
        "leftTitle": "Criteri de desindentació",
        "logicAnd": "I",
        "logicOr": "O",
        "rightTitle": "Criteri d'indentació",
        "title": {
            "_": "Constructor de cerca (%d)",
            "0": "Constructor de cerca"
        },
        "value": "Valor"
    },
    "searchPanes": {
        "clearMessage": "Esborrar tot",
        "collapse": {
            "_": "Panells de cerca (%d)",
            "0": "Panells de cerca"
        },
        "collapseMessage": "Colapsar Tot",
        "count": "{total}",
        "countFiltered": "{monstrat} ({total})",
        "emptyPanes": "No hi ha panells de cerca",
        "loadMessage": "Carregant panells de cerca",
        "showMessage": "Mostrar-ho tot",
        "title": "Filtres actius - %d"
    },
    "searchPlaceholder": "",
    "select": {
        "cells": {
            "_": "%d files seleccionades",
            "0": "",
            "1": "1 fila seleccionada"
        },
        "columns": {
            "_": "%d columnes seleccionades",
            "0": "",
            "1": "1 columna seleccionada"
        },
        "rows": {
            "_": "%d files seleccionades",
            "0": "",
            "1": "1 fila seleccionada"
        }
    },
    "stateRestore": {
        "creationModal": {
            "button": "Crear",
            "columns": {
                "search": "Cerca per columnes",
                "visible": "Visibilitat de columnes"
            },
            "name": "Nom",
            "order": "Ordenar",
            "paging": "Paginació",
            "scroller": "Posició Scroll",
            "search": "Bñusqueda",
            "searchBuilder": "Generador Búsquedes",
            "select": "Sel·lecció",
            "title": "Crear nou Estat",
            "toggleLabel": "Inclou:"
        },
        "duplicateError": "Ja existeix un estat amb aquest nom",
        "emptyError": "El nom no pot estar buit",
        "emptyStates": "No hi ha estats gravats",
        "removeConfirm": "¿Segur que vol eliminar aquest %s?",
        "removeError": "Error eliminant el registre",
        "removeJoiner": "i",
        "removeSubmit": "Eliminar",
        "removeTitle": "Borrar Estat",
        "renameButton": "Canviar nom",
        "renameLabel": "Nou nom per %s",
        "renameTitle": "Canviar nom"
    },
    "thousands": ".",
    "zeroRecords": "No s'han trobat registres"
}  

Contributing

If you have any ideas for how this plug-in can be improved please go to the translations plug-ins page and click the Contribute button to submit corrections and additions.