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

Bug #1289695 reported by Bartosz Kosiorek on 2014-03-08
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Dropping Letters
Medium
Victor Thompson
Sudoku App
Medium
Bartosz Kosiorek
Ubuntu Calculator App
Medium
Victor Thompson
Ubuntu Calendar App
Low
David Planella
Ubuntu Music App
Medium
Unassigned
Ubuntu Terminal App
Medium
Unassigned
Ubuntu UI Toolkit
Fix Released
High
Tim Peeters
Ubuntu Weather App
Medium
Bartosz Kosiorek
ubuntu-ui-toolkit (Ubuntu)
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
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
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: калькулятор"

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) on 2014-03-21
Changed in ubuntu-calendar-app:
status: New → Triaged
importance: Undecided → Low
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 :)

Christian 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)
Bartosz Kosiorek (gang65) wrote :

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

@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
>

Changed in ubuntu-ui-toolkit:
status: New → In Progress
importance: Undecided → High
milestone: none → march-2014
David Planella (dpm) on 2014-03-27
tags: added: bacon-dogfood
David Planella (dpm) on 2014-03-27
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
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
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)?

Christian 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

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
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) on 2014-04-10
Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Released
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)
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) on 2014-04-16
Changed in ubuntu-calculator-app:
assignee: Bartosz Kosiorek (gang65) → David Planella (dpm)
Changed in ubuntu-calendar-app:
assignee: Bartosz Kosiorek (gang65) → David Planella (dpm)

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

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)

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)

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  Edit
Everyone can see this information.

Other bug subscribers