/srv/irclogs.ubuntu.com/2010/04/13/#ubuntu-website.txt

cjohnstonnewz2000: do you think you will be able to make it tomorrow?01:00
newz2000cjohnston: I am not sure what is going on tomorrow but I'm going to try03:26
cjohnstonmornin14:15
l3onHi all... someone of you know where can I find the source code of lucid countdown buttons?15:09
l3onI would translate and use them in ubuntu.it15:09
qenseDoes anyone here has got experience with getting information bubbles floating at an OpenStreetMap on a website?15:29
stasqense: you mean openlayers?15:38
qensestas: yes15:38
stasi was playing with that library recently but find it harder to use compared to gmaps or other services15:39
qenseYeah, it's not that intuitive.15:40
qensebut I'll figure out with help of the reference manual. ;) I was just curious whether anyone had a working example on the shelve.15:40
stasplus it is missing some wrappers/helpers to use it with jquery or some modern js libs15:41
qensetrue15:41
qensebut yay, I've found something!15:41
stasqense: if you get something done, ping me, I would love to see some code using OpenLayer15:45
qensestas: will do!15:46
stasthanks and good luck :)15:46
qensethanks :)15:47
ofirknewz2000: can I talk to you for a sec?16:31
stasis there some meeting planned today?17:32
cjohnstonyes17:42
cjohnstonin a little over two hours17:44
stasoh, this time zones are driving me crazy :)17:49
cjohnstonI included a link in the email that should show you the time in your TZ17:50
stasah, my problem is that I always have to count what time is where the guys I'm talking with are17:53
newz2000Hi, is anyone here for the localization meeting? If so, check out #ubuntu-meeting20:03
newz2000(and announce yourself please)20:04
stasnewz2000: around?20:43
newz2000hey stas20:43
stashey. about the app20:43
stasi didn't succeed submitting it to the apps directory20:44
stasso I think it's best to share it in current status20:44
newz2000ok, what happened?20:44
stasthey ask more active users20:44
newz2000ah20:44
stasthough I got ~20 users in the db that added it, FB reports under 1020:45
newz2000:-(20:45
stasdunno how they calculate it20:45
stasso I'm afraid if we wait after official apps directory submission, we're loosing time20:46
newz2000yeah, well, I saw daniel announced it on identica20:47
stasi thought pinging some fan groups in facebook and sharing the link to the app can be a good start20:47
newz2000that's a good idea20:47
newz2000I think we should consider this a public beta period20:47
newz2000get people using it, don't worry about the directory for now20:47
stasyep20:47
newz2000stas: what would you like me to do?20:48
stasto do what?20:48
stasah20:48
stasif you got many friends on fb that would help if not we are in the same situation :D20:49
newz2000ok20:49
newz2000I'll do it20:49
stasthanks20:50
ofirknewz2000: do you have a sec?20:51
newz2000hey ofirk, yes20:51
ofirknewz2000: how are you?20:51
newz2000good, how are you?20:51
ofirknewz2000: good, thanks20:52
ofirknewz2000: is there any news regarding the download page?20:52
newz2000ofirk: no, I had a phone call less than one hour ago20:52
newz2000and I still do not have any new information20:52
newz2000:-(20:52
ofirkbammer :(20:53
newz2000yeah, the person who I'm working with is very frustrated on the subject20:53
newz2000ofirk: I'm thinking about "plan b" currently20:53
ofirkremind me again what is plan B?20:54
newz2000we don't have one yet20:54
* newz2000 looks at the logs to see how many downloads kubuntu gets during a busy period20:55
ofirkinteresting20:55
newz2000ofirk: ok, you're peak demand is very managable20:58
ofirknewz2000: means that...?20:59
newz2000that means we can create a custom "plan b" solution and don't have to worry too much about capacity20:59
ofirkwhat about the one which uses the template.php inside the theme to generate the mirror list or to redirect to a mirror?21:00
newz2000my goal is to get you plugged into the new download page, but if that isn't going to work we can create a temporary solution and host it at webapps.ubuntu.com or on app engine or ec221:00
newz2000ofirk: that's a possibility too21:00
stasnewz2000: btw, you are still in pending status as the app developer, dunno why though21:02
newz2000stas: I'm not concerned21:02
stasah oky :)21:03
ofirknewz2000: I'm sorry, my internet connection disconnected21:08
newz2000ofirk: no prob, last I said was...21:08
newz2000ofirk: that's a possibility too21:08
ofirkbut for all of those solutions we will need an access to the mirror list on launchpad, right?21:08
newz2000yes, that is easy, its an rss feed21:09
ofirkand you have the PHP script which takes care of it?21:10
newz2000Hmm... that is an interesting separate challenge21:10
newz2000because it needs to run periodically21:11
newz2000and you can't do that the way you're planning21:11
ofirkdrupal has cron support, if it is enabled on kubuntu's website, we can use it21:12
newz2000but that would require us to create a custom module for drupal which I don't think is going to be allowed. We already have the code written if that's what we're going to do21:13
ofirkdo we have cron on webapps.ubuntu.com/app engine/ec2 ?21:19
newz2000ofirk: yes21:19
ofirkcool21:19
ofirkso why not use one of them. isn't it easier?21:20
newz2000it means we have to write something and "plan a" didn't21:20
newz2000so it is a fallback21:20
newz2000but we should probably start planning it21:20
ofirkwhat features will we have on webapps? can we use remote access to read the rss feed?21:23
ofirkcan we implement the feature which redirects to the nearest server?21:23
cjohnstonhey adiroiban21:24
adiroiban:)21:24
cjohnstonnewz2000 told me you may be able to help me out with setting the .js files up for translation21:24
newz2000ofirk: probably not (redirect to nearest server)21:24
adiroibancjohnston: do you plan to use any js library/framework?21:26
ofirknewz2000: why we can't do that? is it because we can't identify from where the user comes?21:26
newz2000ofirk: it may be possible21:27
newz2000but the timing is tricky21:27
newz2000adiroiban: no, js files will be very simple21:27
newz2000they will need to output one string and one url21:27
newz2000the url will be https;//wiki.u.c/Local/<lang>21:28
ofirknewz2000: so let's tag it as wishlist21:28
newz2000ofirk: if we use the plan a then we'll get that built in21:28
cjohnstonadiroiban: http://people.ubuntu.com/~chrisjohnston/local/file.js.en21:28
newz2000ofirk: yes, good plan21:28
adiroibani was thinking of using jsgettext21:28
adiroibanhttp://openflights.org/blog/2009/05/29/dynamic-javascript-localization-with-gettext-and-php/21:29
ofirknewz2000: off course21:29
newz2000adiroiban: no php21:29
adiroibannewz2000: no need for php21:29
adiroiban:)21:29
adiroibanhttp://developer.berlios.de/projects/jsgettext/21:29
adiroibanhere is the library21:29
adiroibanit a pure JS parser of po files21:29
* stas pokes adiroiban 21:30
ofirknewz2000: so we need to use an rss praser to prase the rss from launchpad21:30
newz2000adiroiban: I think it's overkill21:30
adiroibannewz2000: it may be21:30
adiroibanbut it can handle translation validations21:30
adiroibanas otherwise we need to implement our own checkers21:30
newz2000adiroiban: document.write('<a href="[url]">[string]</a>');21:30
adiroibansince translations can contain wrong js code21:30
ofirknewz2000: so the flow chart is: display download form with all mirrors -> user submits form -> get user data -> redirect to mirror21:31
adiroibannewz2000: we can also go with in the house solution21:31
newz2000adiroiban: simple = good++21:32
newz2000ofirk: yes21:32
newz2000ofirk: do you want to continue to use an iframe?21:33
ofirknewz2000: I don't21:34
newz2000ofirk: agreed21:34
newz2000so we have two choices...21:34
stasi would go using a json file, this will bring kinda gettext logic in translations, and the checks can be done using a regex21:35
newz2000ofirk: host the form on the dyanmic app (webaps...) or host the form on kubuntu.org and pull the data from the dynamic app21:35
newz2000stas: that means you have two hits to the server instead of one21:35
ofirknewz2000: do you mean kubuntu to pull the data from the app? is it possible?21:35
newz2000ofirk: yes, just a moment21:36
newz2000stas: since there is one .js file for each lang and the js file only has to display it's own link I think this could be a one line script21:36
newz2000I could be wrong on this... a case could be made for making it more complex21:36
newz2000(like asynchronous loading)21:37
newz2000if we have a 150 byte js file that simply displays a string containing a hyperlink, what's the most efficient way to get the job done?21:38
stashmm, yep in oneliner case you're right, but having a more complex string with some variable words/numbers in it would make sense21:38
adiroibanstas: jsgettext is already doing that, no need to reinvent the wheel21:38
* newz2000 listens21:38
stasadiroiban: jsgettext requires php?21:39
adiroibanbioe21:39
adiroibannope21:39
adiroibanpure js implementation21:39
newz2000adiroiban: and what does it give us beyond document.write('...') ?21:39
adiroibannewz2000: it will allow us to integrate the translation into Launchpad Translations21:40
staseasier hangling of stuff like "Some %d hours ago and %d seconds before"21:40
adiroibanso that translators can translate those strings using a web interface21:40
stasi believe21:40
adiroibanor well know translation edit tools like poedit or gtranslator / kbabel21:40
* knome coughs21:41
* newz2000 was hoping knome would chime in21:41
adiroibanit can handle plural forms21:41
knomenewz2000, what are we talking about?21:41
newz2000adiroiban: The string is "resources in English"21:41
adiroiban:)21:42
adiroibanthen just document.write it :)21:42
newz2000knome: techincal aspects to cjohnston's localization project21:42
knomeright21:42
knomeso what do we need? a js script downloading a string?21:42
newz2000the end result is a js file for german will display someting on the page that looks like this: <a href="https://wiki.ubuntu.com/Local/de">Resources in German</a>21:43
knomeokay.21:43
cjohnstonin german tho21:43
newz2000right21:43
cjohnstonlol21:43
newz2000the german will come from a .po file that is translated in launchpad21:44
knomewhat info do we have on the server with js? "de" ?21:44
newz2000file.js.de is a js file that will be responsible for displaying that string21:44
newz2000and it will only know or care about german21:44
knome..right21:44
adiroibannewz2000: we can use po2json de.po > file.js.de21:45
newz2000adiroiban: that sounds promising21:45
knomeis it rational to ask LP for translation every time the JS is loaded, or should the data be cached?21:46
adiroibanand just have a raw access to that json (without using jsgettext)21:46
adiroibanknome: the data will be cached21:46
knomeokay21:46
knomei don't really see the problem here. can you enlighten me21:47
newz2000we're looking for the simplest way21:47
adiroibanthe problem is how do we allow translator to translate those js files21:47
adiroibanand check the files will stay valid after translations21:47
newz2000yeah, that is a concern21:47
adiroibanand who have access to translate them21:47
adiroibanand how the translations are „comited”21:48
knomeisn't that more of a LP issue?21:48
adiroibanusing LP Translations should solve many of those problems21:48
newz2000the qa part I can picture, the rest i don't know21:48
newz2000if a person has to run the script to create the js files then they can do a bzr diff before and after to make sure no bad strings get in21:48
knomeis there a way to check if a file is valid?21:48
newz2000jslint21:49
knomethen do automatical validation and if it fails, use the old version and notify the translator(s) ?21:49
newz2000yeah21:49
* newz2000 doesn't know how to do this though21:49
* cjohnston either21:50
adiroibanknome: LP Translation should warn users as soon as the submit a corrupted translation21:50
adiroibanand not allow it21:50
knomebind a script to translation change?21:50
adiroibanbut to do that, the translation should in PO format21:50
adiroibanso21:51
adiroibanif you want21:51
knometo check the validity of the js file?21:51
adiroibanI can help you with setting up the translations for this21:51
cjohnstonadiroiban: definatly21:51
cjohnstonsomeone needs to decide and newz2000 needs to approve how this is going to be, and then we can get it setup21:52
* stas can haz pizza21:52
cjohnstonbut we also need to make sure not to display if there is no landing page21:52
knomenewz2000, fwiw, i heard rime is going to get back home from florida tomorrow21:52
newz2000knome: I'd be interested it knowing if there's something faster than document.write('...')21:53
knomeisn't document.write just basic basic js?21:53
newz2000yes21:53
knomei doubt there is quicker ways then21:54
knomeat least with js21:54
adiroibanhttp://paste.ubuntu.com/413900/21:54
adiroibanthis should be your source21:54
adiroibanand we will have a similar json for each language21:54
newz2000adiroiban: what happens with this?21:56
knomenewz2000, i suppose there are ways to "preload" the text. that would look like it appeared immediately, but the overall page load time would be the same.21:56
newz2000yeah21:57
adiroibannewz2000: that is the format for json containing the translated strings21:57
adiroibanor in our case21:57
adiroibanit will contain a single string21:57
adiroibanpo2json will generate a similar structure21:57
newz2000the generated .js file will probably need to have one more line of js besides this json, is that doable?21:57
adiroibannewz2000: sure21:57
newz2000ok21:57
newz2000I like it, lets move forward21:58
adiroibanis just that the rest of the code should expect to receive/use a similar json structure/object21:58
adiroibannewz2000: still, since the text is „resource is German”21:59
adiroibannevermind :)21:59
* newz2000 never minds21:59
cjohnstonadiroiban: can you help me set this up at some point?22:00
adiroibancjohnston: sure22:00
cjohnstonfam just got home, so must go for now.. we can talk later about it :-)22:00
adiroibanjust link me a bzr branch22:00
cjohnstonhttps://code.edge.launchpad.net/~chrisjohnston/website-localization/local22:01
cjohnstonbbiab22:01
adiroibancjohnston: hm This branch has not been pushed to yet.22:02
cjohnstonadiroiban: its brand new22:02
adiroibancjohnston: ok. here is a more specific exemple of the json http://paste.ubuntu.com/413913/22:05
adiroibanif your js script can handle such input22:05
adiroibanwe are done :)22:05
knomei'm sure we can work that out with js22:05
adiroibanwe should :)22:05
knomewe are. i know a codemonkey. ;)22:06
adiroibanme too22:06
* cjohnston doesnt know js22:08
cjohnstonlol22:08
knomeyou don't have to know js if you know somebody who knows22:08
cjohnston17.05.19 < adiroiban> if your js script can handle such input   <-- that was my way of saying i dont know if it can22:08
knome;)22:09
knomei know it can22:09
knomedon't worry22:09
cjohnstonI did this: http://people.ubuntu.com/~chrisjohnston/local/file.js.en22:09
cjohnstonlol22:09
cjohnstonbut I do like to learn stuff22:09
knomehehe22:09
cjohnstonwill you two be around later?22:10
knometoday, no. i'm going to bed in 2022:10
cjohnstoni jealous22:10
cjohnstonim22:10
knomeheh ;]22:10
cjohnstonadiroiban ?22:10
knomeanyway, i'll be around here tomorrow 8AM UTC22:10
adiroibancjohnston: not sure22:10
knomeor sth22:10
cjohnstonok22:11
cjohnstoni work tomorrow22:11
cjohnstonso prolly thursday we can work then22:11
knomeprobably22:11
knomei'll ask a js guru to join us22:11
adiroibanbut we can continue via email22:11
knomesure. the best way to actually get hold of me is irc though.22:12
cjohnstondo yall wanna setup a time?22:12
knomei often forget emails.22:12
knomei don't know about the js guy's schedules yet22:13
cjohnstonok22:13
cjohnstonill be here all day thursday22:13
knomeokay22:13
cjohnstonoff to give the kids showers22:13
cjohnstonoh yay!22:13
knomehf22:13
cjohnstonbbl22:13
knomenight everybody22:17

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!