[14:09] <newz2000> hi, 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] <cjohnston> hey newz2000
[14:09] <newz2000> hey cjohnston
[14:10] <cjohnston> getting some good feedback
[14:10] <newz2000> yeah, talking to sysadmin about possible solutions to this
[14:12] <cjohnston> I was wondering after reading all the python things if maybe there could be a python translation of the website based on the lang pref
[14:16] <newz2000> ok, just had an off-the-record discussion with one of the sysadmins
[14:16] <newz2000> he prefers the static content and apache content negotiation approach
[14:16] <cjohnston> uh oh
[14:17] <newz2000> cjohnston: see this:
[14:17] <newz2000> http://people.canonical.com/~mnuzum/tmp/cn/
[14:17] <newz2000> and then this: http://people.canonical.com/~mnuzum/tmp/cn/file.js
[14:18] <newz2000> if you prefer english, the second link should say "en" for lang
[14:18] <newz2000> german would be de and french fr
[14:18] <cjohnston> ok..
[14:18] <newz2000> This will be quite easy to manage in launchpad too
[14:19] <newz2000> I will open a ticket to get formal approval and hosting resources for it
[14:19] <cjohnston> ok..
[14:20] <cjohnston> can you subscribe me (if its an LP ticket)
[14:20] <newz2000> it's not an LP ticket but I'll cc you
[14:20] <cjohnston> ok
[14:20] <cjohnston> ty
[14:33] <newz2000> cjohnston: do you understand what's goign on with this?
[14:33] <cjohnston> not really..
[14:34] <newz2000> It's a cool feature built into apache called content negotiation
[14:34] <newz2000> it checks the user's preferences (sent as headers to the server) and can send different responses back based on those headers
[14:35] <newz2000> So if your browser prefers german (de) then when you request this file: http://people.canonical.com/~mnuzum/tmp/cn/file.js
[14:35] <newz2000> it will see if file.js.de is there, and if so, send it
[14:35] <cjohnston> ok..
[14:36] <cjohnston> so will this still do the little 5 word link thingie?
[14:36] <newz2000> yes, and it will have multiple benefits
[14:36] <cjohnston> ok..
[14:36] <newz2000> because there is one js for each language, there is no need for complex js that decides what the user's language is and responde differently
[14:37] <newz2000> so each js file is responsible for simply showing a link. It could be as simple as:
[14:37] <cjohnston> ok..
[14:37] <cjohnston> seems to me that this would make the tech side a thousand times easier?
[14:37] <newz2000> document.write('<a href="http://wiki.ubuntu.com/Lang/de">German Help</a>');
[14:37] <newz2000> yes
[14:37] <newz2000> also, there's not really any dyanmic content
[14:37] <cjohnston> right
[14:37] <newz2000> it's static files, which makes the sysadmins mucho happier
[14:38] <cjohnston> :-
[14:38] <cjohnston> :-)
[14:38] <newz2000> and, translations are easier, because there are just a few strings defined in the js file, managed ina bzr branch
[14:38] <cjohnston> do you have a little bit of free time later?
[14:38] <newz2000> your best chance at free time today is right now
[14:38] <cjohnston> ok..
[14:38] <newz2000> but if you're busy we can try to meet up later on
[14:38] <cjohnston> so.. with these changes.. what do we need as far as outside help
[14:39] <newz2000> still need some technical decisions
[14:39] <cjohnston> nah.. i can talk now.. the other can wait
[14:39] <newz2000> would like to see what the community says for js. My simple example may not be flexible enough
[14:40] <newz2000> we need a bzr branch and a launchpad project
[14:40] <newz2000> and we need localization
[14:40] <cjohnston> we already have the project
[14:40] <newz2000> and the sysadmins need to say "yes" to this and provide the resources
[14:40] <cjohnston> ok..
[14:40] <newz2000> (that's it)
[14:40] <cjohnston> cool
[14:41] <cjohnston> can 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 say
[14:41] <cjohnston> please
[14:43] <newz2000> ok.
[14:43] <cjohnston> ty
[14:47] <cjohnston> need to work on school.. ping if ya need me
[14:47] <newz2000> ok, I think we're good here
[21:56] <cjohnston> newz2000: any idea if they will reply to all when they reply to your ticket?