Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2013-10-09

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:18 rbeezer joined #webwork
12:13 rbeezer_ joined #webwork
15:16 goehle_ joined #webwork
15:16 goehle_ hey mgage
15:58 pstaab joined #webwork
16:14 mgage goehle: hi
16:15 goehle_ hey
16:15 goehle_ I'm having issues with maketext
16:16 mgage kk -- what kinds
16:17 goehle_ If I use _ACHIEVEMENTS_EDITOR_DESCRIPTION
16:17 goehle_ it works fine
16:17 goehle_ as lon gas the language is set to english
16:17 goehle_ but if I change it to french
16:17 goehle_ maketext dies
16:17 goehle_ and complains it doesn't know how to say that
16:18 mgage you need to add an entry to the .po file for French ( and possibly remove the .mo file  -- at least until it get's updated)
16:18 goehle_ that seems like  a problem
16:18 goehle_ shoudn't it revert back to english?
16:18 goehle_ (it does that for other things that arent translated)
16:18 mgage you can use poedit  to do this
16:19 mgage it's true -- I would have expected it to just emit the string _ACHIEVEM…
16:19 mgage what happens if it doesn't start with an underscore?
16:20 mgage examples that work are on the login page -- among other places.
16:21 goehle_ I think the underscore tells it to look for a specific message id
16:21 mgage so there is an example _EXTERNAL_AUTH_MESSAGE   in Login.pm
16:22 goehle_ yeah, but thats in the fr po file
16:27 goehle_ hmm
16:27 goehle_ :/
16:30 pstaab joined #webwork
16:31 goehle_ wierd
16:31 goehle_ i'm getting different behavior with a variable
16:31 goehle_ depending on if I put it in an alert or not
16:38 goehle_ ah
16:38 goehle_ nm
16:38 goehle_ thats an async issue
16:38 goehle_ still cant figure out the fr thing
16:38 pstaab Just joined Geoff.  What's going on?
16:38 goehle_ well I
16:38 goehle_ I'm trying to make the localization fancy
16:39 goehle_ so instead of having to manually decide which keys to privde to js
16:39 goehle_ it will load up the current translation hash
16:39 goehle_ pass it to js via ajax
16:39 pstaab Sounds good.  Are you parsing a template file to wrap lines around l( ) ?
16:40 goehle_ no, I load up the pot file
16:40 goehle_ it goes through and for each msgid
16:40 goehle_ it calls l to get the current translation
16:40 pstaab on the client (i.e. javascript side)?
16:40 goehle_ no this is on the server
16:41 goehle_ it sends the hash to the localize.js script
16:41 goehle_ which uses it to evaluate js l() calls
16:41 pstaab cool.
16:41 goehle_ right
16:42 goehle_ so then you use the standard tools to build your pot file from your js/perl/templates
16:42 goehle_ and send that off to be translated
16:42 goehle_ and you wont have to worry about which strings are used where
16:42 pstaab I like the way you're thinking.
16:42 goehle_ right
16:43 goehle_ my problem is that when I use en
16:43 goehle_ it works fine
16:43 goehle_ but when I use fr
16:43 goehle_ maketext dies
16:43 goehle_ because it cant translate something
16:43 goehle_ but it *should* just fall back
17:18 mgage back -- sorry : students -- they may return :-)
17:18 pstaab Hi Mike
17:21 mgage goehle: did you figure the translation thing out?
17:22 goehle_ sort of
17:22 goehle_ I think the issue is that the package i'm using is based on Maketext::Simple
17:22 goehle_ and wework uses maketext::lexicon
17:22 goehle_ which is a bit fancier
17:22 mgage that could be it
17:23 mgage we started out using Maketext::Simple but switched
17:23 mgage to get make text inside PG we had to hack things
17:25 mgage ash -- I see why _achievements_editor   etc was working smoothly -- look at Localize.pm  the ENGLISH responses are hard coded into the file
17:25 goehle_ yeah
17:38 mgage goehle:   I've run some tests on devel1   -- I removed some strings from the hebrew file -- for guest login for example -- and the result just fell back to the english version
17:46 mgage the string that I placed in the Localize.pm file picks up and produces the output.
18:10 goehle_ I see
18:13 goehle_ left #webwork
19:16 theseb joined #webwork
19:16 theseb what is 1st things should check if Amazon webwork image bombing w/ out of memory errors?
19:17 theseb (I have 2 Gb of RAM! )
19:17 theseb its crashing on around 5 people
19:22 theseb .
19:22 theseb .
19:22 theseb one more thing....possible to move database from old version to new version?  I was getting errors from mysql that tables weren't the same
19:23 mgage Hi Chris -- I'm afraid I can't help much with Amazon cloud machines.  I haven't used them much.
19:24 mgage if you have different versions of webwork you need to "upgrade" courses from the admin page to get the tables in the database to be the same.
19:24 mgage That mostly works, but it's not super robust.  Changing databases in the middle of a course is something we try to avoid.
19:26 theseb ok thanks
19:50 theseb joined #webwork
20:03 aubreyja joined #webwork
23:09 rbeezer joined #webwork

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary