From: Muki Date: Fri, 27 Apr 2012 21:17:48 +0000 (+0200) Subject: Translation update X-Git-Url: https://vcs.maemo.org/git/?p=ubi;a=commitdiff_plain;h=91a77e559e2a6ca0ea5d1263392c845d2f856f91 Translation update --- diff --git a/qml/ubi/FileSelector.qml b/qml/ubi/FileSelector.qml index 28267d8..6c534f8 100644 --- a/qml/ubi/FileSelector.qml +++ b/qml/ubi/FileSelector.qml @@ -48,7 +48,7 @@ Item { height: parent.height radius: 10 - property string currentFilePath: folder + property string currentFilePath: folderModel.folder property bool load: true property string folder: folderModel.folder @@ -57,6 +57,9 @@ Item { function setFolder(folder) { + console.log(root.folder); + console.log(folder); + folderAnimation.folderToChange = folder; folderAnimation.start(); } diff --git a/qml/ubi/FilesPage.qml b/qml/ubi/FilesPage.qml index 0574bda..52f5909 100644 --- a/qml/ubi/FilesPage.qml +++ b/qml/ubi/FilesPage.qml @@ -214,6 +214,7 @@ Page { fileSelector.close(); Utils.setLastFolder(folder); var path = content_path+"/"+file; + //console.log(path); U1.uploadFile(secrets,root,path,file,folder,Utils); } diff --git a/qml/ubi/StartPage.qml b/qml/ubi/StartPage.qml index 110dbf9..b55fae8 100644 --- a/qml/ubi/StartPage.qml +++ b/qml/ubi/StartPage.qml @@ -39,10 +39,13 @@ Page { Spacer{} Spacer{} + */ + + Spacer{} Spacer{} - Spacer{}*/ - Button { + ButtonNew { + height: 100; width: 200 label: qsTr("Files") anchors.horizontalCenter: parent.horizontalCenter onButtonClicked: { @@ -60,14 +63,16 @@ Page { disabled: true }*/ - Button { + ButtonNew { + height: 100; width: 200 label: qsTr("Account") anchors.horizontalCenter: parent.horizontalCenter onButtonClicked: { pageStack.push("AccountPage.qml"); } } - Button { + ButtonNew { + height: 100; width: 200 label: qsTr("Settings") anchors.horizontalCenter: parent.horizontalCenter onButtonClicked: pageStack.push("SettingsPage.qml"); @@ -88,9 +93,11 @@ Page { z: 200 fontSize: 28 //iconSource: "images/ubi50.png" - text: qsTr("Ubi 0.9.1
" - +"Ubuntu One client for Maemo 5
" - +"Copyright © 2012 Michal Kosciesza
") + text: qsTr("

Ubi

" + +"

An unofficial Ubuntu One app for Maemo 5 " + +"and other Qt-enabled platforms.

" + +"

http://ubi.garage.maemo.org

" + +"

© 2012 Michal Kosciesza

") onOpened: mask.state = "dialog" onCanceled: mask.state = "idle" } @@ -102,6 +109,6 @@ Page { anchors.horizontalCenter: parent.horizontalCenter font.pixelSize: 18 color: "white" - text: "| v0.9.0 beta |" + text: "ver. 0.9.0" } } diff --git a/qml/ubi/UIConstants.js b/qml/ubi/UIConstants.js index 7f4335c..e46c605 100644 --- a/qml/ubi/UIConstants.js +++ b/qml/ubi/UIConstants.js @@ -35,8 +35,7 @@ var DEFAULT_TIP_BACKGROUND_COLOR = "red"; var DEFAULT_TIP_FOREGROUND_COLOR = "white"; var DEFAULT_TEXT_COLOR = DEFAULT_FOREGROUND_COLOR; -//var DEFAULT_FOLDER = "/"; -var DEFAULT_FOLDER = "/home/user/MyDocs"; +var DEFAULT_FOLDER = "file:///home/user/MyDocs"; var SYSTEM_BAR_HEIGHT = 60; var TEXT_MARGIN = 30; diff --git a/qml/ubi/components/ButtonNew.qml b/qml/ubi/components/ButtonNew.qml new file mode 100644 index 0000000..fe9d6e7 --- /dev/null +++ b/qml/ubi/components/ButtonNew.qml @@ -0,0 +1,106 @@ +import QtQuick 1.0 // to target S60 5th Edition or Maemo 5 +import "../UIConstants.js" as Const + +Item { + id: root + property string label + property bool disabled: false + property int maxSize: 27 + property string iconSource + + state: mouseArea.pressed && !root.disabled ? "pressed" : "unpressed" + + //width: box.width + //height: box.height + + signal buttonClicked(string label) + + Rectangle { + id: shadow + width: box.width + height: box.height + color: Const.SHADOW_COLOR; + radius: 10 + } + + Rectangle { + id: box + color: root.disabled ? Const.COOL_GREY_COLOR : "black" + //height: textbox.height+20 + height: root.height + //width: textbox.width<100 ? 120 : textbox.width+20 + width: root.width + radius: 10 + } + + Rectangle { + width: box.width + height: box.height + x: box.x + y: box.y + color: Const.WARM_GREY_COLOR + radius: 10 + visible: root.state == "pressed" + //border.color: "black" + //border.width: Const.SHADOW_OFFSET + } + + Image { + id: icon + width: 40 + height: 40 + anchors.centerIn: box + source: root.iconSource == "" ? "" : "../" + root.iconSource + sourceSize.width: width + sourceSize.height: height + } + + onLabelChanged: { + if(root.label.length>root.maxSize) { + console.log("root.label: "+root.label) + console.log("root.label.length: "+root.label.length) + console.log("root.maxSize: "+root.maxSize) + textbox.text = root.label.substring(0,root.maxSize-3)+"..."; + } else { + textbox.text = root.label; + } + } + + Text { + id: textbox + //x: 10 + //y: 10 + font.pixelSize: 30 + color: root.disabled ? "gray" : "white" + anchors.centerIn: box + visible: root.iconSource == "" + } + + MouseArea { + id: mouseArea + width: box.width + height: box.height + onClicked: root.buttonClicked(root.label) + enabled: !root.disabled + } + + states: [ + State { + name: "unpressed" + PropertyChanges {target: shadow; x: Const.SHADOW_OFFSET} + PropertyChanges {target: shadow; y: Const.SHADOW_OFFSET} + PropertyChanges {target: box; x: 0} + PropertyChanges {target: box; y: 0} + }, + State { + name: "pressed" + PropertyChanges {target: shadow; x: Const.SHADOW_OFFSET} + PropertyChanges {target: shadow; y: Const.SHADOW_OFFSET} + PropertyChanges {target: box; x: Const.SHADOW_OFFSET} + PropertyChanges {target: box; y: Const.SHADOW_OFFSET} + } + ] +} + + + diff --git a/qml/ubi/u1.js b/qml/ubi/u1.js index c0f48d5..bd5094d 100644 --- a/qml/ubi/u1.js +++ b/qml/ubi/u1.js @@ -298,7 +298,9 @@ function getFileContent(secrets,root,path,folder,size,utils) function uploadFile(secrets,root,path,filename,folder,utils) { //var url = "https://one.ubuntu.com/api/file_storage/v1"+encodeURI(path); + //var url = "https://files.one.ubuntu.com"+path; var url = "https://files.one.ubuntu.com"+encodeURI(path); + //console.log(url); var ffolder = fixFolder(folder); var auth = oAuthHeader(url,secrets,"PUT"); utils.uploadFile(ffolder,filename,url,auth); diff --git a/translations/ubi.pl.qm b/translations/ubi.pl.qm index ae03d92..3889128 100644 Binary files a/translations/ubi.pl.qm and b/translations/ubi.pl.qm differ diff --git a/translations/ubi.pl.ts b/translations/ubi.pl.ts index 3fcbc6f..181ef05 100644 --- a/translations/ubi.pl.ts +++ b/translations/ubi.pl.ts @@ -5,31 +5,31 @@ AccountPage Authorization failed! - Autoryzacja nie powiodła się! + Autoryzacja nie powiodła się! Error: - Błąd: + Błąd: User name: - Nazwa użytkownika: + Nazwa użytkownika: Email: - Email: + Email: Total storage: - Całkowita pojemność: + Całkowita pojemność: Account - Konto + Konto Unable to connect! - Błąd połączenia! + Błąd połączenia! @@ -47,62 +47,62 @@ DownloadArea No active downloads - Brak aktywnych pobrań + Brak aktywnych pobrań FilesPage Upload file - Wyślij nowy plik + Wyślij nowy plik Rename - Zmień nazwę + Zmień nazwę Delete - Usuń + Usuń New folder - Nowy folder + Nowy folder Refresh - Odśwież + Odśwież Root folder can't be renamed! - Nie można zmienić nazwy! + Nie można zmienić nazwy! Root folder can't be deleted! - Nie można zmienić nazwy! + Nie można zmienić nazwy! Authorization failed! - Autoryzacja nie powiodła się! + Autoryzacja nie powiodła się! Error: - Błąd: + Błąd: Folder renamed! - Zmieniono nazwę! + Zmieniono nazwę! New folder created! - Utworzono folder! + Utworzono folder! Folder was deleted! - Usunięto folder! + Usunięto folder! Delete folder? - Czy usunąć folder? + Czy usunąć folder? Enter new folder name... @@ -110,109 +110,109 @@ Invalid folder name! - Nieprawidłowa nazwa folderu! + Nieprawidłowa nazwa folderu! Files - Pliki + Pliki Unable to connect! - Błąd połączenia! + Błąd połączenia! Enter new folder name: - Podaj nową nazwę folderu: + Podaj nową nazwę folderu: LoginPage User ID - ID użytkownika + ID użytkownika Password - Hasło + Hasło Save - Zapisz + Zapisz Logged in! - Zalogowany! + Zalogowany! Authorization failed! - Autoryzacja nie powiodła się! + Autoryzacja nie powiodła się! Error: - Błąd: + Błąd: Login - Logowanie + Logowanie Ubuntu One sign in: - Zaloguj się do Ubuntu One: + Zaloguj się do Ubuntu One: Unable to connect! - Błąd połączenia! + Błąd połączenia! PropertiesPage Download - Pobierz + Pobierz Rename - Zmień nazwę + Zmień nazwę Delete - Usuń + Usuń Authorization failed! - Autoryzacja nie powiodła się! + Autoryzacja nie powiodła się! Error: - Błąd: + Błąd: Internal error! - Błąd wewnętrzny! + Błąd wewnętrzny! File renamed! - Zmieniono nazwę! + Zmieniono nazwę! File name: - Nazwa pliku: + Nazwa pliku: Size: - Rozmiar: + Rozmiar: Created: - Utworzono: + Utworzono: Changed: - Zmieniono: + Zmieniono: Delete file? - Czy usunąć plik? + Czy usunąć plik? Enter new file name... @@ -220,30 +220,30 @@ Invalid file name! - Nieprawidłowa nazwa pliku! + Nieprawidłowa nazwa pliku! File deleted! - Usunięto plik! + Usunięto plik! File - Plik + Plik Unable to connect! - Błąd połączenia! + Błąd połączenia! Enter new file name: - Podaj nową nazwę pliku: + Podaj nową nazwę pliku: SettingsPage Settings - Ustawienia + Ustawienia Polish @@ -255,27 +255,27 @@ Language: - Język: + Język: Change - Zmień + Zmień Log out - Wyloguj + Wyloguj Logged as: - Zalogowany jako: + Zalogowany jako: Restart application! - Zrestartuj aplikacje! + Zrestartuj aplikacje! Choose language: - Wybierz język: + Wybierz język: @@ -310,30 +310,34 @@ <b>Ubi</b> 0.9.1<br/>Ubuntu One client for Maemo 5<br/><small>Copyright © 2012 Michal Kosciesza</small><br/> - <b>Ubi</b> 0.9.1<br/>Aplikacja Ubuntu One dla Maemo 5<br/><small>Copyright © 2012 Michal Kosciesza</small><br/> + <b>Ubi</b> 0.9.1<br/>Aplikacja Ubuntu One dla Maemo 5<br/><small>Copyright © 2012 Michal Kosciesza</small><br/> + + + <p><b>Ubi</b></p><p>An unofficial Ubuntu One app for Maemo 5 and other Qt-enabled platforms.</p><p><small>&rarr; http://ubi.garage.maemo.org</small></p><p><small>© 2012 Michal Kosciesza</small></p> + <p><b>Ubi</b></p><p>Nieoficjalna aplikacja Ubuntu One na Maemo 5 i inne platformy obsługujące Qt.</p><p><small>&rarr; http://ubi.garage.maemo.org</small></p><p><small>© 2012 Michal Kosciesza</small></p> main Error while downloading! - Błąd podczas pobierania! + Błąd podczas pobierania! Error while uploading! - Błąd podczas wysyłania! + Błąd podczas wysyłania! File downloaded! - Plik został pobrany! + Plik został pobrany! File uploaded! - Plik został wysłany! + Plik został wysłany! File added to the queue! - Plik dodany do kolejki! + Plik dodany do kolejki! diff --git a/ubi.pro b/ubi.pro index e2abafc..40d690d 100644 --- a/ubi.pro +++ b/ubi.pro @@ -50,15 +50,15 @@ SOURCES += main.cpp \ # qml/ubi/FilesPage.qml \ # qml/ubi/LoginPage.qml \ # qml/ubi/main.qml \ -# qml/ubi/PageStack.qml \ +# qml/ubi/PageStack.qml \ # qml/ubi/PropertiesPage.qml \ -# qml/ubi/SettingsPage.qml \ +# qml/ubi/SettingsPage.qml \ # qml/ubi/Shadow.qml \ # qml/ubi/StartPage.qml \ # qml/ubi/SystemBar.qml \ # qml/ubi/TaskBar.qml \ # qml/ubi/DownloadProgressBar.qml \ -# qml/ubi/components/DialogYesNo.qml +# qml/ubi/components/DialogYesNo.qml #} # Please do not modify the following two lines. Required for deployment. diff --git a/ubi.pro.user b/ubi.pro.user index 1175d49..35dc0f1 100644 --- a/ubi.pro.user +++ b/ubi.pro.user @@ -1,6 +1,6 @@ - + ProjectExplorer.Project.ActiveTarget @@ -458,7 +458,7 @@ 2012-02-12T21:15:32 - 2012-04-24T05:56:31 + 2012-04-27T23:16:36 2012-02-23T12:56:54 2012-04-22T22:36:27 2012-04-20T23:23:40 diff --git a/ubi.qrc b/ubi.qrc index cae8e68..5fcfe13 100644 --- a/ubi.qrc +++ b/ubi.qrc @@ -19,26 +19,9 @@ qml/ubi/TaskBar.qml qml/ubi/u1.js qml/ubi/UIConstants.js - qml/ubi/oauth/oauth.js - qml/ubi/oauth/README.txt - qml/ubi/oauth/sha1.js - qml/ubi/images/back.png - qml/ubi/images/close.png - qml/ubi/images/down.png - qml/ubi/images/download.png - qml/ubi/images/menu.png - qml/ubi/images/menu-arrow.png - qml/ubi/images/menu-arrow-grey.png - qml/ubi/images/menu-arrow-orange.png - qml/ubi/images/minimize.png - qml/ubi/images/progress.png - qml/ubi/images/progress-small.png - qml/ubi/images/refresh.png - qml/ubi/images/ubi50.png - qml/ubi/images/up.png - qml/ubi/images/upload.png qml/ubi/components/Bar.qml qml/ubi/components/Button.qml + qml/ubi/components/ButtonNew.qml qml/ubi/components/DialogBox.qml qml/ubi/components/DialogCombo.qml qml/ubi/components/DialogInfo.qml @@ -52,6 +35,24 @@ qml/ubi/components/Spacer.qml qml/ubi/components/TextField.qml qml/ubi/components/ToolIcon.qml + qml/ubi/images/back.png + qml/ubi/images/close.png + qml/ubi/images/down.png + qml/ubi/images/download.png + qml/ubi/images/menu.png + qml/ubi/images/menu-arrow.png + qml/ubi/images/menu-arrow-grey.png + qml/ubi/images/menu-arrow-orange.png + qml/ubi/images/minimize.png + qml/ubi/images/progress.png + qml/ubi/images/progress-small.png + qml/ubi/images/refresh.png + qml/ubi/images/ubi50.png + qml/ubi/images/up.png + qml/ubi/images/upload.png + qml/ubi/oauth/oauth.js + qml/ubi/oauth/README.txt + qml/ubi/oauth/sha1.js translations/ubi.pl.qm