Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.php > #3602
| Path | csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | de.comp.lang.php |
| Subject | Re: private property |
| Date | Fri, 11 Dec 2015 16:23:18 +0100 |
| Organization | PointedEars Software (PES) |
| Lines | 35 |
| Message-ID | <1504210.brG0uro8Ys@PointedEars.de> (permalink) |
| References | <n4bpsd$ous$1@news.albasani.net> <n4bvin$3e0$1@news.albasani.net> <n4c4ak$cd5$1@news.albasani.net> <56699AEC.6010200@arnowelzel.de> <n4dsii$ofg$2@news.albasani.net> <1t566a7ca3i6799n3e8%sfroehli@Froehlich.Priv.at> |
| Reply-To | Thomas 'PointedEars' Lahn <php@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1449847400 640 eJwFwQEBwDAIAzBL0JWCnTGOfwlP4sj1kgoxNnZYZn1ciZsw7FPTA/xsykfVaWjth5Gz7g8DXhBd (11 Dec 2015 15:23:20 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Fri, 11 Dec 2015 15:23:20 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwFwYEBwDAEBMCVkPdknKD2H6F3fqjsAJ3w9e1PLyMLT3O6Kg0xd9vMGpSPkzkJaFAX9aYjZcQO5G2X/1cuFZI= |
| Cancel-Lock | sha1:YnfnpdBujNaHUK/nHGivdVsQpH8= |
| X-NNTP-Posting-Host | eJwFwYEBwDAEBMCVxON1HBL2H6F3jjhxaeFhvr4iOMuOrPsRGHSasCBbqVVCF5Q+ZXOgb34LaxC5 |
| Xref | csiph.com de.comp.lang.php:3602 |
Show key headers only | View raw
Stefan Froehlich wrote: > On Fri, 11 Dec 2015 08:04:51 Jan Novak wrote: >> > Wenn es Dir zu umständlich ist, dass bei show() jedesmal zu übergeben, >> > dann baue halt eine Methode, mit der man $_lang und $_rootdir einmalig >> > setzen kann und speichere das dann lokal in der Klasse. >> Dann übergebe ich es aber doch wieder, jedesmal beim erstellen ... > > Nimm gettext für die Mehrsprachigkeit, ACK. > dann bindest Du die jeweilige Sprachvariante 1x mit bindtextdomain() ein > und brauchst Dich im restlichen Code nicht mehr darum kümmern, solange Du > Deine Texte mit _(...) erzeugst. Das sollte man nicht tun, denn dieser Ansatz ist von der aktuellen Locale nur wählbar aus den auf dem Web-Server installierten Locales abhängig und somit weder thread-sicher noch portabel. Besser ist es, die Klasse Zend\I18n\Translator\Translator und eine diesen benutzende eigene Übersetzungsfunktion zu verwenden; siehe auch <http://pointedears.de/wsvn/LCARS/trunk/global.php> > Etwas abstrakter betrachtet ist das zwar auch nichts anderes, als > eine globale Variable - aber da das im Code nicht mehr auftaucht, > meckert keiner darüber :-) Fhcsal :) -- PointedEars Zend Certified PHP Engineer Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to de.comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar
private property Jan Novak <repcom@gmail.com> - 2015-12-10 13:06 +0100
Re: private property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-10 14:09 +0100
Re: private property Niels Braczek <nbraczek@freenet.de> - 2015-12-10 14:43 +0100
Re: private property Jan Novak <repcom@gmail.com> - 2015-12-10 16:04 +0100
Re: private property Niels Braczek <nbraczek@freenet.de> - 2015-12-10 16:25 +0100
Re: private property Jan Novak <repcom@gmail.com> - 2015-12-11 08:06 +0100
Re: private property Arno Welzel <usenet@arnowelzel.de> - 2015-12-10 16:31 +0100
Re: private property Jan Novak <repcom@gmail.com> - 2015-12-11 08:04 +0100
Re: private property Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2015-12-11 07:37 +0000
Re: private property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-11 16:23 +0100
Re: private property Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2015-12-12 13:06 +0000
Re: private property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-12 16:32 +0100
Re: private property Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2015-12-17 17:40 +0000
Re: private property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-17 20:02 +0100
Re: private property Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2015-12-17 19:03 +0000
Re: private property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-17 20:52 +0100
Re: private property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-10 19:31 +0100
Re: private property Jan Novak <repcom@gmail.com> - 2015-12-11 08:03 +0100
Re: private property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-11 13:17 +0100
Re: private property Jan Novak <repcom@gmail.com> - 2015-12-14 08:06 +0100
Re: private property Jan Novak <repcom@gmail.com> - 2015-12-11 11:29 +0100
Re: private property Jan Novak <repcom@gmail.com> - 2015-12-11 11:39 +0100
Re: private property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-11 14:56 +0100
Re: private property Jan Novak <repcom@gmail.com> - 2015-12-14 08:15 +0100
csiph-web