This is a good idea. All you need to do is: T.current_languages=[]
in this way even english will require translation. Massimo On Nov 25, 11:30 am, Carlos <[email protected]> wrote: > Hi, > > Please let me know if the following makes sense: > > I want to implement internationalization using always keys (codes) for > all T() occurrences, instead of using strings corresponding to one > specific default language. > > I believe this is necessary (please correct me if I'm wrong) in the > following scenario: if I use 'en' as the default language and I wan to > use T('please enter your info'), then I can translate this string to > all other languages, BUT what would happen if I need to change the > translated string in english (e.g. from "please enter your info" to > "please type your info")?, then all other languages for that specific > translation will be gone (out or sync), correct?. > > If we use keys/codes (instead of a default language), and require to > translate ALL languages (including 'en'), then I could make this > change without affecting all other languages, right?. > > Do you see any problems with this approach?, do you have any > recommendations?. > > Thanks, > > Carlos > > On Nov 25, 10:36 am, mdipierro <[email protected]> wrote: > > > Not for T(variable) since variable is only defined at runtime. > > > On Nov 25, 10:24 am, Carlos <[email protected]> wrote: > > > > Hi Massimo, > > > > Thanks, it now works ok with T.force. > > > > Is there a way to automatically update multiple language files at once > > > with all these lazy T's?. > > > > Carlos > > > > On Nov 25, 10:00 am, mdipierro <[email protected]> wrote: > > > > > Update all languages will not catch this because this can only be > > > > caught at run-time. The string should be added in the language file > > > > when you run the action (and the browser set to the language needing > > > > translation). > > > > > try again, check the language file timestamp. If the file is not being > > > > updated, may be a permission issue. > > > > > On Nov 25, 9:48 am, Carlos <[email protected]> wrote: > > > > > > Hi, > > > > > > I am trying to make internationalization work with variables, in my > > > > > local environment on Win7, with web2py 1.89.1. > > > > > > For reference I have the following test controller: > > > > > > def xyz(): > > > > > x = 'xyz' > > > > > return T(x) > > > > > > But after calling that method, when I look at any of the language > > > > > files, the string 'xyz' is not there, even after executing "update all > > > > > languages". > > > > > > Am I doing anything wrong?. > > > > > > Thanks, > > > > > > Carlos > >

