Using german lang cdn
Using german lang cdn
Heart1010
Posts: 21Questions: 2Answers: 0
Hi,
I'm new to DataTables (v1.10) and want to use ther german lang cdn (http://next.datatables.net/plug-ins/i18n/German) in order to have german language. I tried:
[code] "language": {
"url": "//cdn.datatables.net/plug-ins/505bef35b56/i18n/German.lang"
}
[/code]
But that doesn't work.
How to use it correct?
Thanks
I'm new to DataTables (v1.10) and want to use ther german lang cdn (http://next.datatables.net/plug-ins/i18n/German) in order to have german language. I tried:
[code] "language": {
"url": "//cdn.datatables.net/plug-ins/505bef35b56/i18n/German.lang"
}
[/code]
But that doesn't work.
How to use it correct?
Thanks
This discussion has been closed.
Replies
1. The language file has a Javascript comment in it, which is not valid JSON. I need to strip that on CDN deploy. I have done so for the German language file for the moment, but all the others are as they were.
2. I hadn't enabled cross site domain support for the language files on the CDN server.
Both fixed for now (for this specific file): http://live.datatables.net/vig/2/edit . I'll make the required changes and do a new deploy for the language files soon. Thanks for letting me know about this.
Allan
Allan
[code]"sFirst": "Erster",
"sPrevious": "Zurück",
"sNext": "Nächster",
"sLast": "Letzter"
[/code]
to
[code]"sFirst": "Erste",
"sPrevious": "Zurück",
"sNext": "Nächste",
"sLast": "Letzte"
[/code]
(cutting that last "r" because in german it is "Nächste Seite" and not "Nächster Seite").
Thanks
Any change you might be willing to translate the missing strings as well? I've added a few new ones in the default English language file: https://github.com/DataTables/Plugins/blob/master/i18n/English.lang .
Specifically the `oAria` , `sEmptyTable` and `sLoadingRecords` options.
Allan
Send a pull request with updated german.lang file https://github.com/DataTables/Plugins/pull/43
Allan