Monday, June 2, 2008
By thomasw at 15:50:47
Hy interested ones,
it was a long journey but after almost one year two of my proposals to the ZF were accepted by the dev team.
Proposal 1:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Translate_Ini+-+Thomas+Weidner
This is a new adapter for Zend_Translate.
In future you will be able to have simple INI files to be used as translation source.
Not that I think that many people will use it, but from time to time it may be comfortable to have it. And INI files can be edited by customers very easy which makes them handy.
Proposal 2:
http://framework.zend.com/wiki/display/ZFPROP/Zend_File_Transfer+-+Thomas+Weidner
For this proposal the community waited about one year.
It integrates a standard way to handle file up and downloads supports many protocols and integrate several other benefits like filtering, processing and many more.
The INI adapter is almost finished and will be available in a few days when I have time.
The file transfer component will get my complete time after the coding standard has been finished. But it will not be available until the next release because it should stay a few weeks in the incubator for problem checking, bug fixing and possible improvements.
I’ll keep you informed as soon as I have new informations.
Greetings
Thomas
I18N Team Leader, Zend Framework
Friday, April 25, 2008
By thomasw at 20:22:28
Since the last few weeks I have been working hard on finishing a first draft of the ZF Coding Standard.
It’s almost finished and aims to force a equal codequality for the complete framework.
If you are interested you can already try it out.
* Download the actual trunk
* Install PHP_CodeSniffer from PEAR
* Look into Zend/incubator/tools/codingstandard for details
Actually it finds more than 160.000 errors, but you have to keep in mind that the coding standard I’ve created is really VERY strict.
It mocks about false whitespaces, about false parameter types, about missing brackets and much much more.
Until now I’ve adopted and created more than 80 different tests.
As the standard itself is for now not completly fixed and confirmed, this testbed is only a draft.
Feel free to give response to me over the I18N mailing list.
Greetings
Thomas
I18N Team Leader, Zend Framework
Thursday, April 10, 2008
By thomasw at 12:12:18
Actually there have been several discussions about API doc failures.
This was for me the reason to force the coding standard. I am actually working on a coding standard which does automatically check the whole framework and returns all failures which have been found.
By using CodeSniffer, which is a perfect tool for this purpose, and the existing coding standard which can be found on the ZF page, I already created several rules.
Running the test on the framework showed me that there is not really a coded standard… it’s more a “everyone does what he thinks to be the best” thing.
Until now there exist about 15 tests and I already found more than 70.000 failures and warnings.
But I must confess that I am pedantic on the rules.
For example: I integrated a test which looks if the indenting is 4 spaces or not… or if the keywords are written lowercase…
Details for this process can be found in these links:
http://framework.zend.com/wiki/display/ZFDEV/ZF Coding Standards (RC)
http://framework.zend.com/issues/browse/ZF-3027
http://framework.zend.com/issues/browse/ZF-3065
http://framework.zend.com/wiki/display/ZFDEV/PHP Coding Standard (draft)
Monday, March 17, 2008
By thomasw at 21:50:12
After a long, long work we are finaly ready to give you, the community of the Zend Framework, the next stable release 1.5
We have had a lot of work and also a lot of help. Several new features have been integrated.
To give you a short overview we have
* a new Zend_Form component
* a new Zend_Layout component
* new View and Action helpers for Ajax and other automatic formats like Json
* Support for Lucene 2.1
* LDAP and OpenID Adapters
* new Webservices for Technocrati, Nirvanix and SlideShare
From the I18N core the following things have been added:
* Zend_Translate - directory scanning for addTranslations which enabled module based translations
* Zend_Translate - added cache support
* Zend_Locale - Improved autodetection for *nix servers
* Zend_Date - ISO dates recognise and use timezone settings automatically
and about 20 issues and improvements were fixed and integrated since the last official release.
Of course this is not the end for us… it’s more a beginning.
A overview of my work for Zend Framework in the near ro middle future includes the following tasks:
* Zend_Translate
— allow automatic rerouting
— plural support
— new SQL adapter
* Zend_Locale
— allow overwriting of detected locales by default
* new Zend_Locale_Phone component
* new Zend_File_Transfer component
* codes and translatable exceptions for the complete framework
* force Zend_Db_Schema with Rob
So have fun with it…
Greetings
Thomas
I18N Team Leader, Zend Framework
By thomasw at 21:30:50
Hy fellows,
I have decided to have my blog also available through the technocrati web service
This will not only make this blog better known, but allows also to spread usefull informations about the I18N core of Zend Framework to a wider public.
Greetings
Thomas, I18N Team Leader of the Zend Framework
Saturday, March 8, 2008
By thomasw at 19:30:44
Hy fellows,
after a hard work and several changes I suceeded at last.
When the documentation for ZF is build, from now on also a CHM project file will be build.
This means that in a few days/weeks also a CHM docu could be available for Zend Framework.
The related issue is http://framework.zend.com/issues/browse/ZF-2454. The more of you vote for this the faster CHM docu will be available to public from the ZF homepage.
For all which can not wait just get the latest trunk version from SVN and see for the README file within the documentation for how to create the manual for yourself.
And as last service you can download the CHM help for the latest release 1.5 here for the
german language and the english language.
Greetings
Thomas
I18N Team Leader, Zend Framework
By thomasw at 10:28:26
Hy fellows,
the newest Version 1.5 for Zend Framework is waiting for release.
The code is already freezed and with all administrative work we will have it ready about monday 10.March.
Not only several bug fixes have been made, but also some feature enhancements and even new components.
To give you a small appetizer:
* New Zend_Service_Nirvanix component
* New Zend_Ldap component which fits to the new Zend_Auth_Adapter_Ldap component
* Couple of feature improvements for Zend_Form
* Several fixes for Zend_Controller
* and many many more
In sum I think there were about 70 issues fixed. Probably even more… I have lost the overview :-)
I hope you enjoy the new version and have fun with it.
Greetings
Thomas
I18N Team Leader, Zend Framework
Sunday, March 2, 2008
By thomasw at 19:57:05
Hy framework users…
Most of you are already using Zend Translate. Until now the option for scanning a directory for translation files was only available when creating the instance.
I added this feature now also for the addTranslation() method, which means that you are now able to add new directories afterwards. This feature is handy when you are working with a modul based implementation and have also the translations seperated per module.
For those who did not know this feature for now is here a short description:
Instead of adding several translations manually it’s much more convinient to have them added automatically by only one method call.
Depreciated way:
$translate = new Zend_Translate('gettext', '/my/proj/lang/en/proj.mo', 'en');
$translate->addTranslation('/my/proj/lang/de/proj.mo', 'de');
$translate->addTranslation('/my/proj/lang/fr/proj.mo', 'fr');
As you see we have only added three languages… if you are working with seperated translation you will probably have not only one file per language but more.
So it would be better to have this done by Zend_Translate itself… see the following code:
$translate = new Zend_Translate('gettext', '/my/proj/lang/', 'en',
array('scan' => Zend_Translate::LOCALE_DIRECTORY));
So what is now hapening in the background:
Zend_Translate recognises a directory instead of a file.
With the ’scan’ option we said that the locale/language is written in the directory name.
Zend_Translate will now search all sub-directories within the lang directory and add all found translations.
It uses the directory name as locale if it fits…
So a file ‘/my/proj/lang/de/proj.mo’ would be added within the locale ‘de’ because this directory is recognised as german locale and so on… it doesn’t matter how deep the directory structure is, all subdirectories will be searched.
This works not only with gettext but also with any other adapter like TMX, Array, Csv and so on… the only thing which has to fit is the name of the directory.
But there is also another way to get the name of the locale. It can be written within the filename.
'/my/proj/lang/myfile_de.mo'
'/my/file/lang/myfile-de.mo'
'/my/file/lang/myfile.de.mo'
All of this three ways of naming files will be recognised translation for the locale ‘de’.
To use this way of naming you will only have to use the ’scan’ option with the Zend_Locale::LOCALE_FILENAME constant.
Have fun with the framework.
Greetings
Thomas
I18N Team Leader of the Zend Framework
Saturday, March 1, 2008
By thomasw at 17:28:48
For interested people I attached a small description of changes between 1.0.3 and 1.0.4 of Zend Framework which are related to the I18N core:
All classes:
* Failed autodetection no longer throws a exception (seen under Ubutu in past)
Zend_Date:
* Timezones now work even if the new DateTime extension is not present (seen under PHP < 5.2 and self compiled Linux version)
* added a note about the ISO year and real year formats as both are often switched by users which produces unexpected behaviour
Zend_Locale:
* setting a default locale is now supported, default is “en” but it can be set to anything else
* included the new CLDR 1.5.1 and reworked the data classes which adds several new informations to be available… f.e. timezone for region, currency for language and much much more
* added detection for @ locales (f.e. de_DE@euro)
Zend_TimeSync:
* added a new component to syncronise the server time when there is no service available
Zend_Validate:
* added support for localized dates for Zend_Validate_Date
Zend_View_Helper_Translate:
* added a new View Helper for allowing translations from within the view
Informations for the new ZF 1.5 will come soon
Greetings
Thomas, I18N Team Leader Zend Framwork
Wednesday, February 27, 2008
By thomasw at 15:00:02
It has been annouced in the past, and now it’s reality.
A few hours ago the new version 1.0.4 of the Zend Framework has been released. It has been slightly improved and many bugfixes has been integrated.
With this release the version 1.0 comes to an end. This is the last release for 1.0.
But so time to be worry, the next release 1.5 is already looking out of the box. A release candidate can be downloaded and tested here.
Have fun with the new versions and features.
Greetings
Thomas
I18N Team Leader of the Zend Framework