Title for all Core apps should be improved/localized for Desktop

Bug #1289695 reported by Bartosz Kosiorek
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Dropping Letters
Fix Released
Medium
Victor Thompson
Sudoku App
Fix Released
Medium
Bartosz Kosiorek
Ubuntu Calculator App
Fix Released
Medium
Victor Thompson
Ubuntu Calendar App
Fix Released
Low
David Planella
Ubuntu Music App
Fix Released
Medium
Unassigned
Ubuntu Terminal App
Fix Released
Medium
Unassigned
Ubuntu UI Toolkit
Fix Released
High
Tim Peeters
Ubuntu Weather App
Fix Released
Medium
Bartosz Kosiorek
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Title for all Core apps could be improved for Desktop.

For example for ubuntu-calculator-app, the title bar displayed:
    qmlscene: calculator

I think it should be localized name "Calculator".

Please take a look at: ubuntu-calculator-app.pot
#: ../.build/ubuntu-calculator-app.desktop.js:1
msgid "Calculator"
msgstr ""

I found following instruction about how to change title in QtQuick:
http://stackoverflow.com/questions/19159928/how-to-change-title-of-a-qtquick-2-window

Related branches

description: updated
Revision history for this message
Bartosz Kosiorek (gang65) wrote :
summary: - Title for all Core apps could be improved for Desktop
+ Title for all Core apps should be improved/localized for Desktop
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

If we can't remove "qmlscene: " then at least localize Window Title (for example "Calculator").

In Russian window title will looks like:
   "qmlscene: калькулятор"

Revision history for this message
Michael Spencer (ibelieve) wrote :

Bartosz, I don't think the method you linked to will work for Ubuntu Touch apps as they aren't using QtQuick Controls.

Alan, just because its initially set by qmlscene doesn't necessarily mean it can't be changed later. Is there some API (perhaps a C++ extension) that could be used to change the title? (It doesn't look like it, but I could be wrong.)

If not, would it be possible to write a very simple QML launcher ourselves that lets us customize the title and maybe do other things like remembering window size and maximized/normal state? I can't imagine that being to hard to do and would make apps written with the Ubuntu SDK feel much more like first-class desktop citizens.

David Planella (dpm)
Changed in ubuntu-calendar-app:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Zsombor Egri (zsombi) wrote :

Title can be controlled from the toolkit, no need to patch anything. The MainView could get a "title" property that must be set by the app developer, and that's it :)

Revision history for this message
Cris Dywan (kalikiana) wrote :

I'm going to propose a change to use the title of the active Page for the window title which would match behavior of desktop apps - terminal shows the server and folder, browser shows the website for some examples. If it turns out that's not enough we can always add an additional property.

Changed in ubuntu-ui-toolkit:
assignee: nobody → Christian Dywan (kalikiana)
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Unfortunately title property is not working for MainView:
ubuntu-calculator-app.qml:32 Cannot assign to non-existent property "title"

Revision history for this message
David Planella (dpm) wrote : Re: [Bug 1289695] Re: Title for all Core apps should be improved/localized for Desktop

@Bartosz, the title property was a proposal, it's not yet implemented

On Wed, Mar 26, 2014 at 2:30 PM, Bartosz Kosiorek <
<email address hidden>> wrote:

> Unfortunately title property is not working for MainView:
> ubuntu-calculator-app.qml:32 Cannot assign to non-existent property "title"
>
> --
> You received this bug notification because you are subscribed to Ubuntu
> UI Toolkit.
> https://bugs.launchpad.net/bugs/1289695
>
> Title:
> Title for all Core apps should be improved/localized for Desktop
>
> Status in Dropping Letters:
> New
> Status in Music application for Ubuntu devices:
> New
> Status in Sudoku game for Ubuntu Touch:
> New
> Status in Calculator application for Ubuntu devices:
> New
> Status in Calendar application for Ubuntu devices:
> Triaged
> Status in Terminal application for Ubuntu devices:
> New
> Status in Ubuntu UI Toolkit:
> New
> Status in Weather application for Ubuntu devices:
> New
>
> Bug description:
> Title for all Core apps could be improved for Desktop.
>
> For example for ubuntu-calculator-app, the title bar displayed:
> qmlscene: calculator
>
> I think it should be localized name "Calculator".
>
> Please take a look at: ubuntu-calculator-app.pot
> #: ../.build/ubuntu-calculator-app.desktop.js:1
> msgid "Calculator"
> msgstr ""
>
> I found following instruction about how to change title in QtQuick:
>
> http://stackoverflow.com/questions/19159928/how-to-change-title-of-a-qtquick-2-window
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dropping-letters/+bug/1289695/+subscriptions
>

Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit:
status: New → In Progress
importance: Undecided → High
milestone: none → march-2014
David Planella (dpm)
tags: added: bacon-dogfood
David Planella (dpm)
Changed in dropping-letters:
status: New → Triaged
importance: Undecided → Medium
Changed in sudoku-app:
status: New → Triaged
importance: Undecided → Medium
Changed in ubuntu-calculator-app:
status: New → Triaged
importance: Undecided → Medium
Changed in music-app:
status: New → Triaged
importance: Undecided → Medium
Changed in ubuntu-terminal-app:
status: New → Triaged
importance: Undecided → Medium
Changed in ubuntu-weather-app:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 0.1.46+14.04.20140404-0ubuntu1

---------------
ubuntu-ui-toolkit (0.1.46+14.04.20140404-0ubuntu1) trusty; urgency=low

  [ Michael Zanetti ]
  * fix collapseOnClick in combination with UbuntuListView (LP:
    #1293996)

  [ Leo Arias ]
  * Added a helper for autopilot tests to override the values of initctl
    vars during tests.
  * Take into account the visibility of the container when making list
    elements visible on the autopilot helpers. (LP: #1275060)

  [ Christian Dywan ]
  * Set the window title based on the Header title (LP: #1289695)
 -- Ubuntu daily release <email address hidden> Fri, 04 Apr 2014 11:03:59 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Fix Released
Revision history for this message
Michael Spencer (ibelieve) wrote :

This works great for pages, but not when the app uses a Tabs component. In that case it defaults back to the app package name, i.e com.ubuntu.clock. Could we have it that it defaults to the app's title, like "Clocks" or "File Manager" (both of those use Tabs)?

Revision history for this message
Cris Dywan (kalikiana) wrote :

Yes. The limitation of tabbed apps will be resolved with https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/optIn-tabsDrawer/+merge/212496.

Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Released
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Ok, so this has now landed, I see Terminal and Music have correct window titles, Clock, Calendar, calculator, dropping letters, sudoku, weather need fixing.

Changed in music-app:
status: Triaged → Fix Released
Changed in ubuntu-terminal-app:
status: Triaged → Fix Released
Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit:
status: Fix Released → In Progress
assignee: Christian Dywan (kalikiana) → Tim Peeters (tpeeters)
Changed in ubuntu-calculator-app:
assignee: nobody → Bartosz Kosiorek (gang65)
Changed in ubuntu-calendar-app:
assignee: nobody → Bartosz Kosiorek (gang65)
Changed in ubuntu-calculator-app:
status: Triaged → In Progress
Changed in ubuntu-calendar-app:
status: Triaged → In Progress
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Released
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

For ubuntu calculator I tried something like:
need to do something like this:

MainView {
    Page {
        title: i18n.tr("Calculator")
    }
}

It changing title but unfortunately it display also additional bar/menu.

See attached screeenshot.
Do you know how to implement it in proper way (to change only title bar)?

Changed in sudoku-app:
status: Triaged → In Progress
Changed in dropping-letters:
status: Triaged → In Progress
Changed in ubuntu-weather-app:
status: Triaged → In Progress
Changed in dropping-letters:
assignee: nobody → Bartosz Kosiorek (gang65)
Changed in sudoku-app:
assignee: nobody → Bartosz Kosiorek (gang65)
Changed in ubuntu-weather-app:
assignee: nobody → Bartosz Kosiorek (gang65)
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

I change application name to for example:
    // TRANSLATORS: This application name should be translated at same way as for ".desktop" file
    applicationName: i18n.tr("Calendar")

It works (the title were changed) but Jenkins tests are failed.

David Planella (dpm)
Changed in ubuntu-calculator-app:
assignee: Bartosz Kosiorek (gang65) → David Planella (dpm)
Changed in ubuntu-calendar-app:
assignee: Bartosz Kosiorek (gang65) → David Planella (dpm)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-calculator-app at revision 239, scheduled for release in ubuntu-calculator-app, milestone 1.6

Changed in ubuntu-calculator-app:
status: In Progress → Fix Committed
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-calendar-app at revision 247, scheduled for release in ubuntu-calendar-app, milestone alpha-1

Changed in ubuntu-calendar-app:
status: In Progress → Fix Committed
Changed in sudoku-app:
status: In Progress → Fix Released
Changed in ubuntu-calculator-app:
status: Fix Committed → Fix Released
Changed in ubuntu-calendar-app:
status: Fix Committed → Fix Released
Changed in ubuntu-weather-app:
status: In Progress → Fix Released
Changed in dropping-letters:
assignee: Bartosz Kosiorek (gang65) → Victor Thompson (vthompson)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:dropping-letters at revision 48, scheduled for release in dropping-letters, milestone Unknown

Changed in dropping-letters:
status: In Progress → Fix Committed
Changed in dropping-letters:
status: Fix Committed → Fix Released
Changed in ubuntu-calculator-app:
status: Fix Released → Triaged
Changed in ubuntu-calculator-app:
status: Triaged → In Progress
assignee: David Planella (dpm) → Victor Thompson (vthompson)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-calculator-app at revision 252, scheduled for release in ubuntu-calculator-app, milestone 1.6

Changed in ubuntu-calculator-app:
status: In Progress → Fix Committed
Changed in ubuntu-calculator-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.