Using german lang cdn

Using german lang cdn

Heart1010Heart1010 Posts: 21Questions: 2Answers: 0
edited February 2014 in DataTables 1.10
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

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Thanks for pointing this out. Two errors here (on my part):

    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
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    The language files all now have `.json` counterparts which I will deploy to the can very shortly.

    Allan
  • Heart1010Heart1010 Posts: 21Questions: 2Answers: 0
    The german values (http://cdn.datatables.net/plug-ins/505bef35b56/i18n/German.json) should be changed from
    [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
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Thanks - fixed here: https://github.com/DataTables/Plugins/blob/master/i18n/German.lang .

    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
  • Heart1010Heart1010 Posts: 21Questions: 2Answers: 0
    Sure...

    Send a pull request with updated german.lang file https://github.com/DataTables/Plugins/pull/43
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Thanks for this :-)

    Allan
This discussion has been closed.