Path: csiph.com!goblin1!goblin2!goblin.stu.neva.ru!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Marek =?UTF-8?B?Tm/Fvmth?= Newsgroups: cz.comp.lang.python Subject: [python] =?utf-8?q?Flask=2C_Babel=2E_Je_=C5=99et=C4=9Bzec_v_katal?= =?utf-8?q?ogu=3F?= Date: Wed, 17 Feb 2016 14:34:34 +0100 Organization: Netfront http://www.netfront.net/ Lines: 22 Message-ID: NNTP-Posting-Host: 194.228.3.217 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: adenine.netfront.net 1455716083 64675 194.228.3.217 (17 Feb 2016 13:34:43 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Wed, 17 Feb 2016 13:34:43 +0000 (UTC) To: Konference PyCZ Received-SPF: none (Address does not pass the Sender Policy Framework) SPF=MAILFROM; sender=marek@tlapicka.net; remoteip=::ffff:93.93.32.2; remotehost=; helo=atlantis.mitranet.cz; receiver=hugo.zagamma.cz; X-Virus-Scanned: amavisd-new at mitranet.cz X-Spam-Flag: NO X-Spam-Score: -2.792 X-Spam-Level: X-Spam-Status: No, score=-2.792 tagged_above=-999 required=3.5 tests=[ALL_TRUSTED=-1, AWL=0.108, BAYES_00=-1.9] autolearn=ham autolearn_force=no X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) Received-SPF: none (Address does not pass the Sender Policy Framework) SPF=FROM; sender=marek@tlapicka.net; remoteip=::ffff:93.93.32.2; remotehost=; helo=atlantis.mitranet.cz; receiver=hugo.zagamma.cz; X-BeenThere: python@py.cz X-Mailman-Version: 2.1.20 Precedence: list List-Id: Konference PyCZ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com cz.comp.lang.python:3061 Ahoj. M=C3=A1m webovou aplikaci. Pou=C5=BE=C3=ADv=C3=A1m Flask a Babel pro lokali= zaci (Flask-Babel). M=C3=A1m p=C5=99edstavu, =C5=BEe pokud nebude =C5=99et=C4=9Bzec p=C5=99elo= =C5=BEen=C3=BD nab=C3=ADdnu u=C5=BEivateli online strojov=C3=BD p=C5=99eklad. K tomu pot=C5=99ebuji zjistit, jestli (True, False) je =C5=99et=C4=9Bzec p= =C5=99elo=C5=BEen=C3=BD do dan=C3=A9ho (nebo jin=C3=A9ho) jazyka. V=C3=ADte n=C4=9Bkdo pros=C3=ADm jak na to? Zkou=C5=A1el jsem babel.messages.catalog.Catalog().get('=C5=99et=C4=9Bzec') babel.messages.catalog.Message('=C5=99et=C4=9Bzec').check() ale o=C4=8Dividn=C4=9B d=C4=9Bl=C3=A1m n=C4=9Bco =C5=A1patn=C4=9B. D=C3=ADky,=20 Marek --- news://freenews.netfront.net/ - complaints: news@netfront.net ---