/srv/irclogs.ubuntu.com/2014/03/08/#ubuntu-app-devel.txt

aquariusmight need a little tiny bit of poking in the qml to read out the folder that the qml file is installed in and pass it to the html00:00
aquariusassuming that a qml file can know its own path, otherwise (horrors) it'll need a *C++* extension, which would be rubbish.,00:00
dakerhmm wired it's using the ubuntu app launcher but in the browser-app00:03
dakerit works using*00:04
aquariusyeah, it won't work in browser because you're not loading from a file url then00:04
aquariusand you can't CORS file: URLs either00:04
aquariuschrome has the --let-me-load-file-urls-with-xhr switch (it's not called that, but it's called something like that) precisely for this reason :)00:04
dakerbut it's same engine :)00:05
aquariusyeah, it's a config switch00:05
aquariusbut letting unprivileged web pages load file URLs with xhr would be a hole in the security policy the size of the Moon ;)00:05
dakermaybe i should continue to look at the i18n stuff00:06
aquariuswhy would you be loading file URLs with the browser app anyway?00:06
aquariusif you've got files on the device, then you're a click package, at which point you can use the ubuntu-html5-app-launcher :)00:06
dakerya00:07
dakeraquarius: i trying to implement an i18n mechanism00:07
dakerusing <link rel="prefetch" type="application/i18n" href="locales.json" />00:07
aquariusdaker, yeah, there are a few of those around. Are you doing it from scratch, or using some existing js port of gettext, or does it back-end onto the qsTr stuff that Qt alrady provides?00:08
dakerscratch but really simple thing00:09
dakerlocales.json will have something like :00:09
daker{00:09
daker  "fr":"locales/fr.json",00:09
daker  "en":"locales/en.json"00:09
daker}00:09
dakerthen depending on the navigator.language select the correct one00:10
aquariusah, man, you're inventing your own storage format for translated strings?00:10
aquariusdpm will cry a million million tears if you tell him that :)00:11
aquariusthere are gettext ports already -- then people get the tools to create translations :)00:11
dakerhttps://developers.google.com/chrome/web-store/docs/i18n#details00:11
dakerhttps://github.com/mozilla-b2g/gaia/tree/master/locales00:12
aquariusI stand corrected00:12
dakercom/mozilla-b2g/gaia/tree/master/shared/locales00:12
dakerhttps://github.com/mozilla-b2g/gaia/tree/master/shared/locales00:13
aquariushowever, that Google stuff describes how to localise your app's metadata, not your actual app, unless I'm missing something?00:13
* aquarius looks at the boot2gecko stuff :)00:13
dakerhttps://github.com/mozilla-b2g/gaia/blob/master/shared/js/l10n.js00:13
aquariusomg. I have to ship HTML that looks like <span data-l10n-id="lots-of-work">lots of work</span>?00:15
aquariusI suppose there isn't really a better way to do it00:15
aquariusbut, ouch.00:15
dakerhttps://developer.chrome.com/extensions/i18n00:15
aquariusI apologise for the accusation, though. This looks like the way everyone else is doing it too, yeah00:15
dakerwe were just brainstorming (me & Alex), so basically those were one of the method to do it00:16
aquariusI am a bit annoyed that whoever invented this invented a whole new thing which has *no* tooling rather than using gettext which has loads of tooling00:17
aquariusbut, well, it's invented now.00:17
dakerso i am just testing it, if you have a better idea we can discuss it :)00:17
dakeri am not really sure how gettext will work00:18
aquariusThis stuff totally does not document how to translate your HTML. Obviously the b2g stuff does it by looking for *[data-l10n-id] but nothing actually *says* that anywhere.00:19
aquariusIf you're creating all your strings from JavaScript then you are already doing it wrong. :)00:19
aquariusneed to work out a way to roundtrip the lang.json files into and out of rosetta :)00:20
dakeraquarius: the b2g is only for b2g not for apps00:22
aquariusreally?00:22
aquariusbah.00:22
GabrieleGit works really well now! :D00:23
dakeraquarius: https://developer.mozilla.org/en-US/Apps/Build00:24
dakerthe localisation section has nothing on it00:24
dakerso there is no official way to do i18n in FF OS00:25
dakeraquarius: http://jsgettext.berlios.de/doc/html/po2json.html hhh :)00:27
aquariusya00:27
aquariusnot the same json format, though, although it's not far off :)00:27
aquariusI was just checking the appdev FAQ for ffos to see if it even mentions translations00:28
aquariuswhich it does not ;)00:28
dakerhere https://developer.mozilla.org/en-US/Apps/Build00:29
dakerLocation00:29
dakerAdvice for creating location-based applications.00:29
dakerbut nothing in it00:29
aquariusI imagine that'll be about geoloc rather than languages, though00:29
aquariushttps://github.com/recurser/jquery-i18n is pretty common. jquery, of course, sigh, but the underlying idea and formats might be useful to look at00:30
aquarius(why, why, why is this a jquery plugin, why)00:31
dakerthe issue is how to do translation for the HTML00:34
aquariusyeah00:36
aquariusthe b2g way seems about the most sensible way00:36
aquariusI hate the idea of putting data-l10n-id on everything00:36
aquariusbut I hate all the alternatives more :)00:37
aquariusI'm not at all sure about having to think up unique ids for all your translateable strings, though00:37
aquariusgettext's way of using the string *as* its ID is better, I think.00:37
aquariusso you'd just do <span data-l10-translatable>Hello, world</span>00:38
aquariusand then "Hello, world" would be the ID00:38
aquariusI do not know how the b2g stuff handles nested elements, though.00:38
aquarius<p>Hello, <em>world</em></p>00:38
aquariusWhere you really want to translate "Hello, world" as a string, not as two separate independent strings.00:39
aquariusI figured that someone somewhere would have already solved all these problems, like gettext has for desktop apps :)00:39
vthompsonall, anyone around that wants to create a construct/prototype for the "bottom edge" implementation seen today? From the presentation, blog post, and what I've seen from Shuttleworth on G+, it seems like Canonical may be trying to source the implementation from the community. Maybe we can get a jump start on this for the SDK team?01:37
kerjavayes we see u01:40
kerjavayour welcome01:41
kerjavayou have a lot of instruments ^^01:41
sarnoldkerjava: are you sure you're in the right place? I see your half of the conversation but no one elses..01:41
kerjavaagreed ...01:42
aquariuskerjava, I think you're watching Jono's Q&A session? The video isn't live -- that was broadcast earlier today01:42
kerjavai see01:42
kerjavathe timing was uncanny lol01:42
kerjavalatter all ^^01:43
snapplejacksthe tabbed interface seems kind of clunky, is there a trick i'm missing or does it always require multiple gestures?02:32
=== coderz is now known as Guest43300
Guest43300Hello, I have a problem when compiling my program. I am trying to (#include <array>), but I reciecve this error:07:09
Guest43300#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.  #error This file requires compiler and library support for the \   ^07:09
sarnoldmake sense so far..07:11
DanChapmangood morning07:13
sergicohi12:08
sergicolooking for help on running qt apps on ubuntu touch phone12:09
funky1hi there, i'm trying to compile a package but having some trouble telling in configure option the right path to a library, can someone have a look and help me  out? http://pastebin.com/niVaPY0D12:51
PaoloRotolonik90, ping18:06
nik90PaoloRotolo: pong18:40
FulLinuxonNexus7Hi All!19:37
FulLinuxonNexus7Trying to get a version of Linux on my Nexus 7 2013 flo Tablet19:38
FulLinuxonNexus7Ubuntu touch is ok.. but I'm trying to find something more functional19:39
FulLinuxonNexus7seems there are solutions for the earlier nexus 7 model but none seem to be working on mine19:39
FulLinuxonNexus7Any thoughts or suggestions would be glady appreciated!19:40
FulLinuxonNexus7ShareITStuff@gmail.com19:40
FulLinuxonNexus7Found something... http://www.mattfischer.com/blog/?p=50219:56
FulLinuxonNexus7Kali linux on Nexus 7 201319:56
FulLinuxonNexus7Incase anyone actually reads the chatrooms19:57

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