*** alga has quit IRC | 00:04 | |
*** eldafar has joined #schooltool | 01:04 | |
*** alga has joined #SchoolTool | 01:59 | |
*** eldafar has quit IRC | 02:24 | |
*** jfroche has quit IRC | 02:42 | |
*** Makorihi has joined #schooltool | 03:15 | |
*** Makorihi has quit IRC | 03:18 | |
*** wrobel has quit IRC | 03:21 | |
*** mgedmin has quit IRC | 03:31 | |
*** alga has quit IRC | 05:17 | |
*** th1a has joined #schooltool | 05:22 | |
*** th1a is now known as thlabor | 05:22 | |
*** Bhaskar has joined #schooltool | 05:32 | |
*** lisppaste5 has quit IRC | 08:43 | |
*** lisppaste5 has joined #schooltool | 08:51 | |
*** masood has joined #schooltool | 10:26 | |
*** masood has left #schooltool | 10:26 | |
*** matthewrevell has joined #schooltool | 10:32 | |
*** Aiste has joined #schooltool | 11:15 | |
*** wrobel has joined #schooltool | 11:17 | |
Bhaskar | can any say that in which file password is stored in schooltool? | 12:10 |
---|---|---|
Bhaskar | can anyone say that in which file password is stored in schooltool? | 12:11 |
*** jinty has joined #schooltool | 12:39 | |
*** ignas has joined #schooltool | 13:03 | |
Bhaskar | gnas:hello | 13:12 |
Bhaskar | ignas: thanks for your well work on schooltool | 13:13 |
ignas | hi | 13:13 |
Bhaskar | ignas: the problem of untranslated leftside menu is solved | 13:14 |
Bhaskar | ignas:but some string are still in problem | 13:14 |
Bhaskar | jinty:hello | 13:15 |
jinty | Bhaskar, hello | 13:15 |
ignas | Bhaskar: with what strings? | 13:16 |
Bhaskar | ignas: all commendations, ... | 13:17 |
Bhaskar | ignas: the file of Access and control... | 13:19 |
Bhaskar | ignas:view commendations.. | 13:20 |
Bhaskar | ignas :in file http://localhost:7080/persons: | 13:21 |
Bhaskar | Username (sortable) Full name (sortable) Birth (sortable) Enrollment (sortable) Modified (ascending) Edit Display | 13:21 |
Bhaskar | ignas: i will send a list of untranslated string tomorrow with their corresponding files | 13:24 |
ignas | ok | 13:25 |
ignas | thank you | 13:25 |
Bhaskar | ignas: see u bye | 13:26 |
Bhaskar | jinty: bye | 13:26 |
ignas | bye | 13:27 |
*** Bhaskar has quit IRC | 13:27 | |
*** jfroche has joined #schooltool | 13:44 | |
*** mgedmin has joined #schooltool | 13:53 | |
ignas | jinty: ayt? | 14:13 |
jinty | ignas: yep | 14:14 |
ignas | a tricky situation | 14:14 |
jinty | ahh | 14:14 |
ignas | someone got into the idea that it would be nice for the Commendation | 14:14 |
ignas | to have it's own i18n namespace | 14:14 |
ignas | "commendation" | 14:14 |
jinty | haha | 14:14 |
ignas | not even "schooltool.commendation" | 14:14 |
jinty | yep, that at least has some sanity | 14:15 |
ignas | which kind of makes sense for a plugable model of schooltool, eggs etc, but not for actual deployment | 14:15 |
* jinty is of the belief that you have to do that kind of thing if you want to do pluggable/eggs | 14:15 | |
ignas | indeed, but what with our Make files | 14:16 |
jinty | having all the translations under one package when you distribute each of the bits separately makes no sense at all | 14:16 |
ignas | can makefile operations take parameters? | 14:16 |
jinty | well, then we should fix our makefiles | 14:16 |
jinty | yes | 14:16 |
ignas | like could i do NAMESPACE="schooltool.commendation" make extract-translations | 14:16 |
jinty | you use environment variables for that | 14:17 |
jinty | yep, though I would do a recursive makefile call | 14:17 |
ignas | because that's what we'd need to extract the .pot file for the commendation module | 14:17 |
jinty | s/.recurstive/reentrant/ | 14:17 |
ignas | hmm, and at the moment - hardcode namespaces | 14:17 |
jinty | or whatever the real term is for that | 14:18 |
* ignas had to push a new schoolbell.pot just to make rosetta-update scripts happy | 14:18 | |
ignas | even though schoolbell translations are kind of empty | 14:18 |
jinty | I thought I'd fixed that issue | 14:18 |
ignas | should be empty but makefiles scan all the schooltool .py files | 14:19 |
ignas | and emm, commendation translations should only include src/schooltool/commendation | 14:19 |
jinty | I don't think I exactly understand the issue here | 14:20 |
ignas | perform make extract-translations | 14:20 |
ignas | and look at the schoolbell.pot | 14:20 |
jinty | is the issue with extractok | 14:20 |
jinty | ok | 14:20 |
* jinty waits for his slow laptop | 14:21 | |
ignas | in zcml and pt - namespaces are "alive" and only those strings that are required get included | 14:21 |
ignas | but in .py files we should filter py path when extracting i think | 14:21 |
ignas | s/py path/by path/ | 14:21 |
ignas | :) | 14:21 |
jinty | so the issue is that schoolbell.pot includes far too many strings | 14:29 |
ignas | yes | 14:29 |
ignas | commendation.pot would include that as well | 14:29 |
jinty | because they all come from .py's that we should filter out somehow | 14:29 |
ignas | yes | 14:30 |
jinty | I would have thought that was the point of _ = MessageFactory("namespace") | 14:31 |
jinty | that by merely doing that, we get that filtering | 14:32 |
ignas | it's for Zope to know which .po file to take the translation from | 14:32 |
ignas | not for extraction tools :/ | 14:32 |
jinty | but it should also be for extract translations to know which pot file to put the translation in | 14:32 |
mgedmin | the po extractor is not smart enough to track the definition of _ through all the imports | 14:32 |
ignas | from schooltool.commendation.interfaces import _ | 14:33 |
jinty | waa, I see endless mismatches of this in future.... | 14:33 |
ignas | with _ = zope.i18nmessageid.MessageFactory("commendation") in the interfaces.py | 14:33 |
jfroche | dummy question: right now, there is no way to tell the po extractor to go into zcml files to translate things ? | 14:34 |
ignas | there is | 14:34 |
ignas | custom ZCML directives | 14:34 |
ignas | look at what i did with navigation | 14:34 |
jfroche | ok | 14:34 |
ignas | and at my last commit for security policy | 14:34 |
jinty | ignas: well, then I guess we have to work around this in the makefile | 14:34 |
ignas | jinty: i know :) any ideas ? | 14:34 |
jinty | fix the extraction tools;) | 14:35 |
jinty | grrr | 14:35 |
ignas | jinty: emm, like add the support for python imports ? | 14:35 |
mgedmin | should not be too hard :) | 14:36 |
ignas | and python syntax hacks like b = MessageFactory(); a = b; c = a; _ = c | 14:36 |
mgedmin | of course not | 14:36 |
mgedmin | anybody who does that deserves whatever he gets | 14:36 |
jinty | I would guess MessageFactory must do some kind of logging | 14:37 |
jinty | then somehow import all the modules | 14:38 |
mgedmin | won't help | 14:38 |
* jinty waves hands vigorously | 14:38 | |
mgedmin | def my_fn(): format_your_hard_disk(); return _("Disk formatted") | 14:38 |
mgedmin | ah, actually I misunderstood your idea | 14:38 |
mgedmin | if you just format the module and look at _ in the global scope... | 14:38 |
ignas | # One limitation of the Python message extractor is that it cannot | 14:39 |
ignas | # determine the domain of the string, since it is not contained anywhere | 14:39 |
ignas | # directly. The only way this could be done is by loading the module and | 14:39 |
ignas | # inspect the '_' function. For now we simply assume that all the found | 14:39 |
ignas | # strings have the domain the user specified. | 14:39 |
mgedmin | yay, a slow and cheap but mostly reliable solution | 14:39 |
ignas | hmm, automatic imports would make all the circular import problems so much more fun :) | 14:40 |
* jinty is basically lost as to how easy this would actually be to do. | 14:42 | |
jinty | but i see that i18nextract.py needs re-writing anyway | 14:43 |
jinty | and the makefile needs updating | 14:43 |
jinty | blah | 14:44 |
ignas | hmm | 14:45 |
ignas | i can try fixing Zope | 14:45 |
jinty | sorry, I won't be of much help in the near future, got a ton of work at the moment | 14:46 |
*** alga has joined #SchoolTool | 14:47 | |
jfroche | ignas: so if i have a MessageID field in the metadirective's interfaces, the message will be translated and the po extractor will be smart enough to read inside zcml for this directive ? | 14:52 |
ignas | yes, but you must set the right i18n domain in zcml | 14:53 |
ignas | jfroche: what exactly do you want to do ? | 14:53 |
jfroche | ok | 14:53 |
mgedmin | hmm | 14:53 |
mgedmin | how does the i18n extractor process zcmls? | 14:53 |
mgedmin | it must be clever if it can inspect schemas | 14:53 |
jfroche | trying to translate onlinehelp title (which is defined in zcml) | 14:54 |
jfroche | i guess i was missing the i18n domain, trying it | 14:54 |
ignas | jinty: schooltool.app.main - will stay borken, but i have a hack that extracts the domain from the file | 15:13 |
ignas | and can compare it to the one being extracted | 15:13 |
jinty | ignas is this a schooltool hack, or a zope hack? | 15:16 |
ignas | zope hack :) | 15:17 |
ignas | i will move the function to schooltool | 15:17 |
ignas | and use it | 15:17 |
ignas | instead of the zope py_strings | 15:17 |
jinty | can we get it into zope? | 15:18 |
jinty | the hack I mean | 15:18 |
jinty | but, commit it:) I'd like to see it | 15:18 |
ignas | let me clean it up :) | 15:22 |
ignas | jinty: commited :) now it's your turn to update Makefile | 15:32 |
ignas | so it would extract schooltool, schoolbell and schooltool.commendation | 15:32 |
ignas | i'll rename commendation domain | 15:32 |
jinty | ignas: okok;) | 15:33 |
*** thisfred has joined #schooltool | 15:53 | |
jinty | ignas: there you go, but I guess I triggered loads of circular import issues | 16:12 |
ignas | not imports | 16:14 |
ignas | zcml problems | 16:14 |
ignas | commendation zcml is not suitable to be loaded diractly | 16:14 |
ignas | switching to commendation/ftesting.zcml | 16:15 |
ignas | uploaded the .pot files | 16:23 |
*** matthewrevell has left #schooltool | 16:37 | |
*** jinty has quit IRC | 16:59 | |
*** jinty has joined #schooltool | 17:17 | |
*** jfroche has quit IRC | 17:39 | |
*** lisppaste5 has quit IRC | 17:59 | |
*** wdickers has joined #schooltool | 17:59 | |
*** lisppaste5 has joined #schooltool | 18:06 | |
*** wdickers has quit IRC | 18:39 | |
*** jfroche has joined #schooltool | 18:54 | |
jfroche | ignas: thanks for review | 18:54 |
*** ignas has quit IRC | 19:03 | |
*** Ninno has joined #schooltool | 19:16 | |
*** jfroche has quit IRC | 19:35 | |
*** thisfred has quit IRC | 19:49 | |
*** thisfred has joined #schooltool | 19:58 | |
*** lhuynh has joined #schooltool | 20:59 | |
*** lhuynh has quit IRC | 21:02 | |
*** thisfred has left #schooltool | 21:26 | |
*** mgedmin has quit IRC | 21:44 | |
*** jinty has quit IRC | 22:50 | |
*** jinty has joined #schooltool | 23:07 | |
*** alga has quit IRC | 23:29 | |
*** Ninno has quit IRC | 23:39 | |
*** jinty has quit IRC | 23:56 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!