Re: [SMW-devel] Language environment

2008-03-18 Thread cnit
> You were not wrong. > In fact, what you just said--the "global" declaration--was the one thing > that I had not thought to include in my object-method code. When I > declared $wgLanguageCode as a global variable, I gained access to it. So > now my repetition of Julian or Gregorian dates display

Re: [SMW-devel] Language environment

2008-03-16 Thread Temlakos
S Page wrote: > >> What is the scope of $wgLanguageCode? > > It's a wiki global, hence "wg". If you want to access a $wg value, > just declare > global $wgLang; > at the top of your function, don't pass it around. You *may* be able > to get away without this global line for some $wg variab

Re: [SMW-devel] Language environment

2008-03-16 Thread S Page
Temlakos wrote: > Can an SMW custom data type access any variable holding a code for the > language of the wiki that SMW is running in? I want my custom data type > to output tooltip dates in the language of the wiki. Thus far I can get > it to recognize an annotated Julian or Gregorian date by

[SMW-devel] Language environment

2008-03-15 Thread Temlakos
Everyone: Can an SMW custom data type access any variable holding a code for the language of the wiki that SMW is running in? I want my custom data type to output tooltip dates in the language of the wiki. Thus far I can get it to recognize an annotated Julian or Gregorian date by remembering