/srv/irclogs.ubuntu.com/2015/04/29/#ubuntu-app-devel.txt

=== chriadam|away is now known as chriadam
liuxgnik90, ping01:11
liuxghow to get the attributes in javascript when using the "XMLHttpRequest" to parse the xml? I do not want to use "XmlListModel" in QML01:13
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
dholbachgood morning06:29
=== JMulholland_ is now known as JMulholland
dpmbzoltan, kalikiana, zsombi - quick question: someone asked me if responsive localization worked in Ubuntu. That is: how can a text be displayed abbreviated in a form factor where there is not enough space to show it, and then it would display fully (non-abbreviated) in a bigger enough form factor. I'm sure there would be really clever ways to do this, but I guess an easy way to implement it would be to use Layouts and msgctxt to have the same messag08:57
dpme written in each layout, but with a different gettext message context so that each can be translated independently?08:57
kalikianadpm: hmm without having tried itxl, you could use the active layout name as part of the domain name09:06
dpmkalikiana, what's itxl?09:06
kalikianaThat's me failing to type properly :-)09:07
dpmkalikiana, still not sure what you meant, but I think having support for msgctxt would be a more natural way to do it: http://pastebin.ubuntu.com/10937497/09:10
dpmthen you'd need just a domain and one .po/.mo file09:10
kalikianadpm: so what is stopping you from doing just that?09:18
kalikianaAssuming South is the name of a layout here09:18
dpmkalikiana, what's stopping us from using it is the fact that we don't support msgctxt in the i18n API, but I guess it shouldn't be too complex to add it as an optional parameter to the i18n.tr() call09:25
dpmkalikiana, "South" could be the name of a layout indeed, but in general, it can be any string for developers to give more context on the use of that string09:26
dpmso it's like a translator context message,09:26
dpmand when you add it, you can have that translatable string twice in the .po file, which otherwise wouldn't be possible09:27
kalikianadpm: we have i18n.ctr09:28
kalikianathough there's a bug about making it an argument to i18n.tr, the functionality is there09:29
dpmkalikiana, oh, I couldn't see it in the docs - https://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Components.i18n/09:37
dpmout of date perhaps?09:37
kalikianadpm: it's vivid API/ 1.209:38
kalikianastill waiting for current docs to show up there…09:39
kalikianadpm: it's i18n.ctr("South", "S")09:41
kalikianaor dtr respectively09:41
kalikiana*dctr09:41
dpmok, cool, and I see bug 1417680 now too09:42
ubot5bug 1417680 in ubuntu-ui-toolkit (Ubuntu) "Add context to i18n.tr(), deprecate ctr()" [Medium,Confirmed] https://launchpad.net/bugs/141768009:42
kalikianayep, we just noticed a bit late there was no need for the extra function name09:45
=== chriadam is now known as chriadam|away
=== MacSlow is now known as MacSlow|lunch
=== MacSlow|lunch is now known as MacSlow
mhall119zsombi: t1mp: changing a page's flickable seems to have unpredictable results12:48
mhall119for example, I want it to be null when I have enough window height (on the desktop) that it's not worth hiding the header, but then switch to a ListView when there isn't enough height12:50
mhall119so I used flickable: uReadIt.height < units.gu(70) ? postsList : null12:51
mhall119but when switching between them, sometimes the top of the ListView is under the Header when scrolled all the way up, other times it's well below the Header when scrolled all the way up12:51
mhall119am I doing something wrong, or is this a bug?12:51
t1mpmhall119: best not to change the flickable. That was a temporary workaround13:13
t1mpmhall119: in Ubuntu.Components 1.3 I added page.head.visible and page.head.locked properties to properly specify the behavior that you want13:14
t1mpmhall119: stable 1.3 will be released with ubuntu 15.10, but we have an unstable version in our staging now13:14
t1mpwhere unstable means that the APIs are not fixed yet13:14
t1mpmhall119: also, I could imagine that on a larger screen we decide to lock the header by default. But that is up to design.13:16
mhall119t1mp: ok, but until 15.10 I'm stuck with what's possible now13:37
=== rickspencer3_ is now known as rickspencer3
mivoligomhall119: bzoltan: ping ping13:40
bzoltanmivoligo: pong pong13:40
mivoligomhall119 asked me to ping ping ;)13:41
mhall119bzoltan: mivoligo was having the same issue as me with the APP_ID in the Makefile being backwards13:41
mhall119mivoligo: can you pastebin "apt-cache policy qtcreator-plugin-ubuntu-common"13:41
mhall119mivoligo: also, what release of Ubuntu are you on?13:42
bzoltanmhall119: darn ... something is wrong with the PPA13:42
mivoligomhall119: bzoltan: 14.0413:42
bzoltanmivoligo:  mhall119 -> https://launchpad.net/~ubuntu-sdk-team/+archive/ubuntu/ppa/+files/qtcreator-plugin-ubuntu-common_3.1.1%2B15.04.20150421-0ubuntu1~0trusty1_all.deb13:43
mivoligomhall119: http://paste2.org/mj33syAX13:43
mhall119well now, mivoligo has the latest version13:44
mhall119mivoligo: can you test that the bug still exists if you create a new project?13:44
mivoligomhall119: bzoltan: I don't know if I still have the issue, let me check13:44
bzoltanmivoligo: would you please pastebinit /usr/share/qtcreator/templates/wizards/ubuntu/simple-app-qmlproject/Makefile13:45
mivoligobzoltan: http://paste2.org/5k6DPYj913:46
bzoltanmivoligo:  it is correct APP_ID=%ProjectName:l%.%ClickDomain:l%13:48
mivoligobzoltan: mhall119: just created a test project, no issue there13:48
bzoltanmivoligo: _PROFIT_ :D13:49
mhall119ok, so it's still just me :)13:50
mivoligobzoltan: mhall119: I had that issue about a week ago when trying to add translations to Pop That Wrap. dpm helped me find what the problem was13:50
mhall119mivoligo: right,and they fixed it in qtcreator-plugin-ubuntu-common13:51
mhall119you have the latest version with the fix, for some reason apt won't get me that version13:51
mivoligomhall119: are you on 14.04?13:52
mhall119mivoligo: no, 14.1013:55
mivoligomhall119: well, you can just change APP_ID in Makefile for now :)13:58
mhall119mivoligo: I know13:58
mivoligoor update to 14.04 :D13:59
mhall119bzoltan: so you can mark my bug as fix released, and I'll just fix my apt at some point13:59
mhall119mivoligo: or 15.04 :)13:59
mivoligo:)13:59
bzoltanmhall119:  Ok, that is what we will do <- zbenjamin ^13:59
bzoltanmhall119:  but please share with me once you figure out what hides the packages for you14:00
=== _salem is now known as salem_
mhall119bzoltan: will do14:02
=== salem_ is now known as _salem
=== chihchun is now known as chihchun_afk
=== _salem is now known as salem_
akiva-thinkpadhello all16:42
=== chihchun_afk is now known as chihchun
=== davidbarth is now known as dbarth
balloonsakiva-thinkpad, I talked briefly with benjamin about the MP for the AP plugin. He and I are on the same page. I think it makes sense to land just the runconfig approach at first. You agree?18:44
=== aaron__ is now known as ahoneybun
=== aaron__ is now known as ahoneybun
akiva-thinkpadballoons, oh hey20:23
akiva-thinkpadballoons, as I understand it, don't have the menu, just have the runconfig?20:24
akiva-thinkpadIf that is the case, then I disagree for a very simple reason. The menu method is very stable. The run config method is a lot more difficult to impliment20:25
akiva-thinkpadI'll give you an example20:26
akiva-thinkpadI grabbed the core app for the terminal app20:26
akiva-thinkpadAfter building it in qtcreator, I had a compile error,20:27
akiva-thinkpaderror 2 or something. It is failing make for some reason to just run the app on a regular run configuration20:27
akiva-thinkpadNow, I can still go to the menu, and still run tests. Doesn't make sense to me, but it lets me, and works without a hitch.20:28
akiva-thinkpadHowever when I try to run the autopilot run config, it will not let me run it, giving the same make error20:28
* akiva-thinkpad does not like how he explained this.20:29
* akiva-thinkpad will try again.20:30
akiva-thinkpadThe reason I disagree with you and zbenjamin on implementing the Run Configuration first, is because the Menu is much more stable, simple, and reliable in comparison.20:33
akiva-thinkpadWhen the test's output is properly displayed in a application output, I will regard it as stable.20:36
akiva-thinkpadThe reason why the Run Configuration is less stable is because its implementation is more complicated.20:38
mhall119bzoltan: zbenjamin: I've been getting frequent crashes of uReadIt recently, not sure if it's a change I made or something in devel-proposed, http://paste.ubuntu.com/10942067/ shows the error from the last crash20:42
akiva-thinkpadThe reason I say it is more complicated, is because the checklist UI requires memory, the base class I derive from does things which is beyond the functionality needed for my run config, and it is easier to have memory leaks within the run configuration.20:44
akiva-thinkpadah20:50
akiva-thinkpadzbenjamin, I actually forgot about implementing it in the locator20:56
akiva-thinkpadI am just going through your review thanks for taking the time to look at it. I actually forgot to remove the merge proposal, because this is more of a WIP.21:06
oSoMoNnerochiaro, https://code.launchpad.net/~osomon/webbrowser-app/systemwide-search-engines/+merge/257830 is partially based on your code, I’d appreciate if you could review it21:36
=== salem_ is now known as _salem
trickvi_I'm getting ready to make a first contribution so bare with me: I want to add a new on screen keyboard, where would I find the relevant code to look at and hack on?23:51

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