=== salem_ is now known as _salem [02:00] I'm not quite sure if this is the right place to ask, but is it normal for xgettext and/or msgmerge to get a few things wrong? It decided there was already a translation for a string I just added to the program, which is obviously wrong.. [02:31] sethj: what do you mean it decided there was already a translation? [02:33] dobey, probably not the best wording, but when I updated the template file and merged the po files, when I opened one it had put a translated string under some of the strings I had *just* added. I translated them in Google Translate and they (of course) didn't come out to what the original was (how could they..) [02:33] Does that make more sense? [02:34] not really. that sounds like you pulled in po files that already had a translation for that string [02:36] xgettext/msgmerge don't magically translate strings, so if a translation exists in the po file, for a specific msgid, then it was already there in your po files, or in some po files you merged in [02:41] well that couldn't have happened because this string hasn't been in the template until today.. [02:41] Weird. [02:42] well, did you find the translation in the po file, or when you ran the program? [02:43] if the latter, the string could also be used in a library that your program is using, and thus the translation is being loaded from that library's translation domain [02:43] I found it in the updated po file. I was examining it to make sure everything had worked ok. (first time dealing with internationalization, still figuring it out) [02:44] ok, i don't know how you updated the po file, but if it's there, then something you did added it. xgettext/msgmerge are fairly simple applications, and they don't go around translating strings for you [02:44] :) [02:46] anyway, must go. good luck [02:47] yeah, I knew it couldn't have translated it for me.. Thanks anyway dobey! === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun [14:35] appdevs how can I use a custom bottom edge hint ? I don't want an icon/text I want a draggable Triangle{} to reveal the bottom edge. === chihchun is now known as chihchun_afk [19:12] Hi to all [19:12] i have a question according online account [19:12] can somebody help me [19:12] ??? pleaseeee [20:01] What's the best way to enumerate block devices for userland apps? Is there an api or does one simple use *dev ie /dev/disks/by-uuid or w.e ? [20:09] udisks? unless your app is a confined phone app or such [20:14] yea i'm looking at udisks now, i see how it's used from udisksctl and i'm guessing from code it's used through dbus? [20:14] Hello. I have a question about chroots, CMake and Ubuntu IDE. I want to use libpng (and other libs) in my application. First, is it proper to install needed packages inside chroot and link to them, or is there some other way? [20:16] i don't know all the API. there might be a libudisks or something [20:18] yes, there is a -dev package, so i'm hoping that provides a direct api to it... If not I may just parse /dev/disks after all. [20:18] MaxEd, uhm does your application have something to do with chroots or are you using a chroot for testing your app? [20:19] I'm using chroot for building my app for Ubuntu Touch. [20:19] If I understand you correctly and you just need use of the libs, you would just have the lib marked as a dependency [20:19] so that way if your app is installed from a package manager, your dependency will automatically get installed as well. [20:21] Well generally the chroot still won't have much to do with things like that, and the best way is deff. though dependencies and the package manager... you need the lib -dev packages (to build) and the user will just need the lib packages [20:21] I'm not so sure, because libpng is not in standard installation of chroot, and I read somewhere that "anything not installed in chroot by default can disappear at any moment", but OK, this I'll have to try. Now, to my second question. [20:23] I've installed libpng-dev into source chroot via "click ... install". Now, when I run cmake via "click ... run cmake", cmake can find libpng and everything is OK. However, when I run CMake from Ubuntu IDE, it can't find libpng. I wonder what can cause this differency in beaviour? [20:25] Well I don't know what ubuntu ide you're speaking of myself, but a likely scenario is environment variables ... [20:25] a lot of IDE's will read them when they load [20:25] if you change something ( by installing the package or setting it up somehow ) while the IDE is open, then it won't have those variables loaded [20:25] try closing your IDE completely and reopening it and see if that changes anything [20:26] Ubuntu IDE is a part of Ubuntu SDK and it's a fork of Qt Creator. I tried closing it, of course, but it did not help. [20:27] or, if you're working inside a chroot, even if the IDE knows to operate inside of that chroot'ed environment, if the IDE is opened outside of the environment it won't have the same environment variables [20:28] so you may have to feed it some preprocessor deffs manually, its difficult to say, your best bet would be a full log of the build and see why it fails and you should get some answers [20:28] MaxEd: anything not installed in the development chroot is not an official part of the SDK [20:28] MaxEd: which means, there are no api/abi guarantees for it [20:29] It's usually easier to develop apps outside of the chroot and then add it to your chroot setup once you know it already builds properly [20:29] zezu_: no; the chroot is how apps for the phone are compiled [20:29] dobey, OK, but that does not answer the question - how do I use other libraries? Do I static-link them, do I supply dynamic libraries inside Click package (is it even possible?), or maybe I should not use them at all? [20:30] MaxEd: either of those is doable [20:31] as for the "difference in behavior" perhaps you installed in a different chroot than the sdk is using [20:31] dobey, that's the nice thing about using Qt and having a cross platform api though, you can still handle most of your development outside depending on the application [20:32] dobey, OK, thanks. Hm, schroot -l only gives me two chroots (soruce: and chroot: for the same arch/SDK). Should I look anywhere else? [20:32] I don't know the details of course so it may not be applicable here, but i know I develop plenty of apps for an ARM board on x64/linux and even on windows [20:32] MaxEd: i don't know. you are trying to build allegro right? [20:32] dobey, right [20:32] zezu_: it has nothing to do with the architecture [20:33] zezu_: it's about the supported SDK of the target platform [20:34] dobey, I know I was just pointing out for pure app development it's possible to do outside if he doesn't need platform specific code. [20:34] the ubuntu phone doesn't use Xorg, or gtk+ for example, and things that are "easy to do" outside of the chroot may not be supported or valid when building for the ubuntu phone [20:34] dobey, actually, I already built it and added support for Mir, but only the bare-bones version, without PNG or TTF support, which is what I'm trying to add now. [20:36] I wish I could at least get the command Ubuntu IDE runs, so I could reproduce it from console and see how it differs from what I'm doing when I run CMake myself... [20:37] I guess I can use strace to find it :) [20:37] MaxEd: not sure what would be the best option here, exactly. since you're not just building an application but trying to create a version of allegro that developers can use on the phone, it makes some choices a little more difficult, since they'll have to pull in allegro and its dependencies both [20:37] MaxEd: it should print it in one of the output tabs at the bottom of qtcreator [20:37] MaxEd: or you can just go into the build dir and examine the cmake cache i guess [20:38] dobey, should it? I think it only prints commands it runs when you build app, but "Run CMake" is a separate taks, and does not get logged. But I'll check it! [20:40] good luck [20:40] Thanks. Going to reboot to Ubuntu now :) [20:40] Oh, one more question. [20:41] When I run SDK, it always asks me to update my chroot [20:41] Then it fails to install 2 packages (they are "held back"), and so the process repeats every time I start it. [20:41] what packages? [20:41] I've seen it reported as a bug, but it seems to be fixed now [20:42] libpay2 and pay-service [20:42] yes probably. sometimes apt doesn't quite behave as we expect it should and that will happen, but usually is fixed fairly quickly when it does [20:43] yeah that should be fixed now. new version landed today [20:43] Ah, yes I see it now. [20:43] OK, thanks everyone! [20:47] https://igurublog.wordpress.com/2012/03/11/udisks2-another-loss-for-linux/ << wow, i'm hoping this is just rant but seems kindof relevant... perhaps only because I know little of linux development internals