On 20 Nov 2014, at 16:43 , Robert Schroll <[email protected]> wrote:
> On Thu, Nov 20, 2014 at 12:44 AM, Michi Henning <[email protected]> > 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. There is a tool to do this. You mark the entries that need localizing with an underscore prefix, so the tool can pick them up. The translations then come from catalogs. Pete should be able to give you more detail--I've never used this myself. >>> 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? By all means! >>> 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? Yes, go ahead. It'll most likely end up on a wishlist though. I don't think we'll be able to do this quickly. > >>> 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. Pawel may be able to help here. He knows much more about those interactions than I do. Cheers, Michi. -- Mailing list: https://launchpad.net/~ubuntu-phone Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp

