On Friday, February 20, 2015 at 6:34:07 PM UTC+1, Tom Tromey wrote:
> >>>>> "Axel" == axel-4eJtQOnFJqFBDgjK7y7TUQ  
> >>>>> <axel-4ejtqonfjqfbdgjk7y7...@public.gmane.org> writes:
> 
> Axel> We can only do this in the compiler if we actually compiled each
> Axel> localized version by itself.
> 
> Yes, I see what you mean.
> 
> Axel> The other "easy" way to reduce impact here is to reduce the use of
> Axel> nsTextFormatter, or create a replacement that doesn't crash. L20n
> Axel> would be one, or maybe there's C++ template stuff that can "taint"
> Axel> values with their original types.
> 
> I don't think there is a compile-time solution to this part of problem,
> because the substitution is done at runtime.
> 
> I think what is needed for this problem is a runtime check to verify
> that the translated format string is consistent with the "primary" one.
> 
> Tom

I do this to validate the thinking that I've applied to compare-locales, which 
does source-based checks of localizations against en-US. With that tool, I can 
strip bad strings during repackaging or language pack building.

That doesn't solve all problems, but gets use 90% there.

Axel
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to