Hi all, Sorry if I didn't explain myself clearly, I will try to do it better. It will be nice to contribute something to Django.
What I a propose is to provide a view to retrieve the i18n translations catalog as JSON, this is something that was requested in the ticket: https://code.djangoproject.com/ticket/22404 It could be useful for third party applications and client libraries. The JSON response of the view will have the form: { //translations catalog catalog:{ //a simple translation entry 'translate this':'traduce esto', //translation with plural form 'one plural sample': [ 'un ejemplo de plural', 'muchos ejemplos de plural' ] }, //expression for the plural index //when null -> 'n>1?1:0' plural: null, //formats used by the locale formats: { "DATETIME_FORMAT": "N j, Y, P", "DATE_FORMAT": "N j, Y", "DECIMAL_SEPARATOR": ".", ... } } These are basically the 3 elements used by the javascript functions of the i18n view *javascript_catalog* to perform the translations. Please, let me know what do you think. Regards, Manolo Ramirez T. On Friday, August 1, 2014 2:43:58 PM UTC-4, Manolo Gabriel Ramirez Torrico wrote: > > Hi all, > > I would like to contribute with this feature, you can see the proposal in > #22404 <https://code.djangoproject.com/ticket/22404>. > If you agree with the idea I could start writing the documentation. > > Regards, > > Manolo Ramirez T. > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/e0d3f8c0-30e2-4257-aafd-4a3244dbab0c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
