/srv/irclogs.ubuntu.com/2011/01/05/#ubuntu-manual.txt

j1mchi all - in case anyone is interested, there will be a docs team meeting this sunday, 1/9, at 17:00 UTC.00:57
j1mcwe're going to be discussing Unity docs in Natty00:58
j1mcfeel free to join, if you are so inclined.  meeting info is here: https://wiki.ubuntu.com/DocumentationTeam/MeetingAgenda00:58
godbykThanks, j1mc!01:21
godbykI'll add it to my calendar.01:21
j1mcthanks, godbyk01:22
dakergodbyk, ping22:09
godbykdaker: pong22:10
dakeri want you to update the translations22:10
godbykokay. what's involved in that?22:11
godbyk(it's been a long time since I've done anything with the website. :-))22:12
dakerok i'll show you22:12
dakergodbyk, https://translations.launchpad.net/ubuntu-manual-website/trunk/+export22:14
dakerdownload the mo format22:15
godbykdone.22:15
godbyknow we'll wait for an email.22:15
godbyk(takes a few minutes sometimes.)22:15
godbykdaker: okay, got the translations tarball22:20
dakerok wait a sec i am branching the trunk22:20
godbyk'kay.22:20
dakergodbyk, ok put them in a folder somewhere22:21
godbykcan I just extract the files to ubuntu-manual.org/includes/languages/ and let it overwrite the existing stuff?22:21
godbykdaker: okay, they're in a temp folder.22:22
dakerthere is a file called "script" in ubuntu-manual.org/includes/languages/22:22
godbykI see it.22:22
dakercopie it in where you extracted the files22:23
dakerthen run ./script22:23
godbykokay22:23
godbykone moment.22:23
godbykdo I need to give it any arguments?22:24
dakerno22:24
godbykokay, done.22:24
dakernow overwrite ubuntu-manual.org/includes/languages/ withe those files22:25
godbyk'kay.22:25
godbykwhat's the script do, btw?22:26
godbykdaker: okay, I've finished copying the files over.22:28
godbykdaker: did I break anything? :)22:28
dakerwait i'll see22:28
dakernot sure some strings are not translated22:32
dakergodbyk, i need you to fix another thing22:32
godbyksure thing22:32
dakeropen ubuntu-manual.org/includes/pages22:33
dakerdownloads.php22:33
dakerdo you see the function Set_Params22:34
dakerremove the lines between:22:35
dakeredition = $("#edition").val();22:35
godbykno includes.. just pages/22:35
dakeryes yes22:35
godbykI see the function.22:35
dakerremove the lines between:22:36
dakeredition = $("#edition").val();22:36
dakerand22:36
dakerlanguage = $("#language_list").val();22:36
godbykleave the edition = and language = lines?  or remove those, too?22:36
dakerleave them22:36
godbykokay. so just remove the $.ajax(...); bit.22:36
godbykdone22:36
dakeryaeh22:36
dakernow add this one22:37
daker    function Set_Params2(){22:37
daker    //Assign selected item to tne url22:37
daker    edition = $("#edition").val();22:37
daker    $.ajax22:37
daker({22:37
daker    type: "POST",22:37
daker    url: "ajax_manuals.php",22:37
daker    data: { edition: edition },22:37
daker    cache: false,22:37
daker    success: function(html)22:37
daker    {22:37
daker    $("#language_list").html(html);22:37
daker    }22:37
daker});22:37
daker    language = $("#language_list").val();22:37
dakerif ($("#screen").is(":checked"))    22:37
daker    optimzed = "screen";22:37
daker    else22:38
dakerif ($("#print").is(":checked"))22:38
daker    optimzed = "print";22:38
daker    Download();22:38
daker    22:38
daker    }22:38
godbykdaker: can you throw that on a pastebin site?22:38
godbyk(it'll be easier to copy that way)22:38
dakerok22:38
godbykdo you want me to add that above or below the Set_Params function?22:38
dakerhttp://paste.ubuntu.com/550847/22:39
dakeras you like22:39
godbyk'kay. done.22:40
dakergodbyk,22:41
daker$("#edition").change(Set_Params);22:41
dakerchange it to22:41
daker$("#edition").change(Set_Params2);22:41
godbykjust the edition one?  (leaving the language, screen, and print as Set_Params?)22:42
godbykdaker: done22:42
dakeryes22:43
dakerthanks22:43
dakersome strings are not translated don't why22:43
godbykhave I broken anything yet?22:43
godbykhmm.. did something in the original html get changed and the pot file wasn't updated and uploaded to launchpad?22:44
dakerlemme check launchpad22:44
godbyk'kay.22:45
godbykdaker: just don't get all the translators angry with us! :-)22:45
daker22:45
dakerone last thing22:48
dakergodbyk,22:48
godbykdaker: all the strings I've seen so far appear to be translated.  (I'm looking at the Dutch translation.)22:49
dakeropen ubuntu-manual.org/includes/structure.php22:49
dakerline 15522:49
godbykdaker: if I change that will is piss off the translators? :)22:50
godbykdaker: updated22:50
dakerupdated what ?22:50
godbykdaker: I added 2011 to the copyright string.22:51
dakerLoL man22:51
dakergodbyk, can you just leave ツ 2010 ?22:52
godbykthough if I wanted to be really nice to the translators, I'd read the translated string and do a find/replace to replace 2010 with 2010–2011.  (then the text would be translated.)22:52
godbyksure, I can leave it.22:52
godbykwhat'd you want me to edit?22:52
dakerline 15522:53
dakerCopyright © 201022:53
dakerchange it to22:53
daker© Copyright 201022:53
godbykdaker: done22:54
dakercan you replace the – with -22:55
godbykdaker: done22:57
dakerdamn it22:57
dakerwhy it's not working22:58
dakerthe copyright is still in english :s22:58
daker© Copyright 2010 The Ubuntu Manual Team - Some rights reserved22:58
dakeraj i see22:59
dakergodbyk, change the string with22:59
daker© Copyright 2010 The Ubuntu Manual Team - some rights reserved22:59
godbykdaker: done.23:00
godbykshould it by © or ©?23:00
dakergodbyk, it works ツ23:00
godbykawesome23:00
dakeri think we are set23:01
dakerhannie will be happy23:01
godbykis there a way to get the translated text into a string so I can do a find/replace on it within php?23:01
godbykshe will definitely be happy!  thanks for helping out with this.23:01
dakercan you rephrase ?23:01
godbykI'd like to do something like this:23:02
godbyk$temp = getTranslatedString('copyright 2010');23:02
godbykthen substitute "2010-2011" in place of 2010.23:02
godbykand then echo the new string back out.23:03
godbyk(basically, I want to fix the copyright date without requiring everyone to retranslate it.)23:03
dakerhmm i see23:03
dakeri think the only way to do it is23:04
dakerto download the po files from lp23:04
dakerthen replace copyright 2010with "copyright 2010 - 2011" using the sed command23:05
dakerthen compile the po files23:05
dakeri can do that but not for now23:06
godbykno, that's too much trouble. :-)23:06
dakerok23:06
godbykoh, I see how it works now.23:06
godbyk__ returns a string, so it'll be easy.23:07
godbykI was mis-reading the code.23:07
dakerah yes yes23:07
dakeri can do it right now23:07
godbykdaker: done23:07
godbyknow it says 2010-2011 instead of 2010.23:08
godbykand it's still translated.23:08
godbykyay! :)23:08
godbykdaker: oh, hannie asked me if we can translate the Buy the book! star on the front page.  I didn't know if we could or not.23:08
dakergodbyk, impossible it's an image23:09
godbykI figured.  We'd have to create a new image for each language, I s'pose.23:09
godbykWe'll save that sort of work for the new site.23:09
dakeryes23:09
godbykis there anything else you need me to do on the site?23:10
dakerthe new one ?23:10
godbykthe existing/old site.23:12
godbykany other little tweaks while I'm already logged into the server?23:12
dakernow, we are set23:12
dakerno*23:12
godbykcool23:13
godbykwell, thanks again for your help, daker.23:13
godbykI saw your interview/blog post recently.23:13
godbykLooks like you've been designing website for other projects now, too.23:14
godbykI feel a bit jealous. :)23:14
dakeri just got my ubuntu membership ツ23:14
dakeri mean yesterday23:14
godbykOh, wow. Congratulations!23:14
daker:D23:15
dakerany progress on the manual ?23:15
godbyknot that I've heard about.23:22
godbykI'm going to sit down this weekend and force myself to finish the index.23:22
dakerok23:23
dakeri hope we will provide something before the end of the month23:24
godbykme, too.23:24
godbykit'll be embarrassing if natty is released before the maverick manual. ;-)23:24
godbykTime for dinner. I'll be back in a bit.23:29
dakertime to bed ツ23:29

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