Buttons.bootstrap.js ColVis missing caret
Buttons.bootstrap.js ColVis missing caret
lazzy
Posts: 21Questions: 8Answers: 0
Hi, i see Buttons ColVis is dropdown-menu, how can i add <span class="caret"/> after title 'Column visibility'?
How can i help you translate to another language ? i the code i see dt.i18n( 'buttons.colvis', 'Column visibility' ) ; dt.i18n( 'buttons.copy', 'Copy' ) ... but in http://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json it isn't there!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Tanslations are stored here - any additional translations are very welcome!
Add the
<span class="caret"/>
to thetext
option for the button, which will be shown in the button.Allan
https://github.com/DataTables/Plugins/blob/master/i18n/English.lang.
it's very old version i think, where is the text like buttons.copy ... ? i don't see another text, can you list all text missing i can help 3 langues Français Espagnol Vietnamese
The English language file only contains the text for the core DataTables strings. The
buttons.copy
(etc) strings are defined in Buttons, which is a plug-in for DataTables.The original language strings for the extensions reside with the extensions.
These are all the ones in the Buttons extension:
Regards,
Allan
Here is my translate
French
dt.i18n( 'buttons.collection', 'Collection' );
dt.i18n( 'buttons.pageLength', {
dt.i18n( 'buttons.print', 'Imprimer' );
dt.i18n( 'buttons.colvis', 'Affichage des colonnes <span class="caret"/>' );
dt.i18n( 'buttons.colvisRestore', "Restaurer l'affichage" );
dt.i18n( 'buttons.collection', 'Collection <span class="caret"/>' );
dt.i18n( 'buttons.copy', 'Copier' );
dt.i18n( 'buttons.copyTitle', 'Copier dans le presse-papier' ),
dt.i18n( 'buttons.copySuccess', {
dt.i18n( 'buttons.copyKeys',
dt.i18n( 'buttons.copyTitle', 'Copier dans le presse-papier' )
dt.i18n( 'buttons.csv', 'CSV' );
dt.i18n( 'buttons.excel', 'Excel' );
dt.i18n( 'buttons.pdf', 'PDF' );
Vietnamese
dt.i18n( 'buttons.collection', 'Kết hợp' );
dt.i18n( 'buttons.pageLength', {
dt.i18n( 'buttons.print', 'In' );
dt.i18n( 'buttons.colvis', 'Hiển thị cột' );
dt.i18n( 'buttons.colvisRestore', 'Khôi phục cột' );
dt.i18n( 'buttons.collection', 'Kết hợp <span class="caret"/>' );
dt.i18n( 'buttons.copy', 'Sao chép' );
dt.i18n( 'buttons.copyTitle', 'Dán vào bộ nhớ' ),
dt.i18n( 'buttons.copySuccess', {
dt.i18n( 'buttons.copyKeys',
dt.i18n( 'buttons.copyTitle', 'Dán vào bộ nhớ' )
dt.i18n( 'buttons.csv', 'CSV' );
dt.i18n( 'buttons.excel', 'Excel' );
dt.i18n( 'buttons.pdf', 'PDF' );
Espanol
dt.i18n( 'buttons.collection', 'Colección' );
dt.i18n( 'buttons.pageLength', {
dt.i18n( 'buttons.print', 'Imprimir' );
dt.i18n( 'buttons.colvis', 'Visibilidad de la columna' );
dt.i18n( 'buttons.colvisRestore', 'Restaurar visibilidad' );
dt.i18n( 'buttons.collection', 'Colección <span class="caret"/>' );
dt.i18n( 'buttons.copy', 'Copia' );
dt.i18n( 'buttons.copyTitle', 'Copiar a portapapeles' ),
dt.i18n( 'buttons.copySuccess', {
dt.i18n( 'buttons.copyKeys',
dt.i18n( 'buttons.copyTitle', 'Copiar a portapapeles' )
dt.i18n( 'buttons.csv', 'CSV' );
dt.i18n( 'buttons.excel', 'Excel' );
dt.i18n( 'buttons.pdf', 'PDF' );
Wonderful - thanks for this. i'll get it integrated into the language files.
Allan