From amk at amk.ca Mon Apr 26 15:51:22 2010 From: amk at amk.ca (A.M. Kuchling) Date: Mon, 26 Apr 2010 09:51:22 -0400 Subject: [PSF-Volunteers] [pydotorg-www] International Symbol - request for addition In-Reply-To: References: <20100425005041.GA8709@andrew-kuchlings-macbook.local> <20100425150448.GC8960@andrew-kuchlings-macbook.local> <19412.26851.64570.285062@montanaro.dyndns.org> Message-ID: <20100426135122.GB4455@amk-desktop.matrixgroup.net> On Sun, Apr 25, 2010 at 01:18:11PM -0600, Carl Trachte wrote: > > An interesting exercise might be to implement a bit of JavaScript which > > rotates the phrase "Non-English Resources" among several (four to six?) > > languages: German, French, Chinese, Spanish, etc. The rotation need not > > reflect the location of the cursor. Movement by a few pixels within the map > > would rotate to the next translation. > > This sounds cool, but I can't make it happen right now. It is always > something we can augment with whatever gets implemented later, right? (cc'ing to psf-volunteers; this is a pydotorg-www thread about the new non-English resources link and world-map graphic; you can see it on http://www.python.org/dev/, for example. Does someone want to volunteer to write the necessary JavaScript function?) Certainly it could be added later. If someone wants to assemble the necessary list of translations and write the JavaScript, I can certainly add it. Also, anchors could be added to the wiki page so that the German text link could go straight to the German section with /moin/Languages#de or whatever. --amk From grubert at users.sourceforge.net Mon Apr 26 20:47:32 2010 From: grubert at users.sourceforge.net (grubert at users.sourceforge.net) Date: Mon, 26 Apr 2010 20:47:32 +0200 (CEST) Subject: [PSF-Volunteers] [pydotorg-www] International Symbol - request for addition In-Reply-To: <20100426135122.GB4455@amk-desktop.matrixgroup.net> References: <20100425005041.GA8709@andrew-kuchlings-macbook.local> <20100425150448.GC8960@andrew-kuchlings-macbook.local> <19412.26851.64570.285062@montanaro.dyndns.org> <20100426135122.GB4455@amk-desktop.matrixgroup.net> Message-ID: this way (i am javascript ignorant)
[Python 
resources in languages other than English]
On Mon, 26 Apr 2010, A.M. Kuchling wrote: > On Sun, Apr 25, 2010 at 01:18:11PM -0600, Carl Trachte wrote: >>> An interesting exercise might be to implement a bit of JavaScript which >>> rotates the phrase "Non-English Resources" among several (four to six?) >>> languages: German, French, Chinese, Spanish, etc. The rotation need not >>> reflect the location of the cursor. Movement by a few pixels within the map >>> would rotate to the next translation. >> >> This sounds cool, but I can't make it happen right now. It is always >> something we can augment with whatever gets implemented later, right? > > (cc'ing to psf-volunteers; this is a pydotorg-www thread about the new > non-English resources link and world-map graphic; you can see it on > http://www.python.org/dev/, for example. Does someone want to > volunteer to write the necessary JavaScript function?) > > Certainly it could be added later. If someone wants to assemble the > necessary list of translations and write the JavaScript, I can > certainly add it. Also, anchors could be added to the wiki page so > that the German text link could go straight to the German section with > /moin/Languages#de or whatever. > > --amk > _______________________________________________ > PSF-Volunteers mailing list > PSF-Volunteers at python.org > http://mail.python.org/mailman/listinfo/psf-volunteers > -- From jeremy at tuxmachine.com Tue Apr 27 06:02:10 2010 From: jeremy at tuxmachine.com (Jeremy Baron) Date: Tue, 27 Apr 2010 00:02:10 -0400 Subject: [PSF-Volunteers] [pydotorg-www] International Symbol - request for addition In-Reply-To: References: <20100425005041.GA8709@andrew-kuchlings-macbook.local> <20100425150448.GC8960@andrew-kuchlings-macbook.local> <19412.26851.64570.285062@montanaro.dyndns.org> <20100426135122.GB4455@amk-desktop.matrixgroup.net> Message-ID: Hi, You'd probably want to throttle it so that it won't change more than once in ~1/2 sec. (tunable) The changes below should do it. -Jeremy before this line (function definition) function language_rotator( Element ) { add this: var lastetime = 0; and in the first line of that function definition add this: var thisetime = (new Date()).getTime(); if ((thisetime - lastetime)<400) { return; } lastetime = thisetime; On Mon, Apr 26, 2010 at 14:47, wrote: > this way (i am javascript ignorant) > > > > > > ? ? > ? ? > > > > On Mon, 26 Apr 2010, A.M. Kuchling wrote: > >> On Sun, Apr 25, 2010 at 01:18:11PM -0600, Carl Trachte wrote: >>>> >>>> An interesting exercise might be to implement a bit of JavaScript which >>>> rotates the phrase "Non-English Resources" among several (four to six?) >>>> languages: German, French, Chinese, Spanish, etc. ?The rotation need not >>>> reflect the location of the cursor. ?Movement by a few pixels within the >>>> map >>>> would rotate to the next translation. >>> >>> This sounds cool, but I can't make it happen right now. ?It is always >>> something we can augment with whatever gets implemented later, right? >> >> (cc'ing to psf-volunteers; this is a pydotorg-www thread about the new >> non-English resources link and world-map graphic; you can see it on >> http://www.python.org/dev/, for example. ?Does someone want to >> volunteer to write the necessary JavaScript function?) >> >> Certainly it could be added later. ?If someone wants to assemble the >> necessary list of translations and write the JavaScript, I can >> certainly add it. ?Also, anchors could be added to the wiki page so >> that the German text link could go straight to the German section with >> /moin/Languages#de or whatever. >> >> --amk From georg at python.org Tue Apr 27 08:41:47 2010 From: georg at python.org (Georg Brandl) Date: Tue, 27 Apr 2010 08:41:47 +0200 Subject: [PSF-Volunteers] [pydotorg-www] International Symbol - request for addition In-Reply-To: References: <20100425005041.GA8709@andrew-kuchlings-macbook.local> <20100425150448.GC8960@andrew-kuchlings-macbook.local> <19412.26851.64570.285062@montanaro.dyndns.org> <20100426135122.GB4455@amk-desktop.matrixgroup.net> Message-ID: <4BD6872B.4050702@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 26.04.2010 20:47, schrieb grubert at users.sourceforge.net: > this way (i am javascript ignorant) > > > > Urgh... JS without jQuery feels so clunky... :) Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEARECAAYFAkvWhyoACgkQN9GcIYhpnLCbBACfUWymIkEyXMDnU1AKGAvF1ITg tVAAnRFgNMWCh3tkFgTgXHP7aAyLptY2 =nVqp -----END PGP SIGNATURE----- From grubert at users.sourceforge.net Tue Apr 27 13:34:07 2010 From: grubert at users.sourceforge.net (grubert at users.sourceforge.net) Date: Tue, 27 Apr 2010 13:34:07 +0200 (CEST) Subject: [PSF-Volunteers] [pydotorg-www] International Symbol - request for addition In-Reply-To: <4BD6872B.4050702@python.org> References: <20100425005041.GA8709@andrew-kuchlings-macbook.local> <20100425150448.GC8960@andrew-kuchlings-macbook.local> <19412.26851.64570.285062@montanaro.dyndns.org> <20100426135122.GB4455@amk-desktop.matrixgroup.net> <4BD6872B.4050702@python.org> Message-ID: > > Urgh... JS without jQuery feels so clunky... :) > > Georg but it is only 20 lines of code and the request did not mention "add a lot of other things to www.python.org" anyway the real questions are * does it work on ie * are the languages fixxed or dynamic or configurable (halfdynamic) * should the link below change too ? maybe not, because it is the entry point, the toc. cheers On Tue, 27 Apr 2010, Georg Brandl wrote: > Am 26.04.2010 20:47, schrieb grubert at users.sourceforge.net: >> this way (i am javascript ignorant) >> >> >> >> -- From georg at python.org Wed Apr 28 01:37:59 2010 From: georg at python.org (Georg Brandl) Date: Wed, 28 Apr 2010 01:37:59 +0200 Subject: [PSF-Volunteers] [pydotorg-www] International Symbol - request for addition In-Reply-To: References: <20100425005041.GA8709@andrew-kuchlings-macbook.local> <20100425150448.GC8960@andrew-kuchlings-macbook.local> <19412.26851.64570.285062@montanaro.dyndns.org> <20100426135122.GB4455@amk-desktop.matrixgroup.net> <4BD6872B.4050702@python.org> Message-ID: <4BD77557.1040406@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 27.04.2010 13:34, schrieb grubert at users.sourceforge.net: >> >> Urgh... JS without jQuery feels so clunky... :) >> >> Georg > > but it is only 20 lines of code and the request did not mention "add a lot > of other things to www.python.org" Oh, I didn't mean to suggest using jQuery for this. It was just an observation :) Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEARECAAYFAkvXdVcACgkQN9GcIYhpnLAOkACfVfV5N6Xx7YrFR0nqC2zgSVc0 A+sAn0dQ+V5tu6ww0w2NBdD13udLzsqK =cMir -----END PGP SIGNATURE----- From grubert at users.sourceforge.net Thu Apr 29 21:12:52 2010 From: grubert at users.sourceforge.net (engelbert gruber) Date: Thu, 29 Apr 2010 21:12:52 +0200 Subject: [PSF-Volunteers] [pydotorg-www] International Symbol - request for addition In-Reply-To: <4BD77557.1040406@python.org> References: <20100425150448.GC8960@andrew-kuchlings-macbook.local> <19412.26851.64570.285062@montanaro.dyndns.org> <20100426135122.GB4455@amk-desktop.matrixgroup.net> <4BD6872B.4050702@python.org> <4BD77557.1040406@python.org> Message-ID: so anything i can do (in my spare^H^H^H^Htolen time) did anyone recognize that it is 20 lines javascript (the simplest thing that possibly could do) and more than 200 lines of email. swayne said 1989 or so the next big thing is social and internet! cheers From amk at amk.ca Thu Apr 29 21:40:57 2010 From: amk at amk.ca (A.M. Kuchling) Date: Thu, 29 Apr 2010 15:40:57 -0400 Subject: [PSF-Volunteers] [pydotorg-www] International Symbol - request for addition In-Reply-To: References: <20100425005041.GA8709@andrew-kuchlings-macbook.local> <20100425150448.GC8960@andrew-kuchlings-macbook.local> <19412.26851.64570.285062@montanaro.dyndns.org> <20100426135122.GB4455@amk-desktop.matrixgroup.net> <4BD6872B.4050702@python.org> Message-ID: <20100429194057.GA6658@amk-desktop.matrixgroup.net> On Tue, Apr 27, 2010 at 01:34:07PM +0200, grubert at users.sourceforge.net wrote: > * does it work on ie > * are the languages fixxed or dynamic or configurable (halfdynamic) I think a fixed list is fine, of the 5-10 most common languages listed on /moin/Languages. > * should the link below change too ? maybe not, because it is the > entry point, the toc. Probably not. It's mildly annoying that a link w/ German text would drop people on a big list of languages, but we probably shouldn't include every single language we have a page for. Thanks for your JavaScript code. I won't be able to look at it until next week because Python 2.7beta2 is due this weekend and I'm trying to finish the release notes. Maybe someone else will take a look before then. --amk