#MAPBENDER IRC Log - 2008-06-24

For logs after Feb 3, 2007, all times are GMT-8. Prior logs are GMT-9.
Back to Logs
02:57:47 mandsch: Testbaudson: got one minute with the locale stuff for me?
02:58:40 Testbaudson: yes
02:58:52 mandsch: ok
02:59:07 mandsch: mod_printPDF
02:59:21 mandsch: I have it working to be translated
02:59:46 mandsch: but only when i call new Mb_locale
02:59:59 mandsch: otherwise is does not work
03:02:10 Testbaudson: is the session variable set?
03:02:35 Testbaudson: $_SESSION["mb_lang"]
03:05:47 Testbaudson: ok, I checked the code...
03:06:05 Testbaudson: so you need Mb_locale in every script that uses gettext l10n
03:07:59 mandsch: sorry was on the phone
03:08:28 mandsch: ok
03:09:20 mandsch: and do you think to hook such an iframe to the eventLocalize
03:09:50 mandsch: it would be enough to have the registered function call sth. like frame.reload( ) ?
03:20:02 : * Testbaudson is back
03:20:05 Testbaudson: sorry for the delay
03:20:29 Testbaudson: the easiest thing would be to reload the frame
03:20:38 Testbaudson: we want to get rid of frames anyway...
03:20:49 Testbaudson: and if we do the refactoring, we can switch to ajax l10n
03:21:10 Testbaudson: but for now, reloading will be fine
03:21:16 mandsch: ok, sounds good
03:21:27 mandsch: easy to implement for my JS knowledge ;- )
03:21:57 mandsch: one thing: it would be even better to tranlsate it in printPDF.conf
03:22:06 mandsch: since this is where all the strings are stored
03:22:25 mandsch: unfortunately, i get a pdf error if i do it that way
03:23:41 mandsch: I will look into that, but the errors in pdf are always of the type "unknown object has caused unknown error ..."
03:25:10 mandsch: ok, so now i'll hop off for lunch... maybe later, cu
04:47:08 mandsch: Testbaudson: great, reload of the printPDF frame works!
04:47:30 Testbaudson: mandsch, good news :- )
04:48:05 Testbaudson: btw, did you check out the new tool in trunk?
04:48:12 mandsch: although i don't understand, hwo to use the event.register with these stupid calls to JS functions in another frame ...
04:48:34 mandsch: i did it iwth the deprecated registerL10n ...
04:48:50 : * Testbaudson can take a look at the code later...
04:49:31 mandsch: no, no, i will search for an appropriate example in the code ...
04:50:11 Testbaudson: instead of "registerL10n" you just need to write "<event_name>.register"
04:50:22 Testbaudson: that should do the trick...
04:51:16 mandsch: yeah, i dtried that, but if i want to pass sth. like window.frames['printPDF'].mod_printPDF_translate( );
04:51:23 mandsch: it's not working
04:52:04 Testbaudson: then try this:
04:52:15 Testbaudson: .register( function ( ) {
04:52:22 Testbaudson: mod_printPDF_translate( );
04:52:23 Testbaudson: }
04:52:30 Testbaudson: )
04:53:05 Testbaudson: this should execute the code in the scope of the frame
04:53:24 mandsch: ok, that was the question i was just typing ...
04:54:25 mandsch: works like a charm
04:54:36 Testbaudson: great
04:54:39 mandsch: THX
04:55:02 Testbaudson: it's nice to use these anonymous functions...
04:55:17 mandsch: I will have to work through the event code to understand it really
04:55:28 Testbaudson: because even if you pass them to other functions, their scope remains the same
04:55:42 mandsch: aah ...
04:55:52 Testbaudson: you might want to look up "closure"
04:56:03 : * Testbaudson is in nerd mode
04:56:10 mandsch: great, thanks for the tip
04:56:14 mandsch: :- )
04:57:32 Testbaudson: mandsch, btw, did you check out the new tools in trunk?
04:57:48 mandsch: not yet ...
04:58:00 Testbaudson: if you do, you have to execute an SQL first...
04:58:07 Testbaudson: called update_2.6.sql
04:58:16 Testbaudson: in the /db/update folder
04:58:27 : * Testbaudson will send this info to dev later
04:58:32 mandsch: ok, thx
04:59:06 Testbaudson: go to "edit gui elements", then hit the button "arrange"
04:59:47 mandsch: I'm really eager to see this is action ...
08:00:47 spsneo: Testbaudson: Finally I am back
08:00:52 spsneo: Testbaudson: hello
08:01:03 spsneo: It seems i have missed a lot
08:01:07 spsneo: i missed two meetings
08:01:12 spsneo: anything special
08:01:18 spsneo: anyways i'll check the logs
08:01:27 spsneo: I am totally fine now
08:03:47 Testbaudson: hi spsneo
08:03:56 spsneo: Testbaudson: hi
08:04:00 Testbaudson: good to hear you're back
08:04:08 spsneo: I am totally fine now
08:04:18 spsneo: Will join today evening onwards
08:05:08 Testbaudson: good
08:05:26 Testbaudson: let me know if you need anything
08:05:44 spsneo: ya sure
08:05:59 spsneo: anyways i will continue on that db update soon now
08:06:09 spsneo: as i have to compensate for last week and a half
08:07:50 spsneo: Testbaudson: I also informed about my absence to _wolf_
08:08:00 spsneo: is it ok?
08:08:28 Testbaudson: yes, but I guess it's ok if you talk just to me
08:08:49 spsneo: Testbaudson: i thought he is the soc admin so I just informed him
08:08:55 spsneo: Anyways ok
08:09:03 spsneo: Thanks for your cooperation.
08:09:11 spsneo: I was panicing all these days!
08:09:25 Testbaudson: take it easy, still plenty of time left
08:09:57 spsneo: I am not afraid of that, I am sure I'll complete it
08:10:09 spsneo: I was just worrying about my absence
08:13:58 spsneo: Testbaudson: wolf jsut suggested me to go through Drupal's update script
08:27:14 Testbaudson: spsneo: why not
08:27:36 spsneo: Testbaudson: Ya i'll go through it
08:27:40 spsneo: to get some idea
08:28:57 Testbaudson: let us know in your report on friday
08:29:12 spsneo: Testbaudson: sure
08:29:17 spsneo: Testbaudson: i need to leave now
08:29:23 spsneo: as i have to rush for dinner
08:29:26 Testbaudson: thanks and bye
08:29:31 spsneo: thanks for your support!
08:29:33 spsneo: bye