Merge lp:~dpm/ubuntu-filemanager-app/enable-translations into lp:ubuntu-filemanager-app

Proposed by David Planella
Status: Work in progress
Proposed branch: lp:~dpm/ubuntu-filemanager-app/enable-translations
Merge into: lp:ubuntu-filemanager-app
Diff against target: 757 lines (+459/-66)
19 files modified
.bzrignore (+4/-0)
FolderListPage.qml (+7/-6)
FolderListView.qml (+5/-3)
Makefile (+1/-1)
README (+1/-1)
README.translations (+36/-0)
debian/changelog (+6/-0)
debian/control (+8/-7)
debian/filemanager-app-autopilot.install (+1/-1)
debian/filemanager-app.install (+5/-5)
debian/rules (+9/-0)
filemanager-app (+1/-1)
filemanager-app.desktop (+3/-2)
filemanager-app.qml (+2/-2)
filemanager-app.qmlproject (+15/-1)
po/filemanager-app.pot (+311/-0)
po/po.pro (+39/-31)
tests/autopilot/filemanager_app/tests/__init__.py (+4/-4)
tests/autopilot/filemanager_app/tests/test_filemanager.py (+1/-1)
To merge this branch: bzr merge lp:~dpm/ubuntu-filemanager-app/enable-translations
Reviewer Review Type Date Requested Status
Carlos Jose Mazieri Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Needs Fixing
Review via email: mp+187975@code.launchpad.net

Commit message

Enable the translations infrastructure: expose translations in Launchpad and build/ship them in the Debian package.

Description of the change

NOTE: if you do a review, feel free to approve/disapprove in the comments, but do not top-approve yet, as this needs to be coordinated with the package name change in the seeds.

Enable the translations infrastructure: expose translations in Launchpad and build/ship them in the Debian package.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

It looks good.

review: Approve

Unmerged revisions

69. By David Planella

Remove unneded files to show in the project, update Debian changelog

68. By David Planella

Added rule to build and install translations

67. By David Planella

Created .pot file, improved some messages to ease translation

66. By David Planella

Do not scan for translations in JavaScript files, the project does not seem to have any

65. By David Planella

Renamed all paths files and code from ubuntu-filemanager-app to filemanager-app for consistency. We want to drop the ubuntu- prefix from all apps progressively, so this might be a good point for the file manager

64. By David Planella

Added basic translations infrastructure

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.bzrignore'
--- .bzrignore 2013-04-04 11:05:43 +0000
+++ .bzrignore 2013-09-27 05:10:56 +0000
@@ -4,3 +4,7 @@
4debian/app-template/4debian/app-template/
5debian/*.debhelper.log5debian/*.debhelper.log
6debian/*.substvars6debian/*.substvars
7.build
8po/Makefile
9debian/filemanager-app
10debian/filemanager-app-autopilot
711
=== modified file 'FolderListPage.qml'
--- FolderListPage.qml 2013-09-17 16:47:57 +0000
+++ FolderListPage.qml 2013-09-27 05:10:56 +0000
@@ -179,9 +179,10 @@
179 // Properties to emulate a model entry for use by FileDetailsPopover179 // Properties to emulate a model entry for use by FileDetailsPopover
180 property bool isDir: true180 property bool isDir: true
181 property string fileName: pathName(pageModel.path)181 property string fileName: pathName(pageModel.path)
182 property string fileSize: (folderListView.count === 1182 property string fileSize: i18n.tr("%1 file",
183 ? i18n.tr("1 file")183 "%1 files",
184 : i18n.tr("%1 files").arg(folderListView.count))184 folderListView.count).arg(folderListView.count)
185
185 property date accessedDate: pageModel.pathAccessedDate186 property date accessedDate: pageModel.pathAccessedDate
186 property date modifiedDate: pageModel.pathModifiedDate187 property date modifiedDate: pageModel.pathModifiedDate
187 property bool isWritable: pageModel.pathIsWritable188 property bool isWritable: pageModel.pathIsWritable
@@ -229,9 +230,9 @@
229 Action {230 Action {
230 text: pageModel.clipboardUrlsCounter === 0231 text: pageModel.clipboardUrlsCounter === 0
231 ? i18n.tr("Paste")232 ? i18n.tr("Paste")
232 : pageModel.clipboardUrlsCounter === 1233 : i18n.tr("Paste %1 file",
233 ? i18n.tr("Paste %1 File").arg(pageModel.clipboardUrlsCounter)234 "Paste %1 files",
234 : i18n.tr("Paste %1 Files").arg(pageModel.clipboardUrlsCounter)235 pageModel.clipboardUrlsCounter).arg(pageModel.clipboardUrlsCounter)
235 onTriggered: {236 onTriggered: {
236 console.log("Pasting to current folder items of count " + pageModel.clipboardUrlsCounter)237 console.log("Pasting to current folder items of count " + pageModel.clipboardUrlsCounter)
237 fileOperationDialog.startOperation(i18n.tr("Paste files"))238 fileOperationDialog.startOperation(i18n.tr("Paste files"))
238239
=== modified file 'FolderListView.qml'
--- FolderListView.qml 2013-09-17 16:40:38 +0000
+++ FolderListView.qml 2013-09-27 05:10:56 +0000
@@ -30,9 +30,11 @@
3030
31 header: Header {31 header: Header {
32 objectName: "directoryHeader"32 objectName: "directoryHeader"
33 text: (root.count == 133 // TRANSLATORS: this refers to the header shown for a folder
34 ? i18n.tr("%1 (1 file)").arg(root.folderPath)34 // %1 is the folder path and %2 the number of files it contains
35 : i18n.tr("%1 (%2 files)").arg(root.folderPath).arg(root.count))35 text: i18n.tr("%1 (%2 file)",
36 "%1 (%2 files)",
37 root.count).arg(root.folderPath).arg(root.count)
36 }38 }
3739
38 Component {40 Component {
3941
=== modified file 'Makefile'
--- Makefile 2013-09-17 17:05:56 +0000
+++ Makefile 2013-09-27 05:10:56 +0000
@@ -1,7 +1,7 @@
1all:1all:
22
3run:3run:
4 /usr/bin/qmlscene $@ ubuntu-filemanager-app.qml4 /usr/bin/qmlscene $@ filemanager-app.qml
55
6icon:6icon:
7 inkscape --export-png=icons/$(ICON).png --export-dpi=32 --export-background-opacity=0 --without-gui /usr/share/icons/ubuntu-mobile/actions/scalable/$(ICON).svg7 inkscape --export-png=icons/$(ICON).png --export-dpi=32 --export-background-opacity=0 --without-gui /usr/share/icons/ubuntu-mobile/actions/scalable/$(ICON).svg
88
=== modified file 'README'
--- README 2013-06-14 05:55:15 +0000
+++ README 2013-09-27 05:10:56 +0000
@@ -10,4 +10,4 @@
10Running filemanager10Running filemanager
11===================11===================
1212
13qmlscene ubuntu-filemanager-app.qml13qmlscene filemanager-app.qml
1414
=== added file 'README.translations'
--- README.translations 1970-01-01 00:00:00 +0000
+++ README.translations 2013-09-27 05:10:56 +0000
@@ -0,0 +1,36 @@
1# Updating translations
2
3Translations for the File Manager app happen in [Launchpad Translations][] and
4are automatically committed daily on the trunk branch in the po/ folder.
5
6They are then built and installed as part of the package build, so that
7developers don't really need to worry about them.
8
9However, there is one task that needs to be taken care of: exposing new
10translatable messages to translators. So whenever you add new translatable
11messages in the code, make sure to follow these steps:
12
13 1. Change directory to the po/ folder: `cd po`
14 2. Update the translations template: `qmake && make pot`
15 3. Commit the generated .pot file: `bzr commit -m"Updated translation template"`
16 4. Push the branch and send a merge proposal as usual
17
18And that's it, once the branch lands Launchpad should take care of all the rest!
19
20# Behind the scenes
21
22Behind the scenes, whenever the po/*.pot file (also known as translations template)
23is committed to trunk Launchpad reads it and updates the translatable strings
24exposed in the web UI. This will enable translators to work on the new strings.
25The translations template contains all translatable strings that have been
26extracted from the source code files.
27
28Launchpad will then store translations in its database and will commit them daily
29in the form of textual po/*.po files to trunk. The PO files are also usually
30referred to as the translations files. You'll find a translation file for each
31language the app has got at least a translated message available for.
32
33Translations for core apps follow the standard [gettext format].
34
35 [Launchpad Translations]: https://translations.launchpad.net/ubuntu-filemanager-app
36 [gettext format]: https://www.gnu.org/software/gettext/
037
=== modified file 'debian/changelog'
--- debian/changelog 2013-04-19 20:30:19 +0000
+++ debian/changelog 2013-09-27 05:10:56 +0000
@@ -1,3 +1,9 @@
1ubuntu-filemanager-app (0.2) saucy; urgency=low
2
3 * Added translations infrastructure, renamed package and paths
4
5 -- David Planella <david.planella@ubuntu.com> Fri, 27 Sep 2013 07:02:14 +0200
6
1ubuntu-filemanager-app (0.1.1) raring; urgency=low7ubuntu-filemanager-app (0.1.1) raring; urgency=low
28
3 * Initial release9 * Initial release
410
=== modified file 'debian/control'
--- debian/control 2013-08-30 17:49:35 +0000
+++ debian/control 2013-09-27 05:10:56 +0000
@@ -1,30 +1,31 @@
1Source: ubuntu-filemanager-app1Source: ubuntu-filemanager-app
2Priority: extra2Priority: extra
3Maintainer: Ubuntu App Cats <ubuntu-touch-coreapps@lists.launchpad.net>3Maintainer: Ubuntu App Cats <ubuntu-touch-coreapps@lists.launchpad.net>
4Build-Depends: debhelper (>= 9), 4Build-Depends: debhelper (>= 9)
5Standards-Version: 3.9.45Standards-Version: 3.9.4
6Section: misc6Section: misc
7Homepage: https://launchpad.net/ubuntu-filemanager-app7Homepage: https://launchpad.net/ubuntu-filemanager-app
8Vcs-Bzr: https://code.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/trunk8Vcs-Bzr: https://code.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/trunk
99
10Package: ubuntu-filemanager-app10Package: filemanager-app
11Section: misc11Section: misc
12Architecture: all12Architecture: all
13Depends: ${misc:Depends},13Depends: qmlscene,
14 qmlscene,
15 qtdeclarative5-ubuntu-ui-toolkit-plugin | qt-components-ubuntu,14 qtdeclarative5-ubuntu-ui-toolkit-plugin | qt-components-ubuntu,
16 qtdeclarative5-qtquick2-plugin,15 qtdeclarative5-qtquick2-plugin,
17 qtdeclarative5-nemo-qml-plugin-folderlistmodel,16 qtdeclarative5-nemo-qml-plugin-folderlistmodel,
18 qtdeclarative5-u1db1.017 qtdeclarative5-u1db1.0,
18 ${misc:Depends},
19Description: File Manager application19Description: File Manager application
20 Core File Manager application20 Core File Manager application
2121
22Package: ubuntu-filemanager-app-autopilot22Package: filemanager-app-autopilot
23Architecture: all23Architecture: all
24Depends: libautopilot-qt,24Depends: libautopilot-qt,
25 libqt5test5,25 libqt5test5,
26 python-mock,26 python-mock,
27 ubuntu-ui-toolkit-autopilot,27 ubuntu-ui-toolkit-autopilot,
28 ubuntu-filemanager-app (= ${source:Version})28 filemanager-app (= ${source:Version}),
29 ${misc:Depends},
29Description: Autopilot tests for File Manager Application30Description: Autopilot tests for File Manager Application
30 This package contains the autopilot tests for the File Manager31 This package contains the autopilot tests for the File Manager
3132
=== renamed file 'debian/ubuntu-filemanager-app-autopilot.install' => 'debian/filemanager-app-autopilot.install'
--- debian/ubuntu-filemanager-app-autopilot.install 2013-05-31 12:23:54 +0000
+++ debian/filemanager-app-autopilot.install 2013-09-27 05:10:56 +0000
@@ -1,1 +1,1 @@
1tests/autopilot/ubuntu_filemanager_app/* usr/lib/python2.7/dist-packages/ubuntu_filemanager_app/1tests/autopilot/filemanager_app/* usr/lib/python2.7/dist-packages/filemanager_app/
22
=== renamed file 'debian/ubuntu-filemanager-app.install' => 'debian/filemanager-app.install'
--- debian/ubuntu-filemanager-app.install 2013-07-07 11:16:44 +0000
+++ debian/filemanager-app.install 2013-09-27 05:10:56 +0000
@@ -1,5 +1,5 @@
1ubuntu-filemanager-app usr/bin/1filemanager-app usr/bin/
2ubuntu-filemanager-app.desktop usr/share/applications/2filemanager-app.desktop usr/share/applications/
3*.qml usr/share/ubuntu-filemanager-app/3*.qml usr/share/filemanager-app/
4*.png usr/share/ubuntu-filemanager-app/4*.png usr/share/filemanager-app/
5icons/ usr/share/ubuntu-filemanager-app/5icons/ usr/share/filemanager-app/
66
=== modified file 'debian/rules'
--- debian/rules 2013-04-11 21:15:17 +0000
+++ debian/rules 2013-09-27 05:10:56 +0000
@@ -9,3 +9,12 @@
99
10override_dh_install:10override_dh_install:
11 dh_install --fail-missing11 dh_install --fail-missing
12 appname=ubuntu-weather-app; \
13 for pofile in $(shell find ./po -name "*.po"); do \
14 pofilename="$${pofile##*/}"; \
15 langcode="$${pofilename%.*}"; \
16 localedir="debian/$$appname/usr/share/locale/$$langcode/LC_MESSAGES"; \
17 mkdir -p $$localedir; \
18 mofile="$$localedir/$$appname.mo"; \
19 msgfmt -o $$mofile $$pofile; \
20 done
1221
=== renamed file 'ubuntu-filemanager-app' => 'filemanager-app'
--- ubuntu-filemanager-app 2013-04-11 21:15:17 +0000
+++ filemanager-app 2013-09-27 05:10:56 +0000
@@ -1,2 +1,2 @@
1#!/bin/bash1#!/bin/bash
2qmlscene /usr/share/ubuntu-filemanager-app/ubuntu-filemanager-app.qml2qmlscene /usr/share/filemanager-app/filemanager-app.qml
33
=== renamed file 'ubuntu-filemanager-app.desktop' => 'filemanager-app.desktop'
--- ubuntu-filemanager-app.desktop 2013-05-20 19:57:23 +0000
+++ filemanager-app.desktop 2013-09-27 05:10:56 +0000
@@ -2,8 +2,9 @@
2Version=1.02Version=1.0
3Type=Application3Type=Application
4Terminal=false4Terminal=false
5Exec=qmlscene /usr/share/ubuntu-filemanager-app/ubuntu-filemanager-app.qml5Exec=qmlscene /usr/share/filemanager-app/filemanager-app.qml
6Icon=/usr/share/ubuntu-filemanager-app/filemanager64.png6Icon=/usr/share/filemanager-app/filemanager64.png
7Name=File Manager7Name=File Manager
8Keywords=file;files;file manager;folders
8X-Ubuntu-Touch=true9X-Ubuntu-Touch=true
9X-Ubuntu-StageHint=SideStage10X-Ubuntu-StageHint=SideStage
1011
=== renamed file 'ubuntu-filemanager-app.qml' => 'filemanager-app.qml'
--- ubuntu-filemanager-app.qml 2013-09-17 16:47:57 +0000
+++ filemanager-app.qml 2013-09-27 05:10:56 +0000
@@ -31,7 +31,7 @@
31 id: root31 id: root
32 // objectName for functional testing purposes (autopilot-qt5)32 // objectName for functional testing purposes (autopilot-qt5)
33 objectName: "filemanager"33 objectName: "filemanager"
34 applicationName: "ubuntu-filemanager-app"34 applicationName: "filemanager-app"
3535
36 width: units.gu(100)36 width: units.gu(100)
37 height: units.gu(75)37 height: units.gu(75)
@@ -98,7 +98,7 @@
9898
99 U1db.Database {99 U1db.Database {
100 id: storage100 id: storage
101 path: "ubuntu-filemanager-app.db"101 path: "filemanager-app.db"
102 }102 }
103103
104 U1db.Document {104 U1db.Document {
105105
=== renamed file 'filemanager.qmlproject' => 'filemanager-app.qmlproject'
--- filemanager.qmlproject 2013-06-25 16:22:38 +0000
+++ filemanager-app.qmlproject 2013-09-27 05:10:56 +0000
@@ -3,7 +3,7 @@
3import QmlProject 1.13import QmlProject 1.1
44
5Project {5Project {
6 mainFile: "ubuntu-filemanager-app.qml"6 mainFile: "filemanager-app.qml"
77
8 /* Include .qml, .js, and image files from current directory and subdirectories */8 /* Include .qml, .js, and image files from current directory and subdirectories */
9 QmlFiles {9 QmlFiles {
@@ -15,6 +15,20 @@
15 ImageFiles {15 ImageFiles {
16 directory: "."16 directory: "."
17 }17 }
18 Files {
19 filter: "*.desktop"
20 }
21 /* Shows the README files in the project view */
22 Files {
23 filter: "README*"
24 }
25 /* Shows the translation files and the .pro file used to generate the .pot template */
26 Files {
27 filter: "*.po*"
28 }
29 Files {
30 filter: "*.pro"
31 }
18 /* List of plugin directories passed to QML runtime */32 /* List of plugin directories passed to QML runtime */
19 importPaths: [ "." ,"/usr/lib/x86_64-linux-gnu/qt5/qml" ]33 importPaths: [ "." ,"/usr/lib/x86_64-linux-gnu/qt5/qml" ]
20}34}
2135
=== added file 'po/filemanager-app.pot'
--- po/filemanager-app.pot 1970-01-01 00:00:00 +0000
+++ po/filemanager-app.pot 2013-09-27 05:10:56 +0000
@@ -0,0 +1,311 @@
1# SOME DESCRIPTIVE TITLE.
2# Copyright (C) YEAR Canonical Ltd.
3# This file is distributed under the same license as the PACKAGE package.
4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5#
6#, fuzzy
7msgid ""
8msgstr ""
9"Project-Id-Version: filemanager-app\n"
10"Report-Msgid-Bugs-To: \n"
11"POT-Creation-Date: 2013-09-27 06:56+0200\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"
15"Language: \n"
16"MIME-Version: 1.0\n"
17"Content-Type: text/plain; charset=CHARSET\n"
18"Content-Transfer-Encoding: 8bit\n"
19"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
20
21#: ../ConfirmDialog.qml:31 ../ConfirmDialogWithInput.qml:41
22#: ../NotifyDialog.qml:25
23msgid "Ok"
24msgstr ""
25
26#: ../ConfirmDialog.qml:41 ../ConfirmDialogWithInput.qml:51
27#: ../FileActionDialog.qml:45 ../FileOperationProgressDialog.qml:44
28#: ../GoToDialog.qml:59
29msgid "Cancel"
30msgstr ""
31
32#: ../FileActionDialog.qml:30
33msgid "Choose action"
34msgstr ""
35
36#: ../FileActionDialog.qml:31
37#, qt-format
38msgid "For file: %1"
39msgstr ""
40
41#: ../FileActionDialog.qml:35
42msgid "Open"
43msgstr ""
44
45#: ../FileDetailsPopover.qml:37
46msgid "Readable"
47msgstr ""
48
49#: ../FileDetailsPopover.qml:40
50msgid "Writable"
51msgstr ""
52
53#: ../FileDetailsPopover.qml:43
54msgid "Executable"
55msgstr ""
56
57#: ../FileDetailsPopover.qml:91
58msgid "Path:"
59msgstr ""
60
61#: ../FileDetailsPopover.qml:102
62msgid "Contents:"
63msgstr ""
64
65#: ../FileDetailsPopover.qml:103
66msgid "Size:"
67msgstr ""
68
69#: ../FileDetailsPopover.qml:112
70msgid "Accessed:"
71msgstr ""
72
73#: ../FileDetailsPopover.qml:121
74msgid "Modified:"
75msgstr ""
76
77#: ../FileDetailsPopover.qml:130
78msgid "Permissions:"
79msgstr ""
80
81#: ../FileOperationProgressDialog.qml:27
82msgid "Operation in progress"
83msgstr ""
84
85#: ../FolderListPage.qml:101
86msgid "~/Desktop"
87msgstr ""
88
89#: ../FolderListPage.qml:103
90msgid "~/Documents"
91msgstr ""
92
93#: ../FolderListPage.qml:105
94msgid "~/Downloads"
95msgstr ""
96
97#: ../FolderListPage.qml:107
98msgid "~/Music"
99msgstr ""
100
101#: ../FolderListPage.qml:109
102msgid "~/Pictures"
103msgstr ""
104
105#: ../FolderListPage.qml:111
106msgid "~/Public"
107msgstr ""
108
109#: ../FolderListPage.qml:113
110msgid "~/Programs"
111msgstr ""
112
113#: ../FolderListPage.qml:115
114msgid "~/Templates"
115msgstr ""
116
117#: ../FolderListPage.qml:117
118msgid "~/Videos"
119msgstr ""
120
121#: ../FolderListPage.qml:134
122msgid "Home"
123msgstr ""
124
125#: ../FolderListPage.qml:136
126msgid "File System"
127msgstr ""
128
129#: ../FolderListPage.qml:182
130#, qt-format
131msgid "%1 file"
132msgid_plural "%1 files"
133msgstr[0] ""
134msgstr[1] ""
135
136#: ../FolderListPage.qml:212
137msgid "Create New Folder"
138msgstr ""
139
140#: ../FolderListPage.qml:232
141msgid "Paste"
142msgstr ""
143
144#: ../FolderListPage.qml:233
145#, qt-format
146msgid "Paste %1 file"
147msgid_plural "Paste %1 files"
148msgstr[0] ""
149msgstr[1] ""
150
151#: ../FolderListPage.qml:238
152msgid "Paste files"
153msgstr ""
154
155#: ../FolderListPage.qml:250
156msgid "Open in Terminal"
157msgstr ""
158
159#: ../FolderListPage.qml:262 ../FolderListView.qml:152
160msgid "Properties"
161msgstr ""
162
163#: ../FolderListPage.qml:297
164msgid "Create folder"
165msgstr ""
166
167#: ../FolderListPage.qml:298
168msgid "Enter name for new folder"
169msgstr ""
170
171#: ../FolderListPage.qml:314
172msgid "Create file"
173msgstr ""
174
175#: ../FolderListPage.qml:315
176msgid "Enter name for new file"
177msgstr ""
178
179#: ../FolderListPage.qml:350
180msgid "Actions"
181msgstr ""
182
183#: ../FolderListPage.qml:360
184msgid "View"
185msgstr ""
186
187#: ../FolderListPage.qml:375
188msgid "Go To"
189msgstr ""
190
191#: ../FolderListPage.qml:388 ../PlacesSidebar.qml:73
192msgid "Places"
193msgstr ""
194
195#: ../FolderListPage.qml:448
196msgid "No files"
197msgstr ""
198
199#: ../FolderListPage.qml:469
200msgid "File operation error"
201msgstr ""
202
203#. TRANSLATORS: this refers to the header shown for a folder
204#. %1 is the folder path and %2 the number of files it contains
205#: ../FolderListView.qml:35
206#, qt-format
207msgid "%1 (%2 file)"
208msgid_plural "%1 (%2 files)"
209msgstr[0] ""
210msgstr[1] ""
211
212#: ../FolderListView.qml:45 ../FolderListView.qml:126
213msgid "Delete"
214msgstr ""
215
216#: ../FolderListView.qml:46
217#, qt-format
218msgid "Are you sure you want to permanently delete '%1'?"
219msgstr ""
220
221#: ../FolderListView.qml:69 ../FolderListView.qml:139
222msgid "Rename"
223msgstr ""
224
225#: ../FolderListView.qml:70
226msgid "Enter a new name"
227msgstr ""
228
229#: ../FolderListView.qml:79
230msgid "Could not rename"
231msgstr ""
232
233#: ../FolderListView.qml:80
234msgid "Insufficient permissions or name already exists?"
235msgstr ""
236
237#: ../FolderListView.qml:103
238msgid "Cut"
239msgstr ""
240
241#: ../FolderListView.qml:114
242msgid "Copy"
243msgstr ""
244
245#: ../FolderListView.qml:177
246msgid "Folder not accessible"
247msgstr ""
248
249#: ../FolderListView.qml:178
250msgid "Can not access "
251msgstr ""
252
253#: ../GoToDialog.qml:25
254msgid "Go To Location"
255msgstr ""
256
257#: ../GoToDialog.qml:27
258msgid "Enter a location to go to:"
259msgstr ""
260
261#: ../GoToDialog.qml:38 ../PlacesPopover.qml:83
262msgid "Location..."
263msgstr ""
264
265#: ../GoToDialog.qml:47 ../PlacesPopover.qml:97
266msgid "Go"
267msgstr ""
268
269#: ../SettingsPage.qml:32
270msgid "Settings"
271msgstr ""
272
273#: ../SettingsPage.qml:38
274msgid "Show Advanced Features"
275msgstr ""
276
277#: ../ViewPopover.qml:39
278msgid "Show Hidden Files"
279msgstr ""
280
281#: ../ViewPopover.qml:59
282msgid "Sort By"
283msgstr ""
284
285#: ../ViewPopover.qml:70
286msgid "Name"
287msgstr ""
288
289#: ../ViewPopover.qml:71
290msgid "Date"
291msgstr ""
292
293#: ../ViewPopover.qml:81
294msgid "Sort Order"
295msgstr ""
296
297#: ../ViewPopover.qml:92 ../ViewPopover.qml:97
298msgid "Ascending"
299msgstr ""
300
301#: ../ViewPopover.qml:93
302msgid "Descending"
303msgstr ""
304
305#: ../ViewPopover.qml:105
306msgid "Filter"
307msgstr ""
308
309#: ../.build/filemanager-app.desktop.js:1
310msgid "File Manager"
311msgstr ""
0312
=== modified file 'po/po.pro'
--- po/po.pro 2013-02-12 16:18:48 +0000
+++ po/po.pro 2013-09-27 05:10:56 +0000
@@ -1,48 +1,56 @@
1## This .pro file is used to create a Makefile with the necessary rules
2## to create an initial translations template and to update it whenever
3## there are new translatable strings in the project that are ready to be
4## exposed to translators
5##
6## See the ../README.translations file for more information
7
1TEMPLATE = subdirs8TEMPLATE = subdirs
29
3PROJECTNAME = $$system(basename ../*.qmlproject)10PROJECTNAME = $$system(basename ../*.qmlproject)
4PROJECTNAME = $$replace(PROJECTNAME,.qmlproject,)11PROJECTNAME = $$replace(PROJECTNAME,.qmlproject,)
512
13DESKTOPFILE = ../$${PROJECTNAME}.desktop
14
6SOURCECODE = ../*.qml15SOURCECODE = ../*.qml
716
17BUILDDIR = ../.build
18DESKTOPFILETEMP = $${BUILDDIR}/$${PROJECTNAME}.desktop.js
19
8message("")20message("")
9message(" Project Name: $$PROJECTNAME ")21message(" Project Name: $$PROJECTNAME ")
10message(" Source Code: $$SOURCECODE ")22message(" Source Code: $$SOURCECODE ")
11message("")23message("")
12message(" run 'make pot' to generate the pot file from source code. ")24message(" Run 'make pot' to generate the pot file from source code. ")
13message(" run 'make translate' to create a new translation (po) based on pot. ")
14message(" run 'make mo' to generate the mo files from po files. ")
15message(" run 'qmake; make install' to install the mo files. ")
16message("")25message("")
1726
18## generate pot file 'make pot'27## Generate pot file 'make pot'
19potfile.target = pot28potfile.target = pot
20potfile.commands = xgettext -o $${PROJECTNAME}.pot --package-name $${PROJECTNAME} --qt --c++ --add-comments=TRANSLATORS --keyword=tr $${SOURCECODE}29potfile.commands = xgettext \
30 -o $${PROJECTNAME}.pot \
31 --copyright=\"Canonical Ltd. \" \
32 --package-name $${PROJECTNAME} \
33 --qt --c++ --add-comments=TRANSLATORS \
34 --keyword=tr --keyword=tr:1,2 \
35 $${SOURCECODE} $${DESKTOPFILETEMP}
36potfile.depends = desktopfile
21QMAKE_EXTRA_TARGETS += potfile37QMAKE_EXTRA_TARGETS += potfile
2238
23## poedit target for new translations 'make translate'39## Do not use this rule directly. It's a dependency rule to
24poedit.target = translate40## generate an intermediate .js file to extract translatable
25poedit.commands = cp messages.pot new_language.po; poedit new_language.po41## strings from the .desktop file
26QMAKE_EXTRA_TARGETS += poedit42desktopfile.target = desktopfile
2743desktopfile.commands = awk \'BEGIN { FS=\"=\" }; /Name/ {print \"var s = i18n.tr(\42\" \$$2 \"\42);\"}\' $${DESKTOPFILE} > $${DESKTOPFILETEMP}
28## generate mo files 'make mo'44desktopfile.depends = makebuilddir
29mofiles.target = mo45QMAKE_EXTRA_TARGETS += desktopfile
30mofiles.commands = msgfmt *.po46
31QMAKE_EXTRA_TARGETS += mofiles47## Dependency rule to create the temporary build dir
3248makebuilddir.target = makebuilddir
33## Installation steps for mo files. 'make install'49makebuilddir.commands = mkdir -p $${BUILDDIR}
34MO_FILES = $$system(ls *.mo)50QMAKE_EXTRA_TARGETS += makebuilddir
3551
36install_mo_commands =52## Rule to clean the products of the build
37for(mo_file, MO_FILES) {53clean.target = clean
38 mo_name = $$replace(mo_file,.mo,)54clean.commands = rm -Rf $${BUILDDIR}
39 mo_targetpath = $(INSTALL_ROOT)/usr/share/locale/$${mo_name}/LC_MESSAGES55QMAKE_EXTRA_TARGETS += clean
40 mo_target = $${mo_targetpath}/$${PROJECTNAME}.mo
41 !isEmpty(install_mo_commands): install_mo_commands += &&
42 install_mo_commands += test -d $$mo_targetpath || mkdir -p $$mo_targetpath
43 install_mo_commands += && cp $$mo_file $$mo_target
44}
45
46install.commands = $$install_mo_commands
47QMAKE_EXTRA_TARGETS += install
4856
4957
=== renamed directory 'tests/autopilot/ubuntu_filemanager_app' => 'tests/autopilot/filemanager_app'
=== modified file 'tests/autopilot/filemanager_app/tests/__init__.py'
--- tests/autopilot/ubuntu_filemanager_app/tests/__init__.py 2013-07-26 17:12:14 +0000
+++ tests/autopilot/filemanager_app/tests/__init__.py 2013-09-27 05:10:56 +0000
@@ -14,7 +14,7 @@
14from autopilot.testcase import AutopilotTestCase14from autopilot.testcase import AutopilotTestCase
1515
16from ubuntuuitoolkit import emulators as toolkit_emulators16from ubuntuuitoolkit import emulators as toolkit_emulators
17from ubuntu_filemanager_app import emulators17from filemanager_app import emulators
1818
1919
20class FileManagerTestCase(AutopilotTestCase):20class FileManagerTestCase(AutopilotTestCase):
@@ -28,7 +28,7 @@
28 else:28 else:
29 scenarios = [('with touch', dict(input_device_class=Touch))]29 scenarios = [('with touch', dict(input_device_class=Touch))]
3030
31 local_location = "../../ubuntu-filemanager-app.qml"31 local_location = "../../filemanager-app.qml"
3232
33 def setUp(self):33 def setUp(self):
34 self.pointing_device = Pointer(self.input_device_class.create())34 self.pointing_device = Pointer(self.input_device_class.create())
@@ -48,9 +48,9 @@
48 def launch_test_installed(self):48 def launch_test_installed(self):
49 self.app = self.launch_test_application(49 self.app = self.launch_test_application(
50 "qmlscene",50 "qmlscene",
51 "/usr/share/ubuntu-filemanager-app/ubuntu-filemanager-app.qml",51 "/usr/share/filemanager-app/filemanager-app.qml",
52 "--desktop_file_hint="52 "--desktop_file_hint="
53 "/usr/share/applications/ubuntu-filemanager-app.desktop",53 "/usr/share/applications/filemanager-app.desktop",
54 app_type='qt',54 app_type='qt',
55 emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)55 emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
5656
5757
=== modified file 'tests/autopilot/filemanager_app/tests/test_filemanager.py'
--- tests/autopilot/ubuntu_filemanager_app/tests/test_filemanager.py 2013-09-09 21:34:54 +0000
+++ tests/autopilot/filemanager_app/tests/test_filemanager.py 2013-09-27 05:10:56 +0000
@@ -30,7 +30,7 @@
30from autopilot.matchers import Eventually30from autopilot.matchers import Eventually
31from testtools.matchers import Equals, NotEquals, Not, Is31from testtools.matchers import Equals, NotEquals, Not, Is
3232
33from ubuntu_filemanager_app.tests import FileManagerTestCase33from filemanager_app.tests import FileManagerTestCase
3434
3535
36class TestFolderListPage(FileManagerTestCase):36class TestFolderListPage(FileManagerTestCase):

Subscribers

People subscribed via source and target branches