[ckan-dev] Localization issue for message "File upload too large"

Stefan Oderbolz stefan.oderbolz at liip.ch
Wed Dec 2 06:14:17 UTC 2015


Hi Dominik,

You need to change Line 262 (
https://github.com/ckan/ckan/blob/91e41b2e68faa3df5296a632f4862f5a55e69e62/ckan/lib/uploader.py#L262)
as well as the string occurs there for a second time.

- Stefan

On Tue, Dec 1, 2015 at 3:55 PM, Dominik Kapišinský <dkapisinsky at gmail.com>
wrote:

> Hi to everyone,
>
> I would like to localize string which is located in this file:
> https://github.com/ckan/ckan/blob/master/ckan/lib/uploader.py#L166 .
> For this purpose I did the following changes:
> 1. I added this line at the start of the file uploader.py : from
> ckan.common import _
> 2. I changed the line 166 to this form: {self.file_field: [_('File upload
> too large')]}
> 3. I generated new  .pot, .po and .mo file, everything was OK.
>
> As the result, I still get this error message in english when a resource
> larger than resource limit is uploaded. In general, localization in CKAN
> works fine for me. Could you help me please?
>
> Thanks in advance.
>
> Dominik
>
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>


-- 
Liip AG  // Limmatstrasse 183 //  CH-8005 Zürich
Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20151202/63a5a3e2/attachment-0003.html>


More information about the ckan-dev mailing list