Zotonic
Zotonic
zotonic@conference.zotonic.com
Thursday, 27 December 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang Content Management Framework
Room Configuration

GMT+1
[08:33:04] Protagores joins the room
[09:46:24] maas.maarten.zeeman joins the room
[10:20:22] andreas.stenius joins the room
[11:08:24] <maas.maarten.zeeman> Yeah... created branch for new db layer.
[11:08:55] <maas.maarten.zeeman> Now struggling with rebar deps :-p
[11:30:18] maas.maarten.zeeman leaves the room
[11:53:39] Maas joins the room
[11:57:55] <Maas> deps with deps
[12:31:25] <Maas> Was thinking to pass the zotonic deps dir to rebar commands as option. deps_dir=/home/zotonic/deps. That way it can collect/check the availability without problems.
[13:32:54] andreas.stenius leaves the room
[13:35:12] Andreas Stenius joins the room
[15:05:27] <Maas> git WTF moment.
[15:05:57] <Maas> do git submodule add git://github.com/mmzeeman/esql_pgsql.git deps/esql_pgsql
[15:06:18] <Maas> and actually checkout git://github.com/mmzeeman/esql.git
[15:06:28] <Maas> totally weird.
[15:08:02] Arjan joins the room
[15:15:50] <Protagores> > <p>{_ The following _} {% ifequal result.total 1 %}{_ page has _}{% else %}{{ result.total }} {_ pages have _}{% endifequal %}
Why this weirdness instead of ngettext() plural forms?
[15:17:05] <Protagores> Translating THAT stuff into Russian gets totally inconvenient. :-$
[15:18:17] <Maas> i accidentally added the wrong repo, but manually editted .gitmodules and .git/config and did a git rm --cache deps/... and added the right one. But then you still get the wrong one.
[15:20:15] <Arjan> Protagores: yep that is a known issue :-/
[15:21:05] <Protagores> Well, is ngettext() actually supported for this moment?
[15:21:30] <Arjan> no it's not
[15:21:36] <Protagores> uh...
[15:21:39] <Arjan> we only use the .po file format
[15:21:51] <Arjan> the "gettext" itself is implemented in pure erlang
[15:22:03] <Arjan> this could be a solution though, http://zotonic.com/docs/latest/ref/filters/filter_replace_args.html
[15:22:33] <Arjan> doing those template values like this: {{ _"Translation string $1"|replace_args:["one"] }}
[15:22:47] <Arjan> the _".." also counts as translatable string
[15:22:53] <Protagores> The thing is, different languages have different quantities and rules for plural forms.
[15:23:29] <Arjan> hm yeah
[15:23:36] <Protagores> English has 2: "single" for 1 and "multiple" for everything else. :P
[15:23:42] <Protagores> But Russian... hmph
[15:24:11] <Arjan> :p
[15:25:09] <Protagores> Everything ending with 1 (but not with 11) is "single-like", then ending with 2 to 4 (not 12 to 14 though) is "A-multiple" and everything else is "OV-multiple". :P
[15:25:14] Andreas Stenius leaves the room
[15:31:11] <Protagores> For the moment, I hacked it like this:
"The following" -> "У"
"page has" -> "следующей страницы"
"pages have" -> "следующих страниц"
LOL xD
[15:36:02] <Maas> Multi language is fun isn't it? :-p
[15:36:29] <Maas> Hmm weird .git/modules points to the right repo
[15:37:08] <Protagores> It is indeed. :P
[15:55:40] <Maas> sticking with ln -s for now :-)
[15:56:01] Arjan leaves the room
[16:38:51] Arjan joins the room
[16:45:25] <Protagores> Still, how much effort do you estimate would it take to implement ngettext() for Zotonic in pure Erlang?
[16:47:24] <Protagores> Btw it uses the same .po format. :P
[16:47:35] <Protagores> Just with a few extensions. :P
[16:59:05] <Arjan> Protagores: I dont know, I guess a day work
[16:59:09] <Arjan> maybe les
[17:06:50] Arjan leaves the room
[17:44:34] Maas leaves the room
[17:49:27] maas.maarten.zeeman joins the room
[18:21:23] Arjan joins the room
[18:53:13] <Protagores> Hmph...
[18:54:47] <Protagores> in Russian there are different forms for month names that *are* part of specific date (like 27 December 2012), and that *are not* (like December, 2012)
[18:55:32] <Protagores> "декабрь 2012", but "27 декабря 2012" :P
[18:57:16] <Protagores> hence, if English counterpart is "Archive for December, 2012" and it is ok, Russian version forms as "Архив за Декабря, 2012", which is rather ugly :P
[19:05:18] Arjan leaves the room
[19:06:27] <maas.maarten.zeeman> So the translator has to have more control over entire sentences instead of just small snippets.
[19:18:08] <Protagores> Seems so.
[19:18:25] <Protagores> Or at least over patterns.
[19:32:16] <maas.maarten.zeeman> Pff.. I finally spot the source of the git submodule weirdness, the makefile...
[20:56:24] Protagores leaves the room
[21:01:19] maas.maarten.zeeman87764 joins the room
[21:01:19] maas.maarten.zeeman87764 is now known as maas.maarten.zeeman70124
[21:01:19] maas.maarten.zeeman70124 leaves the room
[21:01:20] maas.maarten.zeeman70124 joins the room
[21:01:20] maas.maarten.zeeman70124 is now known as maas.maarten.zeeman87764
[21:01:20] maas.maarten.zeeman87764 leaves the room
[21:01:20] maas.maarten.zeeman75856 joins the room
[21:01:20] maas.maarten.zeeman75856 is now known as maas.maarten.zeeman73743
[21:01:20] maas.maarten.zeeman73743 leaves the room
[21:01:21] maas.maarten.zeeman73743 joins the room
[21:01:21] maas.maarten.zeeman73743 is now known as maas.maarten.zeeman87764
[21:02:00] maas.maarten.zeeman leaves the room
[21:04:28] maas.maarten.zeeman87764 is now known as maas.maarten.zeeman73743
[21:04:28] maas.maarten.zeeman73743 is now known as maas.maarten.zeeman87764
[21:04:28] maas.maarten.zeeman87764 leaves the room
[21:04:29] maas.maarten.zeeman87764 joins the room
[21:33:23] Arjan joins the room
[21:39:55] Arjan leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!