Debian Codegraph @

src/app/qml/actions/FilePaste.qml

raw
1 /*
2 * Copyright (C) 2013 Canonical Ltd
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authored by: Arto Jalkanen <[email protected]>
17 * Niklas Wenzel <[email protected]>
18 */
19
20 import QtQuick 2.4
21 import Lomiri.Components 1.3
22
23 Action {
24 property int clipboardUrlsCounter
25
26 // Translation message was implemented according to:
27 // http://developer.ubuntu.com/api/qml/sdk-14.04/Lomiri.Components.i18n/
28 // It allows correct translation for languages with more than two plural forms:
29 // http://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html
30 text: i18n.tr("Paste %1 file", "Paste %1 files", clipboardUrlsCounter).arg(clipboardUrlsCounter)
31 visible: clipboardUrlsCounter > 0
32 iconName: "edit-paste"
33 }