Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
glacier-home
Commits
dd2ad3db
Commit
dd2ad3db
authored
Dec 02, 2016
by
SergeyChupligin
Committed by
Sergey Chupligin
Dec 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[packaging] Internationalization
parent
d0e6d6e7
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
131 additions
and
17 deletions
+131
-17
glacer-home.ts
src/i18n/glacer-home.ts
+111
-0
AppLauncher.qml
src/qml/AppLauncher.qml
+2
-2
AppSwitcher.qml
src/qml/AppSwitcher.qml
+2
-2
BatteryPanel.qml
src/qml/BatteryPanel.qml
+1
-1
CommonPanel.qml
src/qml/CommonPanel.qml
+1
-1
LauncherItemDelegate.qml
src/qml/LauncherItemDelegate.qml
+4
-4
SimPanel.qml
src/qml/SimPanel.qml
+3
-3
USBModeSelector.qml
src/qml/USBModeSelector.qml
+4
-4
src.pro
src/src.pro
+3
-0
No files found.
src/i18n/glacer-home.ts
0 → 100644
View file @
dd2ad3db
<
?
xml
version
=
"
1.0
"
encoding
=
"
utf-8
"
?
>
<!
DOCTYPE
TS
>
<
TS
version
=
"
2.1
"
>
<
context
>
<
name
>
AppLauncher
<
/name
>
<
message
>
<
location
filename
=
"
../qml/AppLauncher.qml
"
line
=
"
67
"
/>
<
source
>
Remove
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../qml/AppLauncher.qml
"
line
=
"
82
"
/>
<
source
>
Uninstall
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
AppSwitcher
<
/name
>
<
message
>
<
location
filename
=
"
../qml/AppSwitcher.qml
"
line
=
"
173
"
/>
<
source
>
Close
All
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../qml/AppSwitcher.qml
"
line
=
"
187
"
/>
<
source
>
No
apps
open
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
BatteryPanel
<
/name
>
<
message
>
<
location
filename
=
"
../qml/BatteryPanel.qml
"
line
=
"
39
"
/>
<
source
>
Battery
level
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
CommonPanel
<
/name
>
<
message
>
<
location
filename
=
"
../qml/CommonPanel.qml
"
line
=
"
42
"
/>
<
source
>
Close
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
LauncherItemDelegate
<
/name
>
<
message
>
<
location
filename
=
"
../qml/LauncherItemDelegate.qml
"
line
=
"
147
"
/>
<
source
>
Remove
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../qml/LauncherItemDelegate.qml
"
line
=
"
148
"
/>
<
source
>
Uninstall
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../qml/LauncherItemDelegate.qml
"
line
=
"
170
"
/>
<
source
>
Removing
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../qml/LauncherItemDelegate.qml
"
line
=
"
172
"
/>
<
source
>
Uninstalling
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
SimPanel
<
/name
>
<
message
>
<
location
filename
=
"
../qml/SimPanel.qml
"
line
=
"
76
"
/>
<
source
>
OK
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../qml/SimPanel.qml
"
line
=
"
87
"
/>
<
source
>
Clear
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../qml/SimPanel.qml
"
line
=
"
135
"
/>
<
source
>
No
pin
required
!<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
USBModeSelector
<
/name
>
<
message
>
<
location
filename
=
"
../qml/USBModeSelector.qml
"
line
=
"
82
"
/>
<
source
>
Current
mode
:
Charging
only
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../qml/USBModeSelector.qml
"
line
=
"
98
"
/>
<
source
>
MTP
Mode
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../qml/USBModeSelector.qml
"
line
=
"
118
"
/>
<
source
>
Mass
Storage
Mode
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../qml/USBModeSelector.qml
"
line
=
"
138
"
/>
<
source
>
Developer
Mode
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
/TS
>
src/qml/AppLauncher.qml
View file @
dd2ad3db
...
@@ -64,7 +64,7 @@ GridView {
...
@@ -64,7 +64,7 @@ GridView {
Label
{
Label
{
id
:
removeLabel
id
:
removeLabel
anchors.centerIn
:
parent
anchors.centerIn
:
parent
text
:
"
Remove
"
text
:
qsTr
(
"
Remove
"
)
font.pointSize
:
8
font.pointSize
:
8
}
}
}
}
...
@@ -79,7 +79,7 @@ GridView {
...
@@ -79,7 +79,7 @@ GridView {
Label
{
Label
{
id
:
uninstallLabel
id
:
uninstallLabel
anchors.centerIn
:
parent
anchors.centerIn
:
parent
text
:
"
Uninstall
"
text
:
qsTr
(
"
Uninstall
"
)
font.pointSize
:
8
font.pointSize
:
8
}
}
}
}
...
...
src/qml/AppSwitcher.qml
View file @
dd2ad3db
...
@@ -170,7 +170,7 @@ Item {
...
@@ -170,7 +170,7 @@ Item {
}
}
style
:
ButtonStyle
{
style
:
ButtonStyle
{
label
:
Label
{
label
:
Label
{
text
:
"
Close
\n
All
"
text
:
qsTr
(
"
Close
\n
All
"
)
anchors.margins
:
10
anchors.margins
:
10
horizontalAlignment
:
Text
.
AlignHCenter
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
verticalAlignment
:
Text
.
AlignVCenter
...
@@ -184,7 +184,7 @@ Item {
...
@@ -184,7 +184,7 @@ Item {
// Empty switcher indicator
// Empty switcher indicator
Label
{
Label
{
visible
:
switcherModel
.
itemCount
===
0
visible
:
switcherModel
.
itemCount
===
0
text
:
"
No apps open
"
text
:
qsTr
(
"
No apps open
"
)
width
:
parent
.
width
width
:
parent
.
width
fontSizeMode
:
Text
.
HorizontalFit
fontSizeMode
:
Text
.
HorizontalFit
}
}
...
...
src/qml/BatteryPanel.qml
View file @
dd2ad3db
...
@@ -36,7 +36,7 @@ import QtQuick.Controls.Styles.Nemo 1.0
...
@@ -36,7 +36,7 @@ import QtQuick.Controls.Styles.Nemo 1.0
Component
{
Component
{
CommonPanel
{
CommonPanel
{
Label
{
Label
{
text
:
"
Battery level
:
"
+
batteryChargePercentage
.
value
+
"
%
"
text
:
qsTr
(
"
Battery level
"
)
+
"
:
"
+
batteryChargePercentage
.
value
+
"
%
"
font.pointSize
:
8
font.pointSize
:
8
}
}
}
}
...
...
src/qml/CommonPanel.qml
View file @
dd2ad3db
...
@@ -39,7 +39,7 @@ Rectangle {
...
@@ -39,7 +39,7 @@ Rectangle {
color
:
"
#313131
"
color
:
"
#313131
"
opacity
:
0.5
opacity
:
0.5
Button
{
Button
{
text
:
"
Close
"
text
:
qsTr
(
"
Close
"
)
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
onClicked
:
{
onClicked
:
{
...
...
src/qml/LauncherItemDelegate.qml
View file @
dd2ad3db
...
@@ -144,8 +144,8 @@ Item {
...
@@ -144,8 +144,8 @@ Item {
reorderItem
=
null
reorderItem
=
null
pager
.
interactive
=
true
pager
.
interactive
=
true
gridview
.
onUninstall
=
false
gridview
.
onUninstall
=
false
deleter
.
remove
.
text
=
"
Remove
"
deleter
.
remove
.
text
=
qsTr
(
"
Remove
"
)
deleter
.
uninstall
.
text
=
"
Uninstall
"
deleter
.
uninstall
.
text
=
qsTr
(
"
Uninstall
"
)
reparent
(
gridview
.
contentItem
)
reparent
(
gridview
.
contentItem
)
...
@@ -167,9 +167,9 @@ Item {
...
@@ -167,9 +167,9 @@ Item {
var
delPos
=
deleter
.
remove
.
mapFromItem
(
launcherItem
,
width
/
2
,
height
/
2
)
var
delPos
=
deleter
.
remove
.
mapFromItem
(
launcherItem
,
width
/
2
,
height
/
2
)
var
isdel
=
deleter
.
childAt
(
delPos
.
x
,
delPos
.
y
)
var
isdel
=
deleter
.
childAt
(
delPos
.
x
,
delPos
.
y
)
if
(
isdel
===
deleter
.
remove
)
{
if
(
isdel
===
deleter
.
remove
)
{
deleter
.
remove
.
text
=
"
Removing
"
+
iconCaption
deleter
.
remove
.
text
=
qsTr
(
"
Removing
"
)
+
"
"
+
iconCaption
}
else
if
(
isdel
===
deleter
.
uninstall
)
{
}
else
if
(
isdel
===
deleter
.
uninstall
)
{
deleter
.
uninstall
.
text
=
"
Uninstalling
"
+
iconCaption
deleter
.
uninstall
.
text
=
qsTr
(
"
Uninstalling
"
)
+
"
"
+
iconCaption
}
}
if
(
newIndex
!==
idx
)
{
if
(
newIndex
!==
idx
)
{
reorderTimer
.
restart
()
reorderTimer
.
restart
()
...
...
src/qml/SimPanel.qml
View file @
dd2ad3db
...
@@ -73,7 +73,7 @@ Component {
...
@@ -73,7 +73,7 @@ Component {
}
}
Button
{
Button
{
id
:
pinenter
id
:
pinenter
text
:
"
OK
"
text
:
qsTr
(
"
OK
"
)
Layout.fillWidth
:
true
Layout.fillWidth
:
true
Layout.fillHeight
:
false
Layout.fillHeight
:
false
Layout.preferredHeight
:
40
Layout.preferredHeight
:
40
...
@@ -84,7 +84,7 @@ Component {
...
@@ -84,7 +84,7 @@ Component {
}
}
Button
{
Button
{
id
:
clearpin
id
:
clearpin
text
:
"
Clear
"
text
:
qsTr
(
"
Clear
"
)
Layout.fillWidth
:
true
Layout.fillWidth
:
true
Layout.fillHeight
:
false
Layout.fillHeight
:
false
Layout.preferredHeight
:
40
Layout.preferredHeight
:
40
...
@@ -132,7 +132,7 @@ Component {
...
@@ -132,7 +132,7 @@ Component {
}
}
Label
{
Label
{
visible
:
!
needsPin
visible
:
!
needsPin
text
:
"
No pin required!
"
text
:
qsTr
(
"
No pin required!
"
)
font.pointSize
:
16
font.pointSize
:
16
}
}
}
}
...
...
src/qml/USBModeSelector.qml
View file @
dd2ad3db
...
@@ -79,7 +79,7 @@ Item {
...
@@ -79,7 +79,7 @@ Item {
anchors
{
anchors
{
fill
:
parent
fill
:
parent
}
}
text
:
"
Current mode: Charging only
"
text
:
qsTr
(
"
Current mode: Charging only
"
)
color
:
"
white
"
color
:
"
white
"
font.pixelSize
:
30
font.pixelSize
:
30
horizontalAlignment
:
Text
.
AlignHCenter
horizontalAlignment
:
Text
.
AlignHCenter
...
@@ -95,7 +95,7 @@ Item {
...
@@ -95,7 +95,7 @@ Item {
left
:
parent
.
left
left
:
parent
.
left
right
:
parent
.
right
right
:
parent
.
right
}
}
text
:
"
MTP Mode
"
text
:
qsTr
(
"
MTP Mode
"
)
color
:
"
white
"
color
:
"
white
"
font.pixelSize
:
30
font.pixelSize
:
30
wrapMode
:
Text
.
WordWrap
wrapMode
:
Text
.
WordWrap
...
@@ -115,7 +115,7 @@ Item {
...
@@ -115,7 +115,7 @@ Item {
left
:
parent
.
left
left
:
parent
.
left
right
:
parent
.
right
right
:
parent
.
right
}
}
text
:
"
Mass Storage Mode
"
text
:
qsTr
(
"
Mass Storage Mode
"
)
color
:
"
white
"
color
:
"
white
"
font.pixelSize
:
30
font.pixelSize
:
30
wrapMode
:
Text
.
WordWrap
wrapMode
:
Text
.
WordWrap
...
@@ -135,7 +135,7 @@ Item {
...
@@ -135,7 +135,7 @@ Item {
left
:
parent
.
left
left
:
parent
.
left
right
:
parent
.
right
right
:
parent
.
right
}
}
text
:
"
Developer Mode
"
text
:
qsTr
(
"
Developer Mode
"
)
color
:
"
white
"
color
:
"
white
"
font.pixelSize
:
30
font.pixelSize
:
30
wrapMode
:
Text
.
WordWrap
wrapMode
:
Text
.
WordWrap
...
...
src/src.pro
View file @
dd2ad3db
...
@@ -111,4 +111,7 @@ OTHER_FILES += qml/*.qml \
...
@@ -111,4 +111,7 @@ OTHER_FILES += qml/*.qml \
qml/GlacierRotation.qml \
qml/GlacierRotation.qml \
qml/DeviceLock.qml
qml/DeviceLock.qml
TRANSLATIONS += i18n/glacer-home.ts
DISTFILES += \
i18n/glacer-home.ts
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment