tag:blogger.com,1999:blog-3803541356848955053.post7678144439519591126..comments2016-05-03T15:48:23.166-07:00Comments on YJL: Using Django’s I18N in Google App EngineYu-Jie Linhttps://plus.google.com/115422682039760465813[email protected]Blogger21125tag:blogger.com,1999:blog-3803541356848955053.post-69226427403857516532012-11-01T10:23:24.980-07:002012-11-01T10:23:24.980-07:00If there are not compiled, then your script/Django...If there are not compiled, then your script/Django doesn&#39;t know about stuff conf. You didn&#39;t configure correctly, some code might be missed. That&#39;s all I can guess.<br /><br /><br />It&#39;s been a long time, GAE changes a lot, you may want to find GAE I18N support for newer Django, if there anyone has written about it.livibetterhttp://yjl.im/[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-13158456729986147572012-11-01T04:32:15.140-07:002012-11-01T04:32:15.140-07:00Thank you. I restart the dev server and it works f...Thank you. I restart the dev server and it works for your project. I tried to add internationalization to my own app but translations are not done, even the first time. I also notice that files inside &quot;conf&quot; folder are not compiled. When run app, normally Python files which are not for request handler must be compiled. Maybe it&#39;s the problem?Ismael Toéhttp://twitter.com/tomsyweb[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-17418989174513465712012-10-31T19:59:00.810-07:002012-10-31T19:59:00.810-07:00If you have read &quot;caching problem&quot; secti...If you have read &quot;caching problem&quot; section, you know I had also noticed the issue. (Note: this post was written long ago and some may not be same under the current GAE environment. I have not used I18N or GAE for long time.)<br /><br /><br />Restart the dev server. I guess instances will be ended under the current GAE after deployment, if not kill all the instances.livibetterhttp://yjl.im/[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-67949659290012715222012-10-31T15:58:33.710-07:002012-10-31T15:58:33.710-07:00I followed all these steps and got no error but I ...I followed all these steps and got no error but I have a problem. Strings are not translated. When I launched your project for the first time (smart-gk), strings were translated. But when I modify strings translation, nothing change. The old values are showed. Can you help me please?Ismael Toéhttp://twitter.com/tomsyweb[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-25479090663960137172011-03-31T06:10:32.573-07:002011-03-31T06:10:32.573-07:00It would be really helpful if this post can be upd...It would be really helpful if this post can be updated to the current django version (1.2) that is recommended by google using use_library.kvdbhttp://kvdb.net/blog/[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-5565328391900598402010-09-27T19:09:24.156-07:002010-09-27T19:09:24.156-07:00Sorry about dumb problems..... But I follow this t...Sorry about dumb problems..... But I follow this tips, and I got an error. When I try to access the page, I read a trace that ends with:<br><br>EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is undefined.<br><br>Do I need to start app engine setting enviroment variable PYTHONPATH like the folowing command?<br><br>$ PYTHONPATH=/home/hugo/bin/google_appengine/lib/django/ /home/hugo/bin/google_appengine/dev_appserver.py ./hugoeustaquio[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-59710546296787371222010-09-27T19:09:24.155-07:002010-09-27T19:09:24.155-07:00No, you don&#39;t need the PYTHONPATH. Do you code...No, you don&#39;t need the PYTHONPATH. Do you code run as described in Setting Up section?livibetterhttp://lmgtfy.com/?q=livibetter[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-31477689113682119552010-09-27T19:09:24.154-07:002010-09-27T19:09:24.154-07:00Hi im a bit slow on the uptake - can someone tell ...Hi im a bit slow on the uptake - can someone tell me - im using aptanna studio where and how do i run these python commands? if my app engine path is - D:/program files/google/google-appengine - <br>I have tried from the command prompt but that dosnt work<br>can someone give me some simple help on how i do this<br>many thxsspydre[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-6007136407729146702010-09-27T19:09:24.153-07:002010-09-27T19:09:24.153-07:00Here I follow Livebetter and additional explanatio...Here I follow Livebetter and additional explanation on Internationalization and Localization under the Google App Engine framework.Emmanuel Florenthttp://eflorent.blogspot.com/2010/08/internationalization-under-google-app.html[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-5189401084837063732010-09-27T19:09:24.152-07:002010-09-27T19:09:24.152-07:00http://eflorent.blogspot.com/2010/08/international...http://eflorent.blogspot.com/2010/08/internationalization-under-google-app.htmlEmmanuel Florent[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-75157713991099858332010-09-27T19:09:24.151-07:002010-09-27T19:09:24.151-07:00Very nice! Aion Gold You guys know what buy wow go...Very nice! <a href="http://www.lvinn.com" rel="nofollow">Aion Gold</a> You guys know what <a href="http://www.happyleveling.com" rel="nofollow">buy wow gold</a> you&#39;re doing in <a href="http://www.wow-power-leveling.eu" rel="nofollow">wow power leveling</a> designing <a href="http://www.lvinn.com/Allods-Online" rel="nofollow">Allods Gold</a> these <a href="http://www.bymmo.com/Allods-Online" rel="nofollow">Allods Gold</a> health status <a href="http://www.lvinn.com/Final-Fantasy-XI" rel="nofollow">ffxi gil</a> dashboards. Glad <a href="http://www.lvinn.com/Ever-Quest-2" rel="nofollow">EQ2 Gold</a> to see <a href="http://www.lvinn.com/Lord-of-The-Ring-Online-US" rel="nofollow">Lotro Gold</a> your taking <a href="http://www.lvinn.com/Maple-Story-USA" rel="nofollow">maple story mesos</a> transparency seriously, and recognizing <a href="http://www.lvinn.com/Runes-of-Magic" rel="nofollow">ROM Gold</a> the benefits of opening <a href="http://www.lvinn.com/EVE" rel="nofollow">eve isk</a> up to your users. It will be an interest case study <a href="http://www.lvinn.com/Lineage-II" rel="nofollow">Lineage 2 adena</a> to see how the (inevitable) next downtime event compares to the <a href="http://www.lvinn.com/Star-Wars-Galaxies" rel="nofollow">swg Credits</a> previous one now that this exists.rom goldhttp://www.runes-of-magic-gold.com/[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-20633023444322253502009-12-23T10:52:34.183-08:002009-12-23T10:52:34.183-08:00@BRAGA thanks again. I met that problem when I fir...@BRAGA thanks again. I met that problem when I firstly tried to make it work, therefore I put `zh_TW` in sample code. But I forgot to mention the point. Thanks again!livibetterhttp://www.blogger.com/profile/02968836669016971463[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-42266325285647136132009-12-23T08:00:33.159-08:002009-12-23T08:00:33.159-08:00Hi, thanks for the correction (the sample code in ...Hi, thanks for the correction (the sample code in Google Code is still not updated - documentation part).<br><br>I would like to add another note, that might be useful to other people. <br><br>I had hard time to make this solution work as the example above because of a stupid mistake: the language code syntax. <br><br>From HTML, the syntax is more commonly accepted as hyphen (-), such as pt-BR, ja-JP. The standard is registered at: http://www.rfc-editor.org/rfc/bcp/bcp47.txt (section 2.1 syntax)<br><br>However, Django understands underscore (_) ONLY instead. I don&#39;t know why this is hard-coded there (or if it has been fixed already in newer versions).BRAGA, Brunohttp://www.blogger.com/profile/13127775982897639612[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-74868072692795019182009-12-06T07:25:59.802-08:002009-12-06T07:25:59.802-08:00@BRAGA, Bruno, thanks for it! I have corrected it....@BRAGA, Bruno, thanks for it! I have corrected it.livibetterhttp://www.blogger.com/profile/02968836669016971463[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-47866812041723416852009-12-06T06:56:41.051-08:002009-12-06T06:56:41.051-08:00Simple correction to the post:The file is [compile...Simple correction to the post:<br><br>The file is [compile-messages.py] instead of [compile-message.py], as stated here.<br><br>Thanks for the post. It was very useful.BRAGA, Brunohttp://www.blogger.com/profile/13127775982897639612[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-22566189364426530472009-11-10T00:55:23.688-08:002009-11-10T00:55:23.688-08:00@make, have you set PYTHONPATH environment variabl...@make, have you set PYTHONPATH environment variable? You need to add additional path which points at the directory django locates in GAE SDK.<br><br>@redduck666, I don&#39;t know if it still can run on SDK (development server), but it has no problem on production server. My example still works.livibetterhttp://www.blogger.com/profile/02968836669016971463[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-55754641265517955012009-11-09T23:58:19.284-08:002009-11-09T23:58:19.284-08:00I have this error message.what can i do?Traceback ...I have this error message.<br>what can i do?<br><br>Traceback (most recent call last):<br> File &quot;C:\Program Files\Google\google_appengine\lib\django\django\bin\make-mess<br>ages.py&quot;, line 4, in &lt; module &gt;<br> from django.conf import settings<br>ImportError: No module named django.confmakehttp://make.myid.net/[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-47983386232840021362009-08-23T00:44:39.684-07:002009-08-23T00:44:39.684-07:00is it just me or this doesn&#39;t work any more wi...is it just me or this doesn&#39;t work any more with 1.2.3 version of GAE SDK?redduck666http://www.blogger.com/profile/12674980690715200267[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-43131318549565759742009-04-27T23:37:00.000-07:002009-04-27T23:37:00.000-07:00I compared it with Babel. The message stores are c...I compared it with Babel. The message stores are compatible though the request handler here is preferred. <a href="http://classifiedsmarket.appspot.com/li?hl=zh-tw" rel="nofollow"> My app </a> updates messages only with compile-messages and we can get common messages from the sdk and add on more to the predefined. ThanksNick E RTZhttp://www.blogger.com/profile/06730592898172718889[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-49156223478903039432009-03-23T10:45:00.000-07:002009-03-23T10:45:00.000-07:00I am sure that {% trans &quot;message&quot; %} wil...I am sure that {% trans &quot;message&quot; %} will be recognized by make-message.py as well as _() in Python scripts. And make-message.py will put all into one .po. As of BabelDjango, I am sorry that I don&#39;t want to dig into that. Currently, I am satisfied with Django&#39;s I18N.<br><br>When I wrote &quot;There isn&#39;t a good solution for I18N in Google App Engine if Google doesn&#39;t natively support it.&quot; That is simply because GAE takes some parts from different open source projects and also made some changes for GAE. For example, the template from Django. Now if you want to use nearly all support Django&#39;s I18N, you have to go through this blog posting, which includes workarounds in different level. Can you guarantee any framework&#39;s I18N support could work just out-of-box? That&#39;s why I said we need the native support from GAE, which implies that GAE has integrated its own I18N or some open source&#39;s I18N.livibetterhttp://www.blogger.com/profile/02968836669016971463[email protected]tag:blogger.com,1999:blog-3803541356848955053.post-91766189815700486732009-03-23T10:22:00.000-07:002009-03-23T10:22:00.000-07:00I have read this post, and it seems to be useful. ...I have read this post, and it seems to be useful. <b>Could you compare this approach with <a href="http://babel.edgewall.org/wiki/BabelDjango" rel="nofollow"> BabelDjango </a>?</b> For example, most of the time templates include information include contextual data. Some others, because of the nature of Django templates, some visual aspects in a site are hidden outside templates since they&#39;r coded in <i>Python</i> scripts. <b>Is there a way to extract all this messages at once in order to maintain a single catalog <i>PO</i> file?</b> Besides I am not sure about this funny <i>{% trans &quot;message&quot; %}</i> since <b>everything inside templates is a potential target for translations</b>, so they could be full of <i>{% trans &quot;message&quot; %}</i> blocks. IMO <a href="genshi.edgewall.org" rel="nofollow">Genshi</a> templates are cleaner because of this, and its quite easy.<br><br>Yes I know ... you still need to upload babel to GAE ... but I dont agree with you when you say that <i>&quot;There isn&#39;t a good solution for I18N in Google App Engine if Google doesn&#39;t natively support it.&quot;</i> since you can always upload the one that better fits your particular purposes and, you know ... just use it. The only thing left is that yes ... if Google supports a better approach natively, users preserve their quotas ... <b>;)</b>Simelo ... alias Olemis Lang.http://www.blogger.com/profile/04747982540124100015[email protected]