14
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
import Ubuntu.Components 0.1
19
import Ubuntu.Components.ListItems 0.1 as ListItem
18
import Ubuntu.Components 1.1
19
import Ubuntu.Components.ListItems 0.1
20
20
import Ubuntu.SystemSettings.LanguagePlugin 1.0
21
import MeeGo.QOfono 0.2
21
import Ubuntu.SystemSettings.Wizard.Utils 0.1
22
22
import "../Components" as LocalComponents
24
24
LocalComponents.Page {
25
title: i18n.tr("Hello")
26
26
forwardButtonSourceComponent: forwardButton
28
28
UbuntuLanguagePlugin {
36
// Ideally we would query the system more cleverly than hardcoding two
37
// modems. But we don't yet have a more clever way. :(
40
modemPath: manager.modems.length >= 1 ? manager.modems[0] : ""
45
modemPath: manager.modems.length >= 2 ? manager.modems[1] : ""
53
leftMargin: leftMargin
54
rightMargin: rightMargin
55
bottomMargin: bottomMargin
65
wrapMode: Text.WordWrap
67
text: i18n.tr("Welcome to your Ubuntu phone. Let’s get started.")
72
text: i18n.tr("Select your language")
39
anchors.left: parent.left
40
anchors.right: parent.right
42
text: i18n.tr("Welcome to your Ubuntu phone.")
47
anchors.left: parent.left
48
anchors.right: parent.right
50
text: i18n.tr("Let’s get started.")
55
width: units.gu(1) // needed else it will be ignored
60
anchors.left: parent.left
61
anchors.right: parent.right
62
text: listview.currentItem.text
63
onClicked: expanded = !expanded
64
expandedHeight: column.height - combo.y
73
67
model: plugin.languageNames
75
selectedIndex: plugin.currentLanguage
76
onSelectedIndexChanged: {
77
i18n.language = plugin.languageCodes[selectedIndex]
78
i18n.domain = i18n.domain
68
currentIndex: plugin.currentLanguage
72
listview.currentIndex = index
73
combo.expanded = false
74
i18n.language = plugin.languageCodes[index]
75
i18n.domain = i18n.domain
80
containerHeight: content.height - label.height
81
- column.spacing - units.gu(4)
88
LocalComponents.ForwardButton {
89
text: i18n.tr("Start")
84
LocalComponents.StackButton {
85
text: i18n.tr("Continue")
91
plugin.currentLanguage = languageList.selectedIndex
92
if (manager.modems.length == 0 || simManager0.present || simManager1.present)
95
pageStack.push(Qt.resolvedUrl("no-sim.qml"))
87
plugin.currentLanguage = listview.currentIndex
88
System.updateSessionLanguage()