Thursday, May 11 - 0.2.11 Released, support for WebServices (SOAP), I18n, and File-based Caching

thread: 12 messages  |  last: about 5 years ago  |  started: thursday, may 11, 2006, 4:25 pm pdt


#1  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Thursday, May 11, 2006, 4:25 PM PDT

I'm happy to announce that 0.2.11 has just been released, adding support for SOAP-based Web Services, Internationalization, and File-based Caching.

There isn't much documentation on QCache yet, but it's really simple and straightfoward, and it is heavily used by QI18n and QSoapService, so feel free to look around at the code to find out more.

The examples site has been updated with examples for Internationalization and SOAP Web Services.  See <http://examples.qcodo.com/examples/index.php/3> for more information.

Other changes including bug fixes as well as support for Print command shortcuts (again, see the above link for more information and examples).  And one other thing that was actually added in 0.2.10 (but i think I forgot to mention it) is a new QWaitIcon control.  See <http://examples.qcodo.com/examples/basic_ajax/wait_icon.php> for more info.

For Users who are Upgrading

There are several changes to files outside of qcodo core, so if you are performing a /includes/qcodo upgrade from a previous version, please note the following additional changes:
** add a directory /includes/i18n
** add a directory /includes/cache, and be sure that the webservice process has access to read/write it
** some of the codegen templates have changed (no subtemplates have changed) -- so if you are overriding some of the templates, be sure to do a diff between your custom and the new core templates to see what needs to be updated

The folowing changes have been made to support internationalization and translation.  If you are not planning on adding i18n support to your website, feel free to ignore:
** /form_drafts/index.php
** /includes/qform/QListBox.php
** /includes/qform/QPaginator.php

Lastly...

We need your help!  If you have any language experience in a language other than English =), we could use your help in translating the core language files in /includes/qcodo/i18n to other langauges.  Note: even though there is a spanish (es.po) file in there, it also needs to be updated -- my own spanish is very broken, and so the spanish language file could probably be updated quite a bit, as well. =)

Also, a shout-out/thanks to Tompaw, Escape (the other Mike H.) and Martin for all your help/suggestions/feedback on the design-level stuff for i18n and webservices.

And as always, please post with feedback!

#2  |  Martin Kronstad (Mjoendalen) Norway Qcodo Core Contributor
Friday, May 12, 2006, 1:00 AM PDT

Great news!

I uploaded the norwegian translation here: http://www.qcodo.com/download.php/24/no.zip

Maybe we should have a seperate place in downloads for languagefiles? (Maybe even the posibillity for translator to replace files when they are updated?)

I tested the SOAP stuff on my server http://faktura.box3.prosjektweb.net/test_soap.php <-- GREAT NEWS!

#3  |  Slammer (The Netherlands, Enschede)
Friday, May 12, 2006, 1:22 AM PDT

This is great news!!! SOAP support, I am very glad you implemented it Mike!

I will try it out with Java as soon as possible.

Many thanks!

#4  |  Mike Hostetler (Denver, CO) United States of America Qcodo Administrator
Friday, May 12, 2006, 8:29 AM PDT

Mike-

Great job!  This will be pretty cool.  I'm off to upgrade!

The other Mike H.  :-)

#5  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Friday, May 12, 2006, 11:23 AM PDT

A quick update... i've patched it per suggestions at <http://www.qcodo.com/forums/topic.php/515/1>.  It's now released as 0.2.11a.

#6  |  Nino Dafonte (London)
Monday, May 15, 2006, 8:01 AM PDT

Hi Mike!

first of all, congratulations for qcodo.
I'm testing it, trying to finish my first qcodo web-app.

I'm a spanish programmer working in London now.
If you need help with Spanish language, don't hesitate to contact with me.

best regards

#7  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Monday, May 15, 2006, 10:17 AM PDT

Yes, if you could update the es.po file that's included... my spanish is very poor, and so there are probably a lot of mistakes in there. =)

Feel free to upload any changes to the Language Files section on the Downloads page. <http://www.qcodo.com/downloads/>

#8  |  Wolfgang Reinhardt (Paderborn, Germany)
Tuesday, May 16, 2006, 4:14 PM PDT

Hi all,

i'm overwhelmed by all the possibilities Qcodo offers. Actually i'm trying to change the displayed language by click on a country flag. Everything works fine with a * QServerAction . But when I use a * QAjaxAction the only thing happening is the spinner showing up, but the language does not change. Can anyonegive me a hint?

Some Code-snippets:

//only the spinner shows up
$this->imgDE = new QImageButton($this);
$this->imgDE->CausesValidation = false;
$this->imgDE->AlternateText = 'German';
$this->imgDE->ImageUrl = '../images/flags/de.png';
$this->imgDE->ActionParameter = 'de';
$this->imgDE->AddAction(new QClickEvent(), new QAjaxAction('changeLang'));

//this one works fine    
$this->imgFR = new QImageButton($this);
$this->imgFR->CausesValidation = false;
$this->imgFR->AlternateText = 'French';
$this->imgFR->ActionParameter = 'fr';
$this->imgFR->ImageUrl = '../images/flags/fr.png';
$this->imgFR->AddAction(new QClickEvent(), new QServerAction('changeLang'));

//in the .inc 
//works not
<?php $this->imgDE->Render('AlternateText="' QApplication::Translate('German'). '"'); ?>
//works
<?php $this->imgFR->Render('AlternateText="' QApplication::Translate('French'). '"'); ?>

If you need help with translating the en.po to de.po feel free to contact me.

Wolle

#9  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Tuesday, May 16, 2006, 9:32 PM PDT

unfortunately, there is only limited support for translation via AJAX.  Templates do not get re-run during AJAX calls.

So if you want to have things retranslated via AJAX, you will have to manually update the things like AlternateText property on your QImageButtons in the AjaxAction method, itself.

If you've made a de.po translation, feel free to put it up in the Language Files section in the Downloads section.

#10  |  Hunter Jensen (San Diego, CA) United States of America Qcodo Core Contributor
Thursday, May 25, 2006, 4:46 PM PDT

I'm not sure if it is this version or one of the past two, but when upgrading, in addition to replacing the includes/qcodo directory and the files Mike listed above, you also need to replace /includes/qform/assets/calendar.js if you want to use the QCalender object after upgrading.

-- Hunter



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.