@ -32,10 +32,6 @@ Item {
anchors.fill: parent
}
/ / N e e d s t o c o m e f r o m L o c a l e c o n f i g
property var confLang: "en_US.UTF8"
property var confLocale: "nl_NL.UTF8"
Rectangle {
id: textArea
x: 28
@ -57,7 +53,7 @@ Item {
width: 240
wrapMode: Text . WordWrap
text: qsTr ( " < h1 > Languages < / h 1 > < / b r >
The system locale setting affects the language and character set for some command line user interface elements . The current setting is < strong > % 1 < / s t r o n g > . " ) . a r g ( c o n f La n g )
The system locale setting affects the language and character set for some command line user interface elements . The current setting is < strong > % 1 < / s t r o n g > . " ) . a r g ( c o n f ig . c u r r e n t La n g u a g e C o d e )
font.pointSize: 10
}
}
@ -76,8 +72,7 @@ Item {
id: list1
focus: true
/ / b o g u s e n t r i e s , n e e d t o c o m e f r o m L o c a l e c o n f i g
model: [ "en_GB.UTF-8 UTF-8" , "en_US.UTF-8 UTF-8 " , "nl_NL.UTF-8 UTF-8" , "en_GB.UTF-8 UTF-8" , "en_US.UTF-8 UTF-8 " , "nl_NL.UTF-8 UTF-8" , "en_GB.UTF-8 UTF-8" , "en_US.UTF-8 UTF-8 " , "nl_NL.UTF-8 UTF-8" , "en_GB.UTF-8 UTF-8" , "en_US.UTF-8 UTF-8 " , "nl_NL.UTF-8 UTF-8" , "en_GB.UTF-8 UTF-8" , "en_US.UTF-8 UTF-8 " , "nl_NL.UTF-8 UTF-8" ]
model: config . supportedLocales
currentIndex: 1
highlight: Rectangle {
@ -95,17 +90,17 @@ Item {
}
onClicked: {
list1 . currentIndex = index
confLang = list1 . currentIndex
}
}
}
onCurrentItemChanged: { config . currentLanguageCode = model [ currentIndex ] } /* This works because model is a stringlist */
}
}
}
}
Column {
id: i18n
id: lc_numeric
x: 430
y: 40
@ -118,7 +113,7 @@ Item {
width: 240
wrapMode: Text . WordWrap
text: qsTr ( " < h1 > Locales < / h 1 > < / b r >
The system locale setting affects the language and character set for some command line user interface elements . The current setting is < strong > % 1 < / s t r o n g > . " ) . a r g ( c o n f Lo c a l e )
The system locale setting affects the numbers and dates format . The current setting is < strong > % 1 < / s t r o n g > . " ) . a r g ( c o n f ig . c u r r e n t L C C o d e )
font.pointSize: 10
}
}
@ -139,7 +134,7 @@ Item {
focus: true
/ / b o g u s e n t r i e s , n e e d t o c o m e f r o m L o c a l e c o n f i g
model: [ "en_GB.UTF-8 UTF-8" , "en_US.UTF-8 UTF-8 " , "nl_NL.UTF-8 UTF-8" , "en_GB.UTF-8 UTF-8" , "en_US.UTF-8 UTF-8 " , "nl_NL.UTF-8 UTF-8" , "en_GB.UTF-8 UTF-8" , "en_US.UTF-8 UTF-8 " , "nl_NL.UTF-8 UTF-8" , "en_GB.UTF-8 UTF-8" , "en_US.UTF-8 UTF-8 " , "nl_NL.UTF-8 UTF-8" , "en_GB.UTF-8 UTF-8" , "en_US.UTF-8 UTF-8 " , "nl_NL.UTF-8 UTF-8" ]
model: config . supportedLocales
currentIndex: 2
highlight: Rectangle {
@ -154,11 +149,10 @@ Item {
cursorShape: Qt . PointingHandCursor
onClicked: {
list2 . currentIndex = index
confLocale = list1 . currentIndex
}
}
}
onCurrentItemChanged: console . debug ( currentIndex )
onCurrentItemChanged: { config . currentLCCode = model [ currentIndex ] ; } /* This works because model is a stringlist */
}
}
}