On Mar31, 10:10pm, "hamdy.a.farag" <[email protected]> wrote:
> Hi
>
> I'm having a problem that was repeated too much
> sometimes the translation file , got messy while updating it with new
> translations
> translations are shifted from their proper place and thus you got un
> proper translations
> This also may have some side effects like making the whole application
> fail
>
> consider that case :
>
> this line is in my model
>
>  requires=[IS_LENGTH(maxsize=8000, minsize=1,
> error_message=str(T('Enter details between %(min)s and %(max)s
> characters')))]
>
> In my tranlsation file I've something like :
>
> Enter image max size %(maxsize)s
> Enter image max size %(maxsize)s  -> should be replaced by translation
>
> Enter details between %(min)s and %(max)s characters
> Enter details between %(min)s and %(max)s characters -> should be
> replaced by translation
>
> Now what happens if the lines are shifted while making an update :
>
> you get something like:
>
> Enter image max size %(maxsize)s
> ------------------------------------------
>
> Enter details between %(min)s and %(max)s characters
> Enter image max size %
> (maxsize)s                                           --> see this ?
> this causes error
>
> Now the solution is to revert the translation to the latest commit and
> re-translating
>
> Is any body experienced this before ?


I experienced that before, I mentioned that here [1], later Massimo
fixed it here [2]. So I suggest you should firstly make sure you use
latest version of web2py as well as its appadmin. If problem still
exist, please provide a way to reproduce your problem, and don't
forget to mention your web2py version also. Good luck.

Regards,
Iceberg

[1]: https://groups.google.com/group/web2py/msg/94ab1188910ae303
[2]: 
http://code.google.com/p/web2py/source/detail?r=5dda104570c4b881b3cbefa352b2966d539fee3f

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to