Re: [web2py] Re: Clean up unused string

2011-09-28 Thread Richard Vézina
I think I forgot to mention... Take care if you clear the whole file, you will probably lost your good translation... So maybe make a copy of the file and then you can write a simple script that compare both dict the old one and the new generated dict store into tranlation file than import just t

Re: [web2py] Re: Clean up unused string

2011-09-28 Thread Thomas Bellembois
That is exactly what I needed ! Thanks a lot. Regards, Thomas Le 27/09/2011 22:52, Richard Vézina a écrit : And since the file is always rebuild... If he wants to clear old stuff he just can earase the entire file if he wants. Also, imagine you want to keep some translation into DB... You ca

Re: [web2py] Re: Clean up unused string

2011-09-27 Thread Richard Vézina
And since the file is always rebuild... If he wants to clear old stuff he just can earase the entire file if he wants. Also, imagine you want to keep some translation into DB... You can use something like that : # - # GET

Re: [web2py] Re: Clean up unused string

2011-09-27 Thread Richard Vézina
Web2py already add all the things put between the parantesis after the magic T() when you clic updates languages button from the admin... I think Thomas want to clean his language file from old entry or not translated ones... In the first case I see no easy way except someone as you said write a s

[web2py] Re: Clean up unused string

2011-09-27 Thread Alex
I guess it should be quite easy to write a script which scans all the py files for labels and compares them with the labels from the translation file. Maybe a script like this already exists? Alex On 27 Sep., 21:29, Richard Vézina wrote: > What do you mean, the untranslated yellow background ent