*** [mharrison] has quit IRC | 00:16 | |
*** Roderick_ has quit IRC | 00:16 | |
*** mlinksva has quit IRC | 00:16 | |
*** CIA-86 has quit IRC | 00:16 | |
*** mlinksva has joined #cc | 00:17 | |
*** CIA-86 has joined #cc | 00:17 | |
*** akozak has quit IRC | 00:17 | |
*** kreynen has quit IRC | 00:17 | |
*** balleyne has quit IRC | 00:29 | |
*** Bovinity has quit IRC | 00:29 | |
*** stevel has quit IRC | 00:29 | |
*** oshani has quit IRC | 00:33 | |
*** JoiIto has joined #cc | 01:05 | |
*** jgay has joined #cc | 01:14 | |
*** nkinkade has left #cc | 01:32 | |
*** jgay has quit IRC | 01:33 | |
*** haoyu has joined #cc | 01:37 | |
*** NotADJ has joined #cc | 02:10 | |
*** NotADJ has quit IRC | 02:13 | |
*** TDJACR has quit IRC | 02:14 | |
*** TDJACR has joined #cc | 02:16 | |
*** TDJACR has quit IRC | 02:24 | |
*** TDJACR has joined #cc | 02:26 | |
*** TDJACR has quit IRC | 02:38 | |
*** TDJACR has joined #cc | 02:38 | |
*** Roderick_ has joined #cc | 02:47 | |
*** [mharrison] has joined #cc | 02:47 | |
*** bhy_ has joined #cc | 02:48 | |
*** JoiIto has quit IRC | 03:07 | |
*** bhy_ has quit IRC | 03:08 | |
*** bhy_ has joined #cc | 03:18 | |
*** JoiIto has joined #cc | 03:21 | |
*** JoiIto has quit IRC | 03:23 | |
*** mlinksva has quit IRC | 03:25 | |
*** JoiIto has joined #cc | 03:44 | |
*** isforinsects has joined #cc | 03:56 | |
*** NotADJ has joined #cc | 04:02 | |
*** bhy_ has quit IRC | 04:03 | |
*** NotADJ has quit IRC | 04:05 | |
*** oshani has joined #cc | 04:05 | |
*** TDJACR has quit IRC | 04:08 | |
*** oshani has quit IRC | 04:46 | |
*** isforinsects has quit IRC | 05:07 | |
*** JoiIto has joined #cc | 05:17 | |
*** Roderick_ has quit IRC | 06:11 | |
*** Roderick_ has joined #CC | 06:12 | |
*** JoiIto has quit IRC | 06:15 | |
*** JoiIto has joined #cc | 06:17 | |
*** JoiIto has quit IRC | 06:28 | |
*** bhy_ has joined #cc | 07:10 | |
*** sama has joined #cc | 07:23 | |
*** michi has joined #cc | 07:38 | |
*** pyrak has quit IRC | 08:28 | |
*** paroneayea has quit IRC | 08:31 | |
*** paroneayea has joined #cc | 08:31 | |
*** paroneayea has quit IRC | 09:03 | |
*** papyromancer_ has joined #cc | 09:47 | |
*** bhy_ has quit IRC | 10:13 | |
*** bhy_ has joined #cc | 10:24 | |
*** hellwrought has joined #cc | 10:52 | |
*** Code4Fun has joined #cc | 11:03 | |
*** Code4Fun has left #cc | 11:03 | |
*** sama has quit IRC | 11:13 | |
*** papyromancer has quit IRC | 11:22 | |
*** papyromancer has joined #cc | 11:23 | |
*** bhy_ has quit IRC | 11:51 | |
*** bhy_ has joined #cc | 12:22 | |
*** hellwrought has quit IRC | 12:36 | |
*** bhy_ has quit IRC | 13:04 | |
*** sama has joined #cc | 13:18 | |
*** JoiIto has joined #cc | 13:19 | |
*** kreynen has joined #cc | 13:20 | |
*** oshani has joined #cc | 13:23 | |
*** sama has quit IRC | 13:35 | |
*** sama has joined #cc | 13:36 | |
*** JoiIto has quit IRC | 13:56 | |
*** JoiIto has joined #cc | 14:04 | |
*** kreynen has quit IRC | 14:13 | |
*** JoiIto has quit IRC | 14:19 | |
*** CharelB has joined #cc | 14:35 | |
*** kreynen has joined #cc | 14:40 | |
*** paroneayea has joined #cc | 14:50 | |
*** michi has quit IRC | 14:55 | |
*** jgay has joined #cc | 14:56 | |
*** mlinksva has joined #cc | 14:58 | |
*** lotia has quit IRC | 15:03 | |
*** lotia has joined #cc | 15:03 | |
*** nathany has joined #cc | 15:24 | |
*** stevel has joined #cc | 15:31 | |
*** stevel has joined #cc | 15:32 | |
*** jgay has quit IRC | 15:46 | |
*** JoiIto has joined #cc | 15:53 | |
*** sama has quit IRC | 16:10 | |
*** JED3 has joined #cc | 16:13 | |
*** nkinkade has joined #cc | 16:19 | |
*** jgay has joined #cc | 16:23 | |
paroneayea | nathany: so I'm kind of at a loss as to why things aren't working... | 16:28 |
---|---|---|
nathany | paroneayea: "things"? :) | 16:28 |
paroneayea | it's compiling the .po -> mo files right, and it apparently loads the catalogs in the translationdomain | 16:28 |
paroneayea | but it doesn't render them as translations | 16:28 |
paroneayea | heh.. | 16:28 |
nathany | paroneayea: what makes you think it loads the catalogs? | 16:28 |
paroneayea | stepping through the code with pdb :) | 16:29 |
nathany | cool :) | 16:29 |
paroneayea | maybe the way I'm specifying the language to render into is incorrect | 16:29 |
paroneayea | I was reading chameleon/zpt/i18n.txt | 16:29 |
paroneayea | in that example, they create the mocktranslationdomain thingy, pass in target_language as an attribute | 16:30 |
paroneayea | and their example mocktranslationdomain looks at that | 16:30 |
nathany | one second, let me look | 16:30 |
paroneayea | kay | 16:30 |
nathany | ok, got it | 16:30 |
paroneayea | http://dpaste.org/4DET/ <- is what I've got | 16:30 |
nathany | looking... | 16:31 |
nathany | paroneayea: does PageTemplateFile have a target_language kwarg? | 16:32 |
nathany | or IIRC, does it just pass those kwargs in as available to the template? | 16:33 |
paroneayea | hm | 16:33 |
paroneayea | nope | 16:33 |
paroneayea | yeah | 16:33 |
paroneayea | to render() | 16:33 |
nathany | right | 16:34 |
paroneayea | it doesn't have such an arg in __init__() | 16:34 |
nathany | ok, one second, let me dig a little deeper | 16:34 |
paroneayea | def translate(msgid, mapping=None, context=None, target_language=None, | 16:35 |
paroneayea | default=None): | 16:35 |
nathany | right | 16:35 |
paroneayea | looks like target_language is intended to be part of itranslationdomain | 16:35 |
nathany | looking at http://svn.zope.org/zope.i18n/trunk/src/zope/i18n/translationdomain.py?rev=99163&view=auto | 16:35 |
paroneayea | so not just a one off there in their implementation | 16:35 |
nathany | well it's part of the translate call | 16:36 |
nathany | and if you look at the definition, it tries to fall back to negotiate | 16:36 |
nathany | i'm curious what chameleon passes in as the context | 16:36 |
nathany | IIRC we're using unzip=True for the buildout, right? | 16:36 |
paroneayea | ah interesting | 16:36 |
paroneayea | yeah | 16:36 |
nathany | if so, you can just go into def translate(...) and add a pdb call | 16:37 |
nathany | (or print statements) | 16:37 |
paroneayea | I just dumped import pdb; pdb.set_trace() in translationdomain.py translate() | 16:37 |
paroneayea | and it didn't pick up | 16:37 |
paroneayea | heh | 16:37 |
nathany | hrm | 16:37 |
paroneayea | I could be doing something wrong component-wise | 16:37 |
paroneayea | but, it looks right, and the domain does have it: | 16:38 |
paroneayea | (Pdb) domain._catalogs | 16:38 |
paroneayea | {'en_US': ['/home/cwebber/devel/cc.license-git/cc/license/i18n/en_US/cc.license.mo']} | 16:38 |
nathany | ok, that's a good sign | 16:39 |
nathany | paroneayea: can you try changing: | 16:39 |
nathany | component.provideUtility(domain, ITranslationDomain) | 16:39 |
nathany | to: | 16:39 |
nathany | component.provideUtility(domain, ITranslationDomain, name='cc.license') | 16:39 |
paroneayea | sure | 16:39 |
nathany | (i wonder if it's looking for a named utility) | 16:39 |
paroneayea | oh awesome | 16:40 |
paroneayea | heh, that makes it work :) | 16:40 |
paroneayea | well, that makes it hit translate() at least | 16:40 |
nathany | paroneayea: take a look at http://repoze.org/viewcvs/chameleon.zpt/trunk/src/chameleon/zpt/i18n.txt?rev=5786&view=auto | 16:41 |
nathany | it looks a lot more complete/verbose than the other docs | 16:41 |
paroneayea | cool | 16:41 |
paroneayea | and it works now! | 16:41 |
paroneayea | :) | 16:42 |
nathany | awesome :) | 16:42 |
nathany | glad to hear it | 16:42 |
paroneayea | although notably it isn't translating the strings that still have ${DYNAMIC_CONTENT} in them | 16:42 |
paroneayea | but at least running it through that system is now working | 16:42 |
nathany | paroneayea: yeah, I was afraid those might be problematic | 16:43 |
nathany | paroneayea: I have a possibly dumb idea | 16:44 |
paroneayea | :) | 16:44 |
paroneayea | what is it? | 16:44 |
nathany | I was going to suggest just putting ${LICENSE_URI} in the href in the template but then I realized that the engine won't know what to substitute there with a cooresponding i18n:name | 16:45 |
nathany | so nevermind, dumber than I thought | 16:45 |
* paroneayea forks chameleon.zpt, adds i18n:attribute_no_translate | 16:46 | |
paroneayea | well, as for realistic ideas | 16:46 |
paroneayea | you mentioned something about faking it out earlier | 16:46 |
nathany | paroneayea: right | 16:47 |
*** Bovinity has joined #cc | 16:47 | |
nathany | you can add a dummy span | 16:47 |
nathany | <span i18n:name="license_uri" tal:contents="license/uri"></span> | 16:47 |
nathany | and then possible ${license_uri} in the href | 16:48 |
nathany | so the big downside to this is that it breaks the "default" text | 16:48 |
nathany | so you always have to make sure it renders with a "translation" | 16:48 |
paroneayea | I'm still not totally sure I get it | 16:49 |
paroneayea | are we basically not putting html inside there then | 16:49 |
paroneayea | and instead manually in the translation adding something like | 16:49 |
paroneayea | foo <a href="${license_uri}">bar</a> | 16:49 |
paroneayea | is that correct? | 16:50 |
nathany | yeah... but if you didn't have a translation the fallback would render as | 16:51 |
nathany | http://creativecommons.org/licenses/by/3.0/ foo <a href="${license_uri}">bar</a> | 16:51 |
nathany | with the bare URL out front | 16:51 |
nathany | (obviously sub-optimal) | 16:51 |
paroneayea | gross | 16:51 |
nathany | right | 16:51 |
paroneayea | well okay, guess that's not in our control | 16:51 |
nathany | yeah, i think i'll email either the repoze or zope list and see if we're missing something obvious | 16:52 |
paroneayea | I'll work on cleaning this up a bit and then changing the templates over to that | 16:52 |
*** akozak has joined #cc | 16:52 | |
nathany | great, thanks | 16:52 |
*** balleyne has joined #cc | 16:56 | |
nathany | paroneayea: what's an example of a template that has the ${DYNAMIC_CONTENT} issue? | 16:57 |
nathany | just want to look at something quick | 16:57 |
nathany | paroneayea: see http://dpaste.org/MJOJ/ | 17:01 |
nathany | I asked on #zope3-dev about the issue and that's what they suggested | 17:01 |
nathany | might be worth trying that with the template | 17:01 |
nathany | paroneayea: FWIW I think I like their suggestion better than mine | 17:02 |
*** haoyu has quit IRC | 17:16 | |
paroneayea | :o | 17:25 |
paroneayea | ok, finishing lunch, then I'll look into that | 17:27 |
nathany | paroneayea: no problem | 17:28 |
nathany | nkinkade: is there an easy way to tell how many GB of log data from i.cc.org we have? | 17:28 |
nkinkade | nathany: Not that I know of. | 17:29 |
nathany | ok, no problem | 17:29 |
nkinkade | But I haven't looked over the S3 stuff in a while. | 17:29 |
nkinkade | It's possible the API will expose data like that. | 17:29 |
nathany | nkinkade: not priority/important at all | 17:31 |
nkinkade | nathany: Even though the S3 API may not have a way to figure that out directly, I bet one of the S3 FUSE programs would allow you to mount our bucket and run normal filesystem operations on it like du. | 17:43 |
nkinkade | Just guessing ... | 17:43 |
nathany | nkinkade: right, probably... not even high enough priority to screw with that at the moment :) | 17:44 |
*** SimulianT has joined #cc | 17:51 | |
*** balleyne has quit IRC | 17:53 | |
*** pyrak has joined #cc | 17:54 | |
*** JoiIto has quit IRC | 17:58 | |
*** nkinkade has left #cc | 18:11 | |
*** nkinkade has joined #cc | 18:14 | |
paulproteus | Bovinity, BTW, any chance you'll have some spare time today to chat with our designer, Raffi? | 18:15 |
paulproteus | I think he likes floating things left a little too much. | 18:15 |
Bovinity | haha | 18:17 |
Bovinity | in office? | 18:17 |
paulproteus | (But also a second eye at our design would be great) | 18:17 |
paulproteus | Sure | 18:17 |
paulproteus | Lunchtime if you can spare it would be great | 18:17 |
paulproteus | Really I'm sure he can talk for hours and hours. | 18:18 |
paulproteus | So you're the constrained one. (-: | 18:18 |
*** rafpaf has joined #cc | 18:20 | |
paulproteus | Speak of the Devil. | 18:20 |
* rafpaf chortles | 18:20 | |
akozak | nathany: the aggregation has been running for ~15 hours, and it looks like it's getting some 500 responses right now. will it still try to crawl those feeds? | 18:20 |
nathany | akozak: is it stuck in NSDL? | 18:20 |
akozak | nathany: no, it got past that | 18:20 |
Bovinity | paulproteus: sure, i'll give a snarky eye at your designs | 18:20 |
nathany | akozak: it won't throw out the feed based on 500 errors | 18:21 |
akozak | hrm, ok | 18:21 |
paulproteus | Bovinity, how soon do you want to? | 18:22 |
akozak | paulproteus: what's wrong with floating left? :P | 18:23 |
paulproteus | Like anything else, you might have a problem if you need to do it just to feel normal. | 18:23 |
akozak | haha | 18:23 |
akozak | yea a little float: right never hurt anyone | 18:24 |
*** pyrak has quit IRC | 18:25 | |
*** oshani has quit IRC | 18:34 | |
*** JED3 has joined #cc | 18:39 | |
paulproteus | (Hey JED3) | 18:39 |
*** JED3 has quit IRC | 18:48 | |
*** pyrak has joined #cc | 18:58 | |
*** mlinksva has quit IRC | 19:01 | |
*** gimmulf has quit IRC | 19:02 | |
*** oshani has joined #cc | 19:09 | |
*** stevel has quit IRC | 19:23 | |
*** IceTrAiN has joined #cc | 19:32 | |
*** IceTrAiN has left #cc | 19:32 | |
*** oshani has quit IRC | 19:40 | |
paroneayea | :D | 20:01 |
paroneayea | :D :D :D :D :D | 20:01 |
paroneayea | I came up with an ingenious solution. | 20:01 |
paroneayea | observe! http://dpaste.com/83738/ | 20:02 |
paroneayea | nathany: ^^^ | 20:02 |
paroneayea | I think that'll be really easy to translate | 20:03 |
*** gimmulf has joined #cc | 20:09 | |
*** michi__ has joined #cc | 20:20 | |
*** stevel has joined #cc | 20:29 | |
*** oshani has joined #cc | 20:48 | |
*** kreynen has quit IRC | 20:54 | |
*** kreynen has joined #cc | 21:02 | |
*** rafpaf has quit IRC | 21:13 | |
akozak | nathany: ok so to clarify, when adding these lenses, first I would add the feed, then add the curator/creator of that feed, and then associate the curator with the feed with setcurator | 21:32 |
paroneayea | hm :\ | 21:38 |
paroneayea | okay, so it looks like my exciting solution might not work. | 21:38 |
*** oshani has quit IRC | 21:41 | |
*** oshani has joined #cc | 21:46 | |
*** jgay has quit IRC | 21:46 | |
*** oshani has quit IRC | 22:08 | |
*** nathany has quit IRC | 22:12 | |
*** michi__ has quit IRC | 22:30 | |
*** kreynen has quit IRC | 22:38 | |
*** JED3 has joined #cc | 22:52 | |
*** Bovinity has quit IRC | 23:31 | |
*** paroneay` has joined #cc | 23:31 | |
*** paroneayea has quit IRC | 23:32 |
Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!