[01:58] ok... [01:58] how do I get the bugs for a project? [01:58] I'm obviously brain dead [01:58] because what I'm trying isn't working [01:58] well [01:58] what are you trying [01:58] lp.bugs.search(project=udp) [01:59] where udp == lp.projects['unity-distro-priority'] [01:59] I've also tried with project= the string value [01:59] udp.searchTasks() [01:59] OOPS-0afa8a389ada3e4afbf779e05f2ee47f [01:59] https://lp-oops.canonical.com/oops.py/?oopsid=0afa8a389ada3e4afbf779e05f2ee47f [02:26] hey [02:26] I'm trying to add a bug tag [02:26] not sure if it worked or not [02:26] the web page isn't showing it [02:26] but I'm wondering if that is just replication lag [02:26] bug.tags.append('foo'), followed by bug.lp_save() [02:27] will that work? [02:29] wgrant, lifeless: can you edit bug tags with the api? [02:30] thumper: That's unlikely to work, but you can edit them. [02:30] I think you have to set the whole thing. [02:30] Possibly as a list, or possibly as a string. [02:30] * wgrant checks. [02:31] wgrant: thanks [02:31] thumper: Set a new list and it should work. [02:31] wgrant: ok, I'll try that [03:46] Question: can I set up automatic sync. of translations for a specific branch? [03:46] I know I can get it set for a specific series. [04:11] Here is a slightly better explanation: http://askubuntu.com/q/105801 [04:13] george_e: I don't think that's supported. [04:13] Code and translations are normally in the same branch. [04:14] wgrant: I tried that with an earlier branch and it was no end of headaches. [04:14] Launchpad just dumped the .po files in the root directory of the branch. [04:14] The vast, vast majority of projects have them in the same branch. [04:14] It will export them to the path with which they were imported. [04:15] wgrant: It will? [04:15] ...and where will it put new translations? [04:17] Actually, are you talking about imports or exports? [04:18] Launchpad will only *import* from a series branch, but you can tell it to export to any. [04:18] I'm not quite sure how the path determination works; I don't know that much about Launchpad Translations. [04:18] but eg. if you look at http://bazaar.launchpad.net/~stellarium/stellarium/auto-po/revision/5124 you'll see it normally exports to sensible paths. [04:28] wgrant: I didn't realize the two operations were independent. [04:28] I've set up automatic export to that branch now. === Ursinha` is now known as Ursinha === Ursinha is now known as Guest37626 [07:24] hey guys... could someone guide me with translations? [07:50] ESphynx, what kind of guidance do you need [07:50] sagaci: our layout i sort of organized the .mo way, which launchpad is saying it doesn't support :( [07:51] we already have a Chinese and Spanish translation mostly done, and I can't figure out how to make it work :P [07:52] within our repository, we have project subfolders where .pot file get automatically generated at the root... and within the ecere folder for example, we have e.g. locale/zh_CN/LC_MESSAGES/ecere.po [07:53] ESphynx, you could try http://jarfil.net/convert/msgunfmt.php [07:53] i'm wondering what changes would be required for things to work smoothly with launchpad? [07:53] sagaci: I have the .pot/.po files that's not the problem [07:53] the problem is the directory structure [07:54] lanuchpad seems to want ecere/zh.po [07:54] ah ok [07:54] I have loacle/zh_CN/LC_MESSAGES/ecere.po [07:54] fair enough [07:57] I could move ecere.pot into locale/ and keep the source translations as zh.po, es.po ... [07:57] but there would be many locale/ subfolders throughout the project , e.g. ecere/locale/zh.po , ide/locale/zh.po [07:57] I'm wondering whether that would work or not [07:57] shouldn't be too hard to reorganise [07:57] i'm reluctant to have ecere/ecere/zh.po or ecere/locale/ecere/zh.po [07:58] i'm just wondering what would work === lag` is now known as lag === czajkowski changed the topic of #launchpad to: https://launchpad.net/ | Help contact: - czajkowski | Launchpad is an open source project: https://dev.launchpad.net/ | This channel is logged: http://irclogs.ubuntu.com/ | User Guide: https://help.launchpad.net/ | Support: https://answers.launchpad.net/launchpad | For packaging help: join #ubuntu-packaging [09:01] Good morning === StevenK changed the topic of #launchpad to: https://launchpad.net/ | Help contact: czajkowski | Launchpad is an open source project: https://dev.launchpad.net/ | This channel is logged: http://irclogs.ubuntu.com/ | User Guide: https://help.launchpad.net/ | Support: https://answers.launchpad.net/launchpad | For packaging help: join #ubuntu-packaging [09:23] StevenK: you didn't like the - :) [09:26] I did not. :-) [09:26] I needed an extra one for my smile. [09:57] ohai, is the task to process the reports being submitted via ubuntu-bug working now? I am filing about about unity and it has been 10 minutes, still on processing stage [09:59] rye: yes ubuntu-bug works fine here [10:00] hello, the multi-projects bug feature (https://help.launchpad.net/Bugs/MultiProjectBugs) is available for projects that are hosted in different launchpad instances too?, probably across different networks? [10:01] did launchpad just die ? [10:01] * apw is getting 'Uh oh!' messages [10:01] ah, now 503 error [10:01] czajkowski, your ubuntu-bug killed launchpad, booo [10:01] apw, rye: 10:00 - 10:05 is database update window I think [10:01] and we are back, still not filing a bug [10:02] oh is it ... hmmm [10:03] odony, sorry, i wonder whether it could affect the bug filing @ 15-25 minutes ago [10:04] rye: don't think so [10:04] rye: stil having issues? [10:04] interesting, second ubuntu-bug unity is pretty much doing the same === popey_ is now known as popey [10:05] sure it's not just unity hanging ? [10:05] and searchign the queue of bugs? [10:05] czajkowski, i mean when the bug report web page is opened, it says that bug report is being processed, oh, nevermind, the second attempt completed successfully [10:06] ok so lp does go down for a short period each day for maintenace [10:06] perhaps you got in the middle of that window [10:06] czajkowski, oh, and the first one completed too. Next time please kick me from the channel and say to come in 20 minutes if the problem still persists [10:07] rye: it's fine [10:07] :) [10:07] rye: We turn cronjobs like that off for about 15 minutes around database outages (which we just had, as czajkowski said). [10:10] wgrant, ah, then this explains my issue completely [10:20] i'm back :) === Mission-Critical is now known as MissionCritical [10:20] anyone had suggestions regarding my translations? [10:26] ESphynx: what translations? === chrisccoulson_ is now known as chrisccoulson [10:35] czajkowski: the ones for Ecere hehe [10:35] within our repository, we have project subfolders where .pot file get automatically generated at the root... and within the ecere folder for example, we have e.g. locale/zh_CN/LC_MESSAGES/ecere.po, i'm wondering what changes would be required for things to work smoothly with launchpad? [10:35] I could move ecere.pot into locale/ and keep the source translations as zh.po, es.po ...but there would be many locale/ subfolders throughout the project , e.g. ecere/locale/zh.po , ide/locale/zh.po, I'm wondering whether that would work or not... [10:36] ESphynx: hmm honesly I'm not sure, but if you give me your email address I'll find out for you and let you know if you like [10:36] I need to fined jtv and see if he knows [10:36] Found him, you have [10:37] jtv: morning wasn't sure if youw ere about and was going to mail you if you're busy re ESphynx question above [10:37] Morning :) [10:37] ESphynx: two things [10:38] First is a sidenote: "zh.po" won't work, because there are two very different versions of written Chinese that are both arguably the "standard' version. Always say either zh_TW (for Traditional Chinese) or zh_CN (for Simplified Chinese). [10:39] We'd better note that because otherwise you might get everything else right and it might be completely unclear why the PO files weren't being imported. :-) [10:40] Second is the actual answer to your question. :-) [10:40] In Launchpad, the standard directory structure is as described in https://help.launchpad.net/Translations/YourProject/ImportingTemplates [10:41] (May take some clicking from there to get to the right bit — please hang on, I'm looking for it) [10:42] jtv: The problem is, we have our own directory structure in the project... e.g. we already have Spanish and Chinese. [10:42] and we use our own i18n system, which uses the gettext format, but our own tools... [10:42] There are one or two alternative directory structures that will also work, but they're a bit brittle and poorly understood. [10:42] So the .pot files get automatically generated in each project's folder... e.g. we have sdk/ecere/ecere.pot for the ecere project (sdk/ecere) and sdk/ide/ide.pot for the ide project (sdk/ide) [10:43] That structure for the templates is perfect for launchpad. === shadeslayer_ is now known as shadeslayer [10:43] and the source .po files should be somewhere under sdk/ecere/ , prefereably under sdk/ecere/locale/ [10:43] for the translations [10:43] right now, our translations for ecere are in sdk/ecere/locale/zh_CN/ecere.po [10:44] The standard naming scheme would be sdk/ecere/zh_CN.po [10:45] (So: one template per directory, PO file in the same directory as the template, and the PO file's name consisting of .po [10:45] ) [10:45] * czajkowski ha a lot to learn about .PO [10:46] jtv: ESphynx has 12 imports in the queue [10:47] ESphynx: there are other ways to do this, but they're nowhere near as convenient. [10:47] jtv: that's what I don't want, all the translations at the top of the project... [10:47] I see. [10:47] jtv: sdk/ecere/locale/zh_CN.po would be "ok" [10:47] PoEdit automatically changes .po to .mo when saving though, which is why I'd have preferred the file being called "ecere.po" [10:47] would save from having to copy stuff around... [10:48] Would it be doable to move the template down the tree? So for example, sdk/ecere/locale/ecere.pot? [10:48] yes that is possible. [10:48] but then the subfolder is locale/ [10:48] so wouldn't that confuse launchpad? [10:48] having ecere/locale/ecere.pot and ide/locale/ide.pot ? [10:50] Should be fine; about the worst I can imagine is if these come from a bzr branch, and the branch approver might get confused. But there's ways to deal with that: [10:51] we have a git->bzr auto importer [10:51] there's no way to have sdk/ecere/locale/zh_CN/ecere.po hey? [10:51] If the branch import approver tries to pick the "locale" part as the domain name, it won't approve anything because they'll all be called "locale." But you can work around that by manually approving the templates, and then the approver will just note "hey I know this file — and so I know where it goes." [10:52] that's what I was worried about :| [10:52] If this is indeed a problem, you'll need to deal with it only once per new template per release series. [10:53] After that, the template's path will be remembered. [10:53] per new template? [10:53] Yes, every time you add a template. [10:53] ah ok. that shouldn't be often so that's not a problem [10:53] but then it will know where to find the .po? [10:53] Right. There is also a way to have sdk/ecere/locale/zh_CN/ecere.po, but it's not as nice. [10:53] The .po should be in the same directory as the template. [10:53] That's how it finds .po files. [10:54] So any given directory with translation files will have a .pot and a bunch of .po files. [10:54] hmm ok. [10:54] es.po, zh_CN.po, and so on. [10:54] what's the way though? [10:54] it's so much easier to just save the .po file and get the .mo file :) (which we embed within the application resources) [10:55] You can do it in one of two ways: [10:56] (1) manually approve each PO file (so that's once for every language for every template in every release series), specifying manually which template the translation is for. Launchpad will remember where the file with that exact path should go. [10:56] (2) Upload the translation not to the release series, but on the page for either the template or that exact language. [10:57] In case (2), there are two dangers to bear in mind. [10:58] First: if you upload just an individual PO file, your browser won't tell Launchpad its path, just its name. So it'll be called something like ecere.po which is no help at all in figuring out which file goes where. [10:59] Second: if you upload the PO file as part of a tarball, make sure there are no other translations in that tarball because Launchpad will take whatever you upload to (for example) the "es" translation of the "ecere" template as being a Spanish translation for ecere. [10:59] If your uploads come from a branch, none of that will affect you of course. [11:00] With uploads from a branch, the branch import approver won't know what to do with your naming scheme and so give up. The files will stay on the queue as Needs Review, and later the "regular" approver (part of what we call the translations import queue gardener) will come along and try its own rules for matching the file to a known translation. [11:01] The gardener will notice if the release series had exactly 1 translation file with this exact path, and take the upload as an update of that file. [11:02] It'll slow things down, and you'll have to approve the first upload for each language/template/series manually. But it would work. [11:02] uploads from a branch... what id we do all through git that then goes to-> bzr hehe [11:02] * czajkowski is rather glad jtv was here [11:02] czajkowski: next week you can do a harder one. :-) [11:02] ESphynx: oh, you mean move the files around? [11:03] Actually, some softlinks in the branch _might_ work. [11:03] jtv: I'm copying this for fugure reference and so I can re read it over and over to learn [11:03] jtv: I mean, all uploads done through git ... [11:04] That's no problem. [11:04] I guess you've got the bzr branch set up to import from the git repo; shouldn't make any difference. [11:05] yes that's i've got [11:05] so hmm.. anyways to just get Launchpad to realize i've got Spanish and Chinese translations already? hehe [11:05] right now the .pot files are not uploaded because they are generated on building the projects [11:06] but I could add them, say in ecere/locale/ecere.pot ide/locale/ide.pot [11:06] and the CHinese translation is in ecere/locale/zh_CN/LC_MESSAGES/ecere.po [11:06] that's really what I'm hoping for: having current translations show up on Launchpad, and interest Launchpad translators in contributing :) [11:06] I'm not completely sure but I think the branch importer would pick up any .po file in the branch and upload it. [11:08] The way it normally works is: you update your .pot or .po, commit, push the change to your git repo; Launchpad pulls in the change, mirrors it into your bzr branch; the translations system picks up the changed .pot/.po file and puts it on the import queue; one of the two automated approvers figures out which language and which template it's for; the importer processes the file; and the UI updates. [11:08] yeah. that's what I'm hoping happens :) So I would definitely have to add the .pot files, right? [11:09] Yes. There is a capability for building gnome-intltool templates internally, but I'm not sure we'll keep it. [11:10] (That capability means that projects that are set up in just the right way can push a _code_ change and Launchpad's translation UI will pick up the changes in translatable strings.) [11:12] jtv: what I've done is added the $"string" and $"context"."string" syntax in eC [11:12] So Launchpad probably won't ever support that :P hehe, I've manually uploaded the .pot files earlier though... but I don't know what that will do, if anything at all :P [11:12] eC? [11:12] jtv: Yes that's the language the SDK is written in and is for writing :P [11:12] Ah! [11:13] If there's a pretty "deep" toolchain between your source tree and your gettext files, maybe you should just generate the translation files to a separate branch. [11:13] jtv: i'm OK with just committing the .pot files in locale/ [11:14] OK, that keeps things simple. :) [11:14] but would translations in locale/zh_CN/LC_MESSAGES/ecere.po be found then? [11:14] I think a test run should work on staging.launchpad.net, by the way. Might be worth playing with it there. [11:15] locale/zh_CN/LC_MESSAGES/ecere.po *might* fit an alternative directory layout that we have some legacy code for... Not sure. [11:16] But that code is old and we'd love to clean it up — which might affect what layouts will or won't work. [11:16] How about locale/zh_CN/ecere.po ? [11:20] How does staging.launchpad.net work? [11:22] ESphynx: it's a copy of the real thing that we wipe and re-initialize periodically. [11:22] We also deploy our changes there for testing, before they go to the production server. [11:22] ah ok ;) [11:22] It doesn't run _all_ the services that the real launchpad runs, of course. In particular, not outgoing email. :) [11:23] https://translations.staging.launchpad.net/ecere/trunk/+imports [11:23] the whole review process thing is what worries me... why isn't it automated? [11:24] There's lots of automation, but there are cases where we need a human to decide. [11:24] That used to be a privileged operation, and so we never really got around to making that process more friendly and efficient. [11:25] This file contains the logic behind the gardener's import approval: http://bazaar.launchpad.net/~launchpad-pqm/launchpad/devel/view/head:/lib/lp/translations/model/translationimportqueue.py [11:26] (You may have to reload that page if it fails) [11:27] ESphynx: I guess that upload on staging was done manually — as you can see we don't get the full file path. [11:28] jtv: it was... i guess there's no way to match the .po file manually right [11:28] ESphynx: in that source file I just linked to, search for _guess_multiple_directories_with_pofile — it documents some "legacy" directory structures it should support. [11:29] thansk [11:29] Yes, you can match the .po file manually. Click the "pencil" icon next to "No import target selected yet." [11:29] oh, I can do it myself? [11:29] (If you see no icon, you may need to log in separately to the staging server) [11:29] Yes, you can do that yourself. Used to be privileged, but now I think you just need to be one of the project owners. [11:29] I don't mind doing things manually, but i was worried this had to be done by someone at Launchpad hehe [11:29] Or maybe even the uploader. [11:30] No, used to be that way — thankfully it isn't any more. But we'd love it to be more user-friendly! [11:30] that would be perfect. [11:30] You'll note that you can edit the path on that approval form. [11:30] though I might still move the .pot to locale/ and have it committed [11:30] That would definitely be best. Save you a lot of delays and manual work. [11:31] UI rant: that pencil to me looks like an Exclamation part. [11:31] Getting fast feedback can be really helpful. [11:31] exclamation point* [11:31] Yes, it takes some getting used to. [11:31] Problem is, we need it in so many places that it gets hard to insert something clearer (and larger) every time. [11:31] how long does it take for bzr to pick up git stuff? [11:32] Erm… don't know. Maybe jelmer would know. [11:32] 'morning jtv, ESphynx [11:33] ESphynx: once the import is created it usually takes only a couple of minutes for the import to start. You should see progress on the page while the import is running. [11:33] ESphynx: just as an experiment for the approval, try pretending that ecere.pot is a PO file; use the dropdown at the top. Then you'll see that a translation also gets a dropdown to let you select what language it's for. [11:33] it's quite a bit delayed... my last commit from hours ago isn't there yet [11:33] jelmer: I mean to wake up and do it? [11:33] I set up the import months ago [11:33] ESphynx: if it's an existing import, it will be updated every 4 hours [11:33] 4 hours ah ok thanks [11:33] ESphynx: you can also hit "Import Now" on the web page for the import [11:34] oh you can! awesome. [11:34] I'll give all this a try right now then [11:34] jtv: thanks a lot for the help :) [11:34] np — good luck! [11:34] btw hwat's with Wayland??? [11:35] I'll have to support that for my GUI toolkit to run on Ubuntu? [11:35] ESphynx: as far as I know Wayland is still some time away [11:35] ESphynx: but the Ubuntu channels are probably a better place to ask about that than here. [11:36] ah yes. hehe, just curious. [11:36] hmm, would here be a good place to ask for help getting Ecere into Ubuntu? [11:37] e.g. the project has a 'need-packaging' tag hehe [11:40] ESphynx: my guess would be that #ubuntu-packaging or maybe #ubuntu-devel are better places for that. [11:41] thanks :) [12:33] "No header found in this pofile" -- my .pot files need headers? :| === tsimpson_ is now known as tsimpson [13:02] Line 315: Unexpected keyword: msgctxt ? [13:02] Launchpad doesn't support msgctxt? [13:04] or msgctxt should be before msgid ... === yofel_ is now known as yofel [13:52] hmm... Spanish (Spain) translations don't seem to show up when showing Spanish :| [13:54] hi [13:54] will launchpad finally get sortable tables? [13:55] https://code.launchpad.net/~linaro-maintainers has 111 branches and no way to sort them alphabetically... [13:55] mrevell: might know more about that [13:57] hrw, I'd *love* to do that but we don't have a plan to do it just yet. There are a number of similar UI issues I'd like us to address in the code.lp.net [13:57] mrevell: is there any public list of planned things to do in launchpad (other then 'who knows, maybe in 2031' :) [13:58] hrw: patches are always welcome :) [13:58] :) [13:58] just 'Spanish' seems to work [13:59] czajkowski: prefer to waste time in other projects ;d [13:59] hrw, Some parts of the Launchpad team are focusing on projects other than Launchpad for the next few months, so there's nothing public right now. [13:59] mrevell: ok [13:59] thanks for info [14:00] No problem. [15:13] Hi! [15:13] I wanted to request a code import [15:13] but the url already exists. [15:13] https://code.launchpad.net/~deejay1/sparkleshare/master [15:14] what can I do in order to get the latest code import from sparkleshare? [15:15] any ideas? [15:15] MoonMaker: there already is an import - just use that import [15:15] but this import is suspended [15:15] since 2011 [15:16] MoonMaker: looking at the details, it seems like Launchpad can't import this branch since it uses git submodules [15:16] ahh ok, yes sparkleshare is using it [15:17] thank you very much for your help. I wanted to create a daily package....thats life [15:43] MoonMaker: it's not very useful to request another import unless the history has been rewritten to remove the submodules. [15:44] hmm, I thought maybe its possible to change the format in github [15:44] so I started a fork [15:45] MoonMaker: no, you'd have to rewrite the history to exclude the submodules.. there is only one git format [15:45] k, and you dont know if it is possible automaticly with github? [15:46] automatically [15:46] MoonMaker: no, github doesn't have a way to do that for you [15:46] k, then we have to delete this import. Sorry for extra work. [15:47] np === czajkowski changed the topic of #launchpad to: https://launchpad.net/ | Help contact: | Launchpad is an open source project: https://dev.launchpad.net/ | This channel is logged: http://irclogs.ubuntu.com/ | User Guide: https://help.launchpad.net/ | Support: https://answers.launchpad.net/launchpad | For packaging help: join #ubuntu-packaging [18:51] hey [18:51] Pls help me, how can I use dput with active ftp instead of passive ftp ? http://askubuntu.com/questions/105957/how-may-i-upload-my-source-package-with-active-ftp-over-dput-to-launchpad [18:52] gotwig: try a url in the form aftp: rather than ftp: [18:54] mgz: Unknown upload method: aftp [18:56] gotwig: may not be possible then [18:59] mgz: wtf o.0? === Quintasan_ is now known as Quintasan [19:16] mgz: man dput.cf [19:20] lifeless: I'm not the one who was asking [19:21] mgz: I know [19:21] feel free to post that response to his askubuntu link I guess [19:21] mgz: but if you're going to answer, you may as well know the answer ;P [19:23] 'd misread the question as relating to bzry things, not being misc debian [19:24] fair enough [19:32] hey, is it possible using launchpadlib to determine if someone has contributed a merge proposal /patch successfully to a particular branch? === ereslibre_laptop is now known as ereslibre [19:59] jono: Hmm, I guess you could iterate over the successful merges and check the associated project? Like "for merge in lp.people(me).getMergeProposals(status="Merged")" and check if merge.target_branch.project == the project you want to compare against? [20:00] Ampelbein, sounds good, many thanks :-) [20:29] jono: Ampelbein: note that this could take a very long time :) [20:29] lifeless, is there a faster way to do it? [21:10] Hi - could someone re-score the 2 builds waiting in my ppa here: [21:10] https://launchpad.net/~jamesodhunt/+archive/bug-935585/+packages ? I'd [21:10] like to get some feedback on an upstart update overnight from affected users. === nyuszika7h is now known as nyan-cat