ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #10554
Re: [Scopes] Easy (?) questions
On Thu, Nov 20, 2014 at 12:44 AM, Michi Henning
<michi.henning@xxxxxxxxxxxxx> wrote:
2) Is there a way to mark strings in the settings.ini file as
translatable, and then to put those strings in the installed
settings.ini file?
There is a mechanism with some tools built around gettext. I believe
Pete may be able to comment on this. But, in general, you can
localize DisplayName and DisplayValues in the settings.ini file
directly, without any additional tool support. This is described here:
http://developer.ubuntu.com/scopes/tutorials/adding-settings-to-your-scope/
But I can't localize these things myself -- I need the translators to
do that. Thus, I need to get these strings into the POT file. And
ideally, dropping the resultant PO files into my repository would
automatically add the localized strings to to the .ini file, without me
doing anything by hand.
But before I work myself into a lather about this, I'll see what Pete
has to say.
3) Is there a way to put text in the emblem, rather than an image.
Right now, I'm using SVG images to fake it, but the alignment and
font size is noticeably off.
I don't think this is possible at the moment.
Is it worth submitting a bug about this?
4) Is there any way to run an additional query to load more results
when then user scrolls to the bottom of the query page? I'm
purposefully not trying to get all the results at first, but the
pull-for-more behavior seems very natural and a compliment to the
pull-for-refresh at the top.
There is no support for incremental result delivery such as this. If
you have lots of results, the shell will automatically add a "Shore
more" button or some such, but there is no way for explicit paging
that would fetch more results from the backend in response to a user
action right now.
In my case, Google with throttle me if I try to request too many
results at once. Having the ability to query the server only when the
user needs more results would be very useful. Shall I create a bug
here?
6) If (5) is not possible, is it possible to mark the query results
as invalid, so that the remote server is hit for all the results
again?
I believe you can attach a canned query URI to a preview action, in
which case the query will be run by the shell.
I've done that for other things, but that will show the query right
away. (Or, it should. See bug #1335761.) I don't want to run the
query now, or possibly ever. I only want it to be rerun if the user
returns to the previous view.
FWIW, the OnlineAccountClient::PostLoginAction::InvalidateResults seems
to do this, though I've never tested it from a preview page.
Thanks for all the answers, even if they weren't the ones I wanted,
Robert
Follow ups
References