Sunday, 23 December 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang Content Management Framework
Room Configuration

[00:59:04] <Maas> seeing pink unicorns. bedtime i guess.
[01:02:07] Maas leaves the room
[08:01:41] andreas.stenius joins the room
[08:33:59] Arjan joins the room
[08:38:55] Protagores joins the room
[08:39:20] <Arjan> hi
[08:40:35] <Protagores> Oh, hi there
[08:41:14] <Protagores> How to set a proper "view" for a page/entity?
[08:42:02] <Protagores> And, well... I'd like to help with Russian l10n
[08:42:18] <Protagores> it needs a lot of work as I see
[08:50:33] <Arjan> :)
[08:51:05] <Arjan> you create a dispatch rule called 'page' with an id and slug argument
[08:51:20] <Arjan> you you create a site based on the blog skel, it is already there
[08:51:32] <Arjan> else look in mod_base_site
[09:03:41] <Protagores> wow, is sitemap.xml filled automatically?
[09:04:46] <Arjan> yep
[09:05:05] <Arjan> http://zotonic.com/docs/latest/ref/modules/mod_seo_sitemap.html
[09:05:21] <Protagores> I see :P
[09:10:09] <Protagores> yet
[09:10:21] <Protagores> how can I improve Russian translation?
[09:10:27] <Protagores> at least locally?
[09:14:58] <Arjan> do you know how to use git?
[09:15:21] <Protagores> erm... basically
[09:15:23] <Arjan> :)
[09:15:32] <Protagores> I never did push, only pull :P
[09:15:35] <Arjan> hehe
[09:15:40] <Arjan> https://help.github.com/articles/using-pull-requests
[09:15:52] <Arjan> we use the "fork and pull" model
[09:16:13] <Arjan> but ok so first you clone zotonic into your own github account
[09:16:29] <Arjan> so that you can push back there
[09:16:34] <Arjan> then you clone that zotonic
[09:16:50] <Arjan> enable mod_translation
[09:17:00] <Arjan> and then edit each ru.po file that you find inside the modules
[09:17:21] <Arjan> if a module does not have a ru.po file, you can copy the translations/template/mod_foo.pot to translations/ru.po
[09:17:23] <Arjan> and then edit that one
[09:17:49] <Arjan> use poedit or something similar to edit the .po files
[09:17:56] <Arjan> (I do it with Emacs)
[10:08:51] <Protagores> will that fork be automatically updated?
[10:09:16] <Protagores> I mean, up to mainstream zotonic repo
[10:18:06] <Arjan> no you'll have to pull regularly
[10:18:16] <Arjan> best way is if you work in a branch
[10:18:22] <Arjan> so do not commit to your own master branch
[10:18:47] <Arjan> but commit in a topic branch
[10:19:04] <Arjan> github pull requests go on branch basis
[10:19:21] <Arjan> http://zotonic.com/docs/0.9/dev/contributing.html
[10:30:06] <Protagores> pull from main repo to my remote repo which is on github, you mean?
[10:31:47] <Arjan> to keep up-to-date you would need to add a second remote to your local repository
[10:31:57] <Arjan> git add remote official git://github.com/zotonic/zotonic
[10:32:11] <Arjan> and then: git pull official master
[10:33:31] <Protagores> so my master branch is not needed to be updated there, is it?
[10:34:11] <Arjan> on your github clone?
[10:34:15] <Protagores> yep
[10:34:20] <Arjan> not nessecarily
[10:34:26] <Protagores> :P
[10:34:28] <Arjan> but you can always do git push master
[10:34:48] <Arjan> github does not have a way to keep a cloned copy in sync. that would be really nice though..
[10:37:01] Maas joins the room
[10:45:43] <andreas.stenius> yeah, I've setup mirroring from my own gitserver to keep my github forks in sync with their respective upstream master..
[10:48:18] <andreas.stenius> Protagores: a git tip, when you are working on a topic branch, to rebase your work (update master, and your topic branch on top of the lastest master), you can run: $ git fetch upstream && git pull . upstream/master:master from your topic branch.
[10:48:50] <andreas.stenius> oh, replace upstream with official, if that is what you called it (as Arjan did)
[10:49:05] <Arjan> ok
[10:49:08] <Arjan> yeah
[11:25:57] <andreas.stenius> why is a unique name required in the new rsc dialog.. ?
[11:28:03] <Arjan> only for categories right?
[11:51:04] <andreas.stenius> uhm...
[11:52:16] <andreas.stenius> and predicates!
[11:52:44] <andreas.stenius> hmm... but I don't think I have either of those...
[11:52:49] <Arjan> ?
[11:54:06] <andreas.stenius> I don't think that the if test in the template does what it was intended for...
[11:54:18] <andreas.stenius> not sure yet,,, slightly confused still.. :p
[11:54:21] <Arjan> euh
[11:54:31] <Arjan> when I click new page, it just shows title, category, published checkbox
[11:54:47] <Arjan> (from dashboard)
[11:54:49] <andreas.stenius> yeah, but what if you click on add connection from another resource, then new page from there
[11:55:05] <andreas.stenius> Add connection / New page
[11:55:05] <Arjan> oh
[11:55:18] <Arjan> nope
[11:55:24] <Arjan> for me it doesnt
[11:55:28] <andreas.stenius> hmmm...
[11:55:59] <andreas.stenius> ok, wait, it seems to depend on which predicate i add to...
[11:56:30] <andreas.stenius> about doesn't require name for the new page, but author does
[11:57:19] <andreas.stenius> why is that?
[11:58:34] Maas leaves the room
[11:58:40] <Arjan> I dont know..
[11:59:26] <andreas.stenius> also, if I make a new page from the overview, then select category in the dialog, the required name field doesn't show up... so it's not really consistent... :/
[12:01:38] <andreas.stenius> huh... for the category select box, there's a {% if cat and nocatselect %} ...
[12:01:55] <andreas.stenius> feels like the if cat is_a category is a bad test for the name field...
[12:02:09] <andreas.stenius> ping Marc Worrell
[12:03:10] <Arjan> indeed
[12:03:26] <andreas.stenius> oh, well.. btw, there's a typo in https://github.com/zotonic/zotonic/blob/master/modules/mod_admin/templates/_action_dialog_new_rsc_tab.tpl#L41
[12:03:38] <andreas.stenius> for #published should be for #name
[12:03:49] <andreas.stenius> I can fix it, but not now... time to make lunch
[12:06:43] <andreas.stenius> ah, this was added quite recently...
[12:09:18] <Arjan> I'll do it
[12:15:19] <Arjan> pushed
[12:17:16] Arjan leaves the room
[13:36:09] <andreas.stenius> +1, nice! :)
[16:29:43] Arjan joins the room
[16:45:54] Arjan leaves the room
[16:51:00] Arjan joins the room
[18:06:08] Arjan leaves the room
[19:20:40] Protagores leaves the room
[20:00:07] Maas joins the room
[20:02:23] Arjan joins the room
[20:07:13] Maas leaves the room
[20:26:43] <Marc Worrell> Ran into a nice issue on https://www.womenonweb.org/
[20:27:19] <Marc Worrell> The proxy handles the ssl part, inside it is http. But we don't have an option to tell zotonic to make all abs urls https only ...
[20:27:25] <Marc Worrell> something for the new year
[20:28:02] <Marc Worrell> Many solutions, am not sure what the best one is.
[20:29:14] Arjan leaves the room
[20:43:02] maas.maarten.zeeman joins the room
[21:07:03] <maas.maarten.zeeman> Indeed, you can even configure some proxies even rewrite the generated html... and lots of in-between solutions.
[21:26:06] <andreas.stenius> Can't login on the demo site... known issue (or simply disabled)?
[21:26:28] <Marc Worrell> or did someone disable the authentication module? :p
[21:26:53] <Marc Worrell> acscherp has the keys to this one
[21:32:15] maas.maarten.zeeman leaves the room
[21:36:11] andreas.stenius leaves the room
[21:39:21] maas.maarten.zeeman joins the room
[21:42:41] <maas.maarten.zeeman> disabling the base module can also be funny. :-p
[22:09:29] <Marc Worrell> :P
[22:13:29] <maas.maarten.zeeman> accidentally done that a couple of times.. maybe we should be able to configure an "are you sure?" dialog for modules like that. Not nice to do that on a production site...
[22:30:25] <maas.maarten.zeeman> Working on a circuit breaker right now. https://github.com/mmzeeman/breaky
[23:28:38] maas.maarten.zeeman leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!