/srv/irclogs.ubuntu.com/2010/03/19/#ubuntu-website.txt

=== jpds_ is now known as jpds
newz2000hi, lets do a test on this language thing… can someone here who has their browser's lang preference set to something other than English tell me what their lang is?14:09
cjohnstonhey newz200014:09
newz2000hey cjohnston14:09
cjohnstongetting some good feedback14:10
newz2000yeah, talking to sysadmin about possible solutions to this14:10
cjohnstonI was wondering after reading all the python things if maybe there could be a python translation of the website based on the lang pref14:12
newz2000ok, just had an off-the-record discussion with one of the sysadmins14:16
newz2000he prefers the static content and apache content negotiation approach14:16
cjohnstonuh oh14:16
newz2000cjohnston: see this:14:17
newz2000http://people.canonical.com/~mnuzum/tmp/cn/14:17
newz2000and then this: http://people.canonical.com/~mnuzum/tmp/cn/file.js14:17
newz2000if you prefer english, the second link should say "en" for lang14:18
newz2000german would be de and french fr14:18
cjohnstonok..14:18
newz2000This will be quite easy to manage in launchpad too14:18
newz2000I will open a ticket to get formal approval and hosting resources for it14:19
cjohnstonok..14:19
cjohnstoncan you subscribe me (if its an LP ticket)14:20
newz2000it's not an LP ticket but I'll cc you14:20
cjohnstonok14:20
cjohnstonty14:20
newz2000cjohnston: do you understand what's goign on with this?14:33
cjohnstonnot really..14:33
newz2000It's a cool feature built into apache called content negotiation14:34
newz2000it checks the user's preferences (sent as headers to the server) and can send different responses back based on those headers14:34
newz2000So if your browser prefers german (de) then when you request this file: http://people.canonical.com/~mnuzum/tmp/cn/file.js14:35
newz2000it will see if file.js.de is there, and if so, send it14:35
cjohnstonok..14:35
cjohnstonso will this still do the little 5 word link thingie?14:36
newz2000yes, and it will have multiple benefits14:36
cjohnstonok..14:36
newz2000because there is one js for each language, there is no need for complex js that decides what the user's language is and responde differently14:36
newz2000so each js file is responsible for simply showing a link. It could be as simple as:14:37
cjohnstonok..14:37
cjohnstonseems to me that this would make the tech side a thousand times easier?14:37
newz2000document.write('<a href="http://wiki.ubuntu.com/Lang/de">German Help</a>');14:37
newz2000yes14:37
newz2000also, there's not really any dyanmic content14:37
cjohnstonright14:37
newz2000it's static files, which makes the sysadmins mucho happier14:37
cjohnston:-14:38
cjohnston:-)14:38
newz2000and, translations are easier, because there are just a few strings defined in the js file, managed ina bzr branch14:38
cjohnstondo you have a little bit of free time later?14:38
newz2000your best chance at free time today is right now14:38
cjohnstonok..14:38
newz2000but if you're busy we can try to meet up later on14:38
cjohnstonso.. with these changes.. what do we need as far as outside help14:38
newz2000still need some technical decisions14:39
cjohnstonnah.. i can talk now.. the other can wait14:39
newz2000would like to see what the community says for js. My simple example may not be flexible enough14:39
newz2000we need a bzr branch and a launchpad project14:40
newz2000and we need localization14:40
cjohnstonwe already have the project14:40
newz2000and the sysadmins need to say "yes" to this and provide the resources14:40
cjohnstonok..14:40
newz2000(that's it)14:40
cjohnstoncool14:40
cjohnstoncan you when you get time (if you havent already) reply to the list about this way of doing it (i dont understand it well enough to do that) and see what they say14:41
cjohnstonplease14:41
newz2000ok.14:43
cjohnstonty14:43
cjohnstonneed to work on school.. ping if ya need me14:47
newz2000ok, I think we're good here14:47
=== thorwil_ is now known as thorwil
cjohnstonnewz2000: any idea if they will reply to all when they reply to your ticket?21:56

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