Featured Post

Hello world!

Hello everyone! This is the first post in my blog. I hope you will find here something interesting, maybe even that what you have been looking. My blog is dedicated to some technical solutions used in Internet, but not only. You will find here some posts describing some current global, local and personal...

Read More

CSS and JavaScript files order in Zend Framework templates

Posted by evolic | Posted in Programming, Web development | Posted on 07-06-2013

Tags: , , , , , , , , , , ,

0

Today I would like to focus on one thing in Zend Framework (no matter if I talk about version 1.x or 2.x).

There is a problem with positioning CSS and JavaScript files in templates (using headLink() and headScript() helpers). I will demonstrate it in below samples and give the solution for that situation.

So let’s begin!

Localizing application in Zend Framework 2

Posted by Tomasz Kuter | Posted in Programming, Web development | Posted on 29-03-2013

Tags: , , , , , , , , , , ,

1

Today I would like to focus on translating application in Zend Framework 2.

Overview

By default, tutorial application has included Zend\I18n\Translator\Translator configuration in /module/Application/config/module.config.php as follow:

It has also attached translation files in gettext format under the /module/Application/language directory.

There is over a dozen files like en_US.mo and en_US.po. You can edit .PO files (gettext source) with Poedit – a free, open source and cross-platform gettext catalog editor.

.MO file is automatically created (compiled), when you save the .PO file.

Program has very intuitive interface and looks like that:

Poedit - main window

Poedit – main window

There was missing Polish translation, so I created it on my own.