=== salem_ is now known as _salem | ||
sethj | 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:00 |
---|---|---|
dobey | sethj: what do you mean it decided there was already a translation? | 02:31 |
sethj | 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 |
sethj | Does that make more sense? | 02:33 |
dobey | not really. that sounds like you pulled in po files that already had a translation for that string | 02:34 |
dobey | 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:36 |
sethj | well that couldn't have happened because this string hasn't been in the template until today.. | 02:41 |
sethj | Weird. | 02:41 |
dobey | well, did you find the translation in the po file, or when you ran the program? | 02:42 |
dobey | 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 |
sethj | 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:43 |
dobey | 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 |
dobey | :) | 02:44 |
dobey | anyway, must go. good luck | 02:46 |
sethj | yeah, I knew it couldn't have translated it for me.. Thanks anyway dobey! | 02:47 |
=== 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 | ||
om26er | 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. | 14:35 |
=== chihchun is now known as chihchun_afk | ||
maxvanceffer_ | Hi to all | 19:12 |
maxvanceffer_ | i have a question according online account | 19:12 |
maxvanceffer_ | can somebody help me | 19:12 |
maxvanceffer_ | ??? pleaseeee | 19:12 |
zezu_ | 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:01 |
dobey | udisks? unless your app is a confined phone app or such | 20:09 |
zezu_ | 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 |
MaxEd | 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:14 |
dobey | i don't know all the API. there might be a libudisks or something | 20:16 |
zezu_ | 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 |
zezu_ | MaxEd, uhm does your application have something to do with chroots or are you using a chroot for testing your app? | 20:18 |
MaxEd | I'm using chroot for building my app for Ubuntu Touch. | 20:19 |
zezu_ | 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 |
zezu_ | so that way if your app is installed from a package manager, your dependency will automatically get installed as well. | 20:19 |
zezu_ | 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 |
MaxEd | 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:21 |
MaxEd | 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:23 |
zezu_ | Well I don't know what ubuntu ide you're speaking of myself, but a likely scenario is environment variables ... | 20:25 |
zezu_ | a lot of IDE's will read them when they load | 20:25 |
zezu_ | 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 |
zezu_ | try closing your IDE completely and reopening it and see if that changes anything | 20:25 |
MaxEd | 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:26 |
zezu_ | 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:27 |
zezu_ | 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 |
dobey | MaxEd: anything not installed in the development chroot is not an official part of the SDK | 20:28 |
dobey | MaxEd: which means, there are no api/abi guarantees for it | 20:28 |
zezu_ | 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 |
dobey | zezu_: no; the chroot is how apps for the phone are compiled | 20:29 |
MaxEd | 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:29 |
dobey | MaxEd: either of those is doable | 20:30 |
dobey | as for the "difference in behavior" perhaps you installed in a different chroot than the sdk is using | 20:31 |
zezu_ | 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:31 |
MaxEd | 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 |
zezu_ | 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 |
dobey | MaxEd: i don't know. you are trying to build allegro right? | 20:32 |
MaxEd | dobey, right | 20:32 |
dobey | zezu_: it has nothing to do with the architecture | 20:32 |
dobey | zezu_: it's about the supported SDK of the target platform | 20:33 |
zezu_ | 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 |
dobey | 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 |
MaxEd | 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:34 |
MaxEd | 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:36 |
MaxEd | I guess I can use strace to find it :) | 20:37 |
dobey | 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 |
dobey | MaxEd: it should print it in one of the output tabs at the bottom of qtcreator | 20:37 |
dobey | MaxEd: or you can just go into the build dir and examine the cmake cache i guess | 20:37 |
MaxEd | 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:38 |
dobey | good luck | 20:40 |
MaxEd | Thanks. Going to reboot to Ubuntu now :) | 20:40 |
MaxEd | Oh, one more question. | 20:40 |
MaxEd | When I run SDK, it always asks me to update my chroot | 20:41 |
MaxEd | Then it fails to install 2 packages (they are "held back"), and so the process repeats every time I start it. | 20:41 |
dobey | what packages? | 20:41 |
MaxEd | I've seen it reported as a bug, but it seems to be fixed now | 20:41 |
MaxEd | libpay2 and pay-service | 20:42 |
dobey | 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:42 |
dobey | yeah that should be fixed now. new version landed today | 20:43 |
MaxEd | Ah, yes I see it now. | 20:43 |
MaxEd | OK, thanks everyone! | 20:43 |
zezu_ | 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 | 20:47 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!