Tag Archive

Zend_Translate with Dynamic Parameters

Published on 24 February, 2010 By Danny Froberg

Pas­cal Opitz posted a nice lit­tle snip­pet; Just a quick snip­pet to have dynamic para­me­ters in the under­score func­tion, with­out hav­ing to write sprintf every time. <?php class Trans­late extends Zend_Translate {   pub­lic func­tion _() {     $args = func_get_args();     $num = func_num_args();     $adapter = $this-&gt;getAdapter();     $args[0] = […]

Zend_Validate messages translated to Swedish

Published on 18 February, 2010 By Danny Froberg

Thomas Wei­d­ner com­mits the hackix.com Swedish trans­la­tions to trunk. Danny spent some time trans­lat­ing the ~200 val­i­da­tion mes­sages in /resources/languages/sv/Zend_Validate.php make sure to give them an eye over after your next trunk (1.10.2+) check­out and report any sug­ges­tions & feedback here.

& TMX adapter — Source language strings as id">Zend_Translate & TMX adapter — Source language strings as id

Published on 14 February, 2010 By Danny Froberg

Thomas Wei­d­ner describes some addi­tional func­tion­al­ity only avail­able from Zend Frame­work 1.10.2+ and for­ward, for those of us that do *not* wish to use a sep­a­rate mes­sage id/key but rather the source lan­guage string in the source code. Set the “useId” option to false. In this case the source lan­guage is used as mes­sage key […]

& Pootle">Translate Toolkit & Pootle

Published on 21 January, 2010 By Danny Froberg
This entry is part 1 of 1 in the series Trans­la­tion Tools

I’ve got a whole lot of ques­tions about what tools other than poedit that exists espe­cially for teams, so I’ll start going through and try to review tools avail­able and add them to the new Trans­la­tion Tools arti­cle series.

I hope you’ll find this useful.

Bootstrapping Zend_Translate with a LangSelector Plugin

Published on 17 January, 2010 By Danny Froberg
This entry is part 4 of 3 in the series Work­ing with Zend_Translate and Poedit

As an update to the method of hav­ing every­thing related to Zend_Translate and Zend_Locale in the Boot­strap, here is an alter­na­tive using an Con­troller Plu­gin that does the grunt work of val­i­dat­ing, select­ing and updat­ing the Zend_Locale, Zend_Registry & Zend_Session using Zend_Session_Namespace. And we are using poedit .po & .mo files as the source as usual.

How to make POEdit detect source strings in Zend Framework

Published on 16 January, 2010 By Danny Froberg
This entry is part 3 of 3 in the series Work­ing with Zend_Translate and Poedit

You will notice that once you have started trans­lat­ing an appli­ca­tion using poedit it’s quite a smooth process, what ham­pers the expe­ri­ence a lit­tle bit is the muti­tude of ways you can write code in Zend Frame­work, this is great in every way for devel­op­ers, but requires a bit of think­ing when you need to also trans­late all the UI strings.
So how do we make poedit detect the strings while mak­ing our code pretty?

Configuring Poedit for Zend Framework Projects

Published on 15 January, 2010 By Danny Froberg
This entry is part 1 of 3 in the series Work­ing with Zend_Translate and Poedit

There are a few steps you need to take to con­fig­ure poedit to work with a Zend Frame­work project prop­erly. I will take you through the con­fig­u­ra­tion process step by step, and in the end you should have a work­ing instal­la­tion.
In this tuto­r­ial we are on Win­dows, but the process is the same on Mac & Linux based sys­tems, and poedit even looks much the same on all platforms.

Bootstrap Zend_Translate

Published on 2 January, 2010 By Danny Froberg
This entry is part 2 of 3 in the series Work­ing with Zend_Translate and Poedit

A recur­ring prob­lem for site devel­op­ers is imple­ment­ing a solid way to cre­ate and main­tain mul­ti­lin­gual sites, this arti­cle series is my fee­ble attempt to guide you through how to quickly imple­ment the Zend_Translate in an Zend Frame­work 1.9.x site.
The pro­ce­dures and best prac­tices for this is unfor­tu­nately like train­ing a dog, every­one has a dif­fer­ent way of doing it and an opin­ion, so the meth­ods and code I show here are take out of appli­ca­tions that are run­ning in pro­duc­tion so if you have a bet­ter way of doing it please feel free to comment!.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes