diff options
Diffstat (limited to 'src-qt5')
22 files changed, 712 insertions, 167 deletions
diff --git a/src-qt5/core-utils/lumina-config/i18n/lumina-config_cs.ts b/src-qt5/core-utils/lumina-config/i18n/lumina-config_cs.ts index 03894438..62b12a62 100644 --- a/src-qt5/core-utils/lumina-config/i18n/lumina-config_cs.ts +++ b/src-qt5/core-utils/lumina-config/i18n/lumina-config_cs.ts @@ -11,7 +11,7 @@ <message> <location filename="../AppDialog.ui" line="20"/> <source>Search for....</source> - <translation type="unfinished">Hledat...</translation> + <translation>Hledat...</translation> </message> </context> <context> @@ -345,7 +345,7 @@ Přepsat je?</translation> </message> <message> <location filename="../LPlugins.cpp" line="67"/> - <source>Start menu alternative focusing on the user's files, directories, and favorites.</source> + <source>Start menu alternative focusing on the user's files, directories, and favorites.</source> <translation>Náhradní spouštěcí nabídka se zaměřením na uživatelovy soubory, adresáře a záložky (oblíbené).</translation> </message> <message> @@ -1073,7 +1073,7 @@ Přepsat jej?</translation> <message> <location filename="../pages/page_compton.cpp" line="38"/> <source>Window Effects</source> - <translation type="unfinished">Okenní efekty</translation> + <translation>Okenní efekty</translation> </message> </context> <context> @@ -1244,12 +1244,12 @@ Přepsat jej?</translation> </message> <message> <location filename="../pages/page_fluxbox_keys.ui" line="244"/> - <source>"Mod1": Alt key -"Mod4": Windows/Mac key -"Control": Ctrl key</source> - <translation>"Mod1": Alt key -"Mod4": klávesa Windows/Mac -"Control": klávesa Ctrl</translation> + <source>"Mod1": Alt key +"Mod4": Windows/Mac key +"Control": Ctrl key</source> + <translation>"Mod1": Alt key +"Mod4": klávesa Windows/Mac +"Control": klávesa Ctrl</translation> </message> <message> <location filename="../pages/page_fluxbox_keys.cpp" line="71"/> @@ -1475,7 +1475,7 @@ Přepsat jej?</translation> <message> <location filename="../pages/page_main.cpp" line="72"/> <source>System Settings</source> - <translation type="unfinished"></translation> + <translation>Nastavení systému</translation> </message> <message> <location filename="../pages/page_main.cpp" line="145"/> diff --git a/src-qt5/core-utils/lumina-config/i18n/lumina-config_da.ts b/src-qt5/core-utils/lumina-config/i18n/lumina-config_da.ts index e4b68b04..e5645bf9 100644 --- a/src-qt5/core-utils/lumina-config/i18n/lumina-config_da.ts +++ b/src-qt5/core-utils/lumina-config/i18n/lumina-config_da.ts @@ -70,14 +70,14 @@ <message> <location filename="../ColorDialog.cpp" line="98"/> <source>Color Exists</source> - <translation>Farve eksisterer</translation> + <translation>Farve findes</translation> </message> <message> <location filename="../ColorDialog.cpp" line="98"/> <source>This color scheme already exists. Overwrite it?</source> - <translation>Denne farve eksisterer allerede. - Skal den overskrives?</translation> + <translation>Dette farveskame findes allerede. + Overskriv det?</translation> </message> <message> <location filename="../ColorDialog.cpp" line="121"/> @@ -254,7 +254,7 @@ <message> <location filename="../LPlugins.cpp" line="88"/> <source>Invisible spacer to separate plugins.</source> - <translation>Usynlig afstandsstykke til at afskille plugins.</translation> + <translation>Usynligt afstandsstykke til at adskille plugins.</translation> </message> <message> <location filename="../LPlugins.cpp" line="102"/> @@ -269,7 +269,7 @@ <message> <location filename="../LPlugins.cpp" line="109"/> <source>Keep track of your battery status.</source> - <translation>Følg din batteri status.</translation> + <translation>Følg dit batteris status.</translation> </message> <message> <location filename="../LPlugins.cpp" line="115"/> @@ -346,7 +346,7 @@ <message> <location filename="../LPlugins.cpp" line="67"/> <source>Start menu alternative focusing on the user's files, directories, and favorites.</source> - <translation>Alternativ startmenu som fokusere på brugerens filer, mapper og favoritter.</translation> + <translation>Alternativ startmenu som fokuserer på brugerens filer, mapper og favoritter.</translation> </message> <message> <location filename="../LPlugins.cpp" line="73"/> @@ -356,7 +356,7 @@ <message> <location filename="../LPlugins.cpp" line="74"/> <source>Start menu alternative which focuses on launching applications.</source> - <translation>Alternativ startmenu som fokusere på start af programmer.</translation> + <translation>Alternativ startmenu som fokuserer på start af programmer.</translation> </message> <message> <location filename="../LPlugins.cpp" line="94"/> @@ -366,7 +366,7 @@ <message> <location filename="../LPlugins.cpp" line="95"/> <source>Simple line to provide visual separation between items.</source> - <translation>Simpel linje til at give visuel adskillelse mellem poster.</translation> + <translation>Simpel linje til at give visuel adskillelse mellem elementer.</translation> </message> <message> <location filename="../LPlugins.cpp" line="101"/> @@ -376,12 +376,12 @@ <message> <location filename="../LPlugins.cpp" line="130"/> <source>View and control any running application windows (group similar windows under a single button).</source> - <translation>Vis og kontrollér kørende programvinder (gruppér lignende vinduer under en enkelt knap).</translation> + <translation>Vis og kontrollér kørende programvinduer (gruppér lignende vinduer under en enkelt knap).</translation> </message> <message> <location filename="../LPlugins.cpp" line="137"/> <source>View and control any running application windows (every individual window has a button)</source> - <translation>Vis og kontrollér kørende programvinder (hvert vindue har en knap)</translation> + <translation>Vis og kontrollér kørende programvinduer (hvert vindue har en knap)</translation> </message> <message> <location filename="../LPlugins.cpp" line="150"/> @@ -416,7 +416,7 @@ <message> <location filename="../LPlugins.cpp" line="212"/> <source>Keep simple text notes on your desktop</source> - <translation>Hold simple tekstnoter på dit skrivebord</translation> + <translation>Hav simple tekstnoter på dit skrivebord</translation> </message> <message> <location filename="../LPlugins.cpp" line="171"/> @@ -428,7 +428,7 @@ <location filename="../LPlugins.cpp" line="172"/> <location filename="../LPlugins.cpp" line="219"/> <source>Play through lists of audio files</source> - <translation>Afspil gennem listen af lydfiler</translation> + <translation>Afspil lister af lydfiler</translation> </message> <message> <location filename="../LPlugins.cpp" line="225"/> @@ -438,7 +438,7 @@ <message> <location filename="../LPlugins.cpp" line="226"/> <source>Keep track of system statistics such as CPU/Memory usage and CPU temperatures.</source> - <translation>Hold styr på systemstatisk såsom CPU/hukommelsesforbrug og CPU-temperaturer.</translation> + <translation>Hold styr på systemstatistik såsom CPU/hukommelsesforbrug og CPU-temperaturer.</translation> </message> <message> <location filename="../LPlugins.cpp" line="232"/> @@ -561,7 +561,7 @@ <message> <location filename="../LPlugins.cpp" line="330"/> <source>Text color for disabled or inactive items.</source> - <translation>Tekstfarve til deaktiverede eller inaktive poster.</translation> + <translation>Tekstfarve til deaktiverede eller inaktive elementer.</translation> </message> <message> <location filename="../LPlugins.cpp" line="335"/> @@ -591,7 +591,7 @@ <message> <location filename="../LPlugins.cpp" line="348"/> <source>Main background color for widgets that list or display collections of items.</source> - <translation>Hovedbaggrundsfarve til widgets som lister eller viser samlinger af poster.</translation> + <translation>Hovedbaggrundsfarve til widgets som lister eller viser samlinger af elementer.</translation> </message> <message> <location filename="../LPlugins.cpp" line="353"/> @@ -651,7 +651,7 @@ <message> <location filename="../LPlugins.cpp" line="384"/> <source>Color used for borders or other accents (more subdued).</source> - <translation>Farve som bruges til kanter og andre accents (mere afdæmpet).</translation> + <translation>Farve som bruges til kanter og andre accenter (mere afdæmpet).</translation> </message> <message> <location filename="../LPlugins.cpp" line="389"/> @@ -661,7 +661,7 @@ <message> <location filename="../LPlugins.cpp" line="390"/> <source>Color used for highlighting an item.</source> - <translation>Farve som skal bruges til fremhævning af en post.</translation> + <translation>Farve som skal bruges til fremhævning af en element.</translation> </message> <message> <location filename="../LPlugins.cpp" line="395"/> @@ -671,7 +671,7 @@ <message> <location filename="../LPlugins.cpp" line="396"/> <source>Color used for highlighting an item (more subdued).</source> - <translation>Farve som skal bruges til fremhævning af post (mere afdæmpet).</translation> + <translation>Farve som skal bruges til fremhævning af element (mere afdæmpet).</translation> </message> <message> <location filename="../pages/getPage.h" line="29"/> @@ -731,7 +731,7 @@ <message> <location filename="../pages/getPage.h" line="33"/> <source>Mimetype Settings</source> - <translation>MIME-type-indstillinger</translation> + <translation>MIME-typeindstillinger</translation> </message> <message> <location filename="../pages/getPage.h" line="33"/> @@ -781,7 +781,7 @@ <message> <location filename="../pages/getPage.h" line="36"/> <source>Desktop Plugins</source> - <translation>Skrivebord-plugins</translation> + <translation>Skrivebordsplugins</translation> </message> <message> <location filename="../pages/getPage.h" line="36"/> @@ -801,7 +801,7 @@ <message> <location filename="../pages/getPage.h" line="38"/> <source>Menu Plugins</source> - <translation>Menu-plugins</translation> + <translation>Menuplugins</translation> </message> <message> <location filename="../pages/getPage.h" line="38"/> @@ -971,7 +971,7 @@ <location filename="../mainWindow.ui" line="64"/> <location filename="../mainWindow.ui" line="67"/> <source>Back to overall settings</source> - <translation>Tilbage til overordnet indstillinger</translation> + <translation>Tilbage til overordnede indstillinger</translation> </message> <message> <location filename="../mainWindow.ui" line="78"/> @@ -982,12 +982,12 @@ <message> <location filename="../mainWindow.cpp" line="131"/> <source>Unsaved Changes</source> - <translation>Ugemte ændringer</translation> + <translation>Ændringer som ikke er gemt</translation> </message> <message> <location filename="../mainWindow.cpp" line="131"/> <source>This page currently has unsaved changes, do you wish to save them now?</source> - <translation>Denne side har ugemte ændringer. Vil du gemme dem nu?</translation> + <translation>Denne side har ændringer som ikke er gemt. Vil du gemme dem nu?</translation> </message> </context> <context> @@ -1284,7 +1284,7 @@ <message> <location filename="../pages/page_fluxbox_keys.cpp" line="84"/> <source>Lock Screen</source> - <translation>Lås session</translation> + <translation>Lås skærm</translation> </message> </context> <context> @@ -1409,7 +1409,7 @@ <message> <location filename="../pages/page_interface_menu.ui" line="38"/> <source>Context Menu Plugins</source> - <translation>Genvejsmenu-plugins</translation> + <translation>Genvejsmenuplugins</translation> </message> <message> <location filename="../pages/page_interface_menu.cpp" line="47"/> @@ -1493,7 +1493,7 @@ <message> <location filename="../pages/page_session_locale.ui" line="32"/> <source>System localization settings (restart required)</source> - <translation>System lokaliseringsindstillinger (kræver genstart)</translation> + <translation>Systemets lokaliseringsindstillinger (kræver genstart)</translation> </message> <message> <location filename="../pages/page_session_locale.ui" line="39"/> @@ -1566,7 +1566,7 @@ <message> <location filename="../pages/page_session_options.ui" line="55"/> <source>Automatically create/remove desktop symlinks for applications that are installed/removed</source> - <translation>Opret/fjern automatisk skrivebords-symlinks til installerede/fjernede programmer</translation> + <translation>Opret/fjern automatisk desktop-symlinks til installerede/fjernede programmer</translation> </message> <message> <location filename="../pages/page_session_options.ui" line="58"/> @@ -1728,12 +1728,12 @@ <message> <location filename="../pages/page_session_options.cpp" line="193"/> <source>%1: Numeric day without a leading zero (1)</source> - <translation>%1: Numerisk dag uden foranstillede nul (1)</translation> + <translation>%1: Numerisk dag uden foranstillet nul (1)</translation> </message> <message> <location filename="../pages/page_session_options.cpp" line="194"/> <source>%1: Numeric day with leading zero (01)</source> - <translation>%1: Numerisk dag med foranstillede nul (01)</translation> + <translation>%1: Numerisk dag med foranstillet nul (01)</translation> </message> <message> <location filename="../pages/page_session_options.cpp" line="195"/> @@ -1768,17 +1768,17 @@ <message> <location filename="../pages/page_session_options.cpp" line="201"/> <source>%1: Year as 2-digit number (15)</source> - <translation>%1: År som 2-tegnstal (17)</translation> + <translation>%1: År som tal med 2 tegn (17)</translation> </message> <message> <location filename="../pages/page_session_options.cpp" line="202"/> <source>%1: Year as 4-digit number (2015)</source> - <translation>%1: År som 4-tegnstal (2017)</translation> + <translation>%1: År som tal med 4 tegn (2017)</translation> </message> <message> <location filename="../pages/page_session_options.cpp" line="203"/> <source>Text may be contained within single-quotes to ignore replacements</source> - <translation>Tekst må være inden i enkelte anførselstegn for at ignorer erstatninger</translation> + <translation>Tekst kan være inden i enkelte anførselstegn for at ignorere erstatninger</translation> </message> <message> <location filename="../pages/page_session_options.cpp" line="204"/> @@ -1937,7 +1937,7 @@ <location filename="../pages/page_wallpaper.cpp" line="67"/> <location filename="../pages/page_wallpaper.cpp" line="222"/> <source>Solid Color: %1</source> - <translation>Ensfarvet farve: %1</translation> + <translation>Ensfarvet: %1</translation> </message> <message> <location filename="../pages/page_wallpaper.cpp" line="78"/> @@ -1968,7 +1968,7 @@ <message> <location filename="../pages/page_wallpaper.cpp" line="123"/> <source>Solid Color</source> - <translation>Solid farve</translation> + <translation>Ensfarvet</translation> </message> <message> <location filename="../pages/page_wallpaper.cpp" line="127"/> diff --git a/src-qt5/core-utils/lumina-config/i18n/lumina-config_de.ts b/src-qt5/core-utils/lumina-config/i18n/lumina-config_de.ts index 5ae3f986..81470138 100644 --- a/src-qt5/core-utils/lumina-config/i18n/lumina-config_de.ts +++ b/src-qt5/core-utils/lumina-config/i18n/lumina-config_de.ts @@ -11,7 +11,7 @@ <message> <location filename="../AppDialog.ui" line="20"/> <source>Search for....</source> - <translation type="unfinished">Nach ... suchen</translation> + <translation>Suchen nach ...</translation> </message> </context> <context> @@ -345,7 +345,7 @@ </message> <message> <location filename="../LPlugins.cpp" line="67"/> - <source>Start menu alternative focusing on the user's files, directories, and favorites.</source> + <source>Start menu alternative focusing on the user's files, directories, and favorites.</source> <translation>Startmenüalternative, die Benutzerdateien, Verzeichnisse und Lesezeichen fokussiert.</translation> </message> <message> @@ -1073,7 +1073,7 @@ <message> <location filename="../pages/page_compton.cpp" line="38"/> <source>Window Effects</source> - <translation type="unfinished">Fenstereffekte</translation> + <translation>Fenstereffekte</translation> </message> </context> <context> @@ -1244,12 +1244,12 @@ </message> <message> <location filename="../pages/page_fluxbox_keys.ui" line="244"/> - <source>"Mod1": Alt key -"Mod4": Windows/Mac key -"Control": Ctrl key</source> - <translation>"Mod1": Alt-Taste -"Mod4": Windows/Mac-Taste -"Steuerung": Strg-Taste</translation> + <source>"Mod1": Alt key +"Mod4": Windows/Mac key +"Control": Ctrl key</source> + <translation>"Mod1": Alt-Taste +"Mod4": Windows/Mac-Taste +"Steuerung": Strg-Taste</translation> </message> <message> <location filename="../pages/page_fluxbox_keys.cpp" line="71"/> @@ -1475,7 +1475,7 @@ <message> <location filename="../pages/page_main.cpp" line="72"/> <source>System Settings</source> - <translation type="unfinished"></translation> + <translation>Systemeinstellungen</translation> </message> <message> <location filename="../pages/page_main.cpp" line="145"/> @@ -1857,7 +1857,7 @@ <message> <location filename="../pages/page_theme.ui" line="198"/> <source>Qt5 Theme Engine</source> - <translation type="unfinished"></translation> + <translation>Qt5 Theme Engine</translation> </message> <message> <location filename="../pages/page_theme.cpp" line="58"/> diff --git a/src-qt5/core-utils/lumina-search/i18n/lumina-search_da.ts b/src-qt5/core-utils/lumina-search/i18n/lumina-search_da.ts index dc0c39d0..7b494d1c 100644 --- a/src-qt5/core-utils/lumina-search/i18n/lumina-search_da.ts +++ b/src-qt5/core-utils/lumina-search/i18n/lumina-search_da.ts @@ -21,7 +21,7 @@ <message> <location filename="../ConfigUI.ui" line="48"/> <source>Excluded Directories</source> - <translation>Udeladte mapper</translation> + <translation>Udelad mapper</translation> </message> <message> <location filename="../ConfigUI.ui" line="119"/> @@ -36,7 +36,7 @@ <message> <location filename="../ConfigUI.cpp" line="54"/> <source>Exclude Directories</source> - <translation>Udeladte mapper</translation> + <translation>Udelad mapper</translation> </message> </context> <context> @@ -54,7 +54,7 @@ <message> <location filename="../MainUI.ui" line="30"/> <source>Configure search parameters</source> - <translation>Indstil søge parametre</translation> + <translation>Konfigurer søgeparametre</translation> </message> <message> <location filename="../MainUI.ui" line="40"/> @@ -69,7 +69,7 @@ <message> <location filename="../MainUI.ui" line="64"/> <source>Files or Directories</source> - <translation>Filer og mapper</translation> + <translation>Filer eller mapper</translation> </message> <message> <location filename="../MainUI.ui" line="88"/> @@ -79,7 +79,7 @@ <message> <location filename="../MainUI.ui" line="108"/> <source>Launch Item</source> - <translation>Start post</translation> + <translation>Start element</translation> </message> <message> <location filename="../MainUI.ui" line="119"/> diff --git a/src-qt5/core/lumina-desktop/i18n/lumina-desktop_da.ts b/src-qt5/core/lumina-desktop/i18n/lumina-desktop_da.ts index bda12f2e..9bd195a3 100644 --- a/src-qt5/core/lumina-desktop/i18n/lumina-desktop_da.ts +++ b/src-qt5/core/lumina-desktop/i18n/lumina-desktop_da.ts @@ -6,7 +6,7 @@ <message> <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="37"/> <source>Click to assign an application</source> - <translation>Klik for at tildele en applikation</translation> + <translation>Klik for at tildele et program</translation> </message> <message> <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="42"/> @@ -196,7 +196,7 @@ <message> <location filename="../BootSplash.cpp" line="55"/> <source>Everything has its beauty but not everyone sees it.</source> - <translation>Alt har sin skønhed, men alle ser det ikke.</translation> + <translation>Alt har sin skønhed, ikke alle ser det.</translation> </message> <message> <location filename="../BootSplash.cpp" line="57"/> @@ -215,13 +215,13 @@ </message> <message> <location filename="../BootSplash.cpp" line="63"/> - <source>Don't expect to build up the weak by pulling down the strong.</source> + <source>Don't expect to build up the weak by pulling down the strong.</source> <translation>Forvent ikke at opbygge det svage ved at nedrive det stærke.</translation> </message> <message> <location filename="../BootSplash.cpp" line="65"/> - <source>You can't know too much, but you can say too much.</source> - <translation>Du kan ikke vide hvor meget, men du kan sige for meget.</translation> + <source>You can't know too much, but you can say too much.</source> + <translation>Du kan ikke vide for meget, men du kan sige for meget.</translation> </message> <message> <location filename="../BootSplash.cpp" line="67"/> @@ -231,7 +231,7 @@ <message> <location filename="../BootSplash.cpp" line="69"/> <source>Any society that would give up a little liberty to gain a little security will deserve neither and lose both.</source> - <translation>Et samfund som ville opgive en smule frihed for at gå en smule sikkerhed vil ikke gøre sig fortjent til noget af det og miste begge.</translation> + <translation>Et samfund som ville opgive en smule frihed for at opnå en smule sikkerhed vil ikke gøre sig fortjent til noget af det og miste begge.</translation> </message> <message> <location filename="../BootSplash.cpp" line="71"/> @@ -241,12 +241,12 @@ <message> <location filename="../BootSplash.cpp" line="73"/> <source>Study the past if you would define the future.</source> - <translation>Lær fortiden af kende hvis du definere fremtiden.</translation> + <translation>Lær fortiden at kende hvis du vil definere fremtiden.</translation> </message> <message> <location filename="../BootSplash.cpp" line="75"/> <source>The way to get started is to quit talking and begin doing.</source> - <translation>Måden at komme i gang, er at holde op med at snakke og begynde at gøre.</translation> + <translation>Måden at komme i gang er at holde op med at snakke og begynde at gøre.</translation> </message> <message> <location filename="../BootSplash.cpp" line="77"/> @@ -266,7 +266,7 @@ <message> <location filename="../BootSplash.cpp" line="83"/> <source>It does not matter how slowly you go as long as you do not stop.</source> - <translation>Det har ikke betydning hvor hurtigt du går, så længe du ikke stopper.</translation> + <translation>Det har ikke betydning hvor langsom du er, så længe du ikke stopper.</translation> </message> <message> <location filename="../BootSplash.cpp" line="85"/> @@ -291,27 +291,27 @@ <message> <location filename="../BootSplash.cpp" line="93"/> <source>The only way to do great work is to love what you do.</source> - <translation>Den eneste måde at udføre godt arbejde, er ved at elske det du gør.</translation> + <translation>Den eneste måde at udføre godt arbejde er ved at elske det, du gør.</translation> </message> <message> <location filename="../BootSplash.cpp" line="95"/> <source>Political correctness is tyranny with manners.</source> - <translation>Politisk korrekthed er tyranni uden manerer.</translation> + <translation>Politisk korrekthed er tyranni med manerer.</translation> </message> <message> <location filename="../BootSplash.cpp" line="97"/> - <source>Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.</source> - <translation>Kun to ting er uendelige, universet og menneskelig dumhed, og jeg er ikke sikker på det sidste.</translation> + <source>Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.</source> + <translation>Kun to ting er uendelige, universet og menneskelig dumhed, og jeg er ikke sikker på det første.</translation> </message> <message> <location filename="../BootSplash.cpp" line="99"/> <source>I find that the harder I work, the more luck I seem to have.</source> - <translation>Jeg oplever at jo hårdere jeg arbejder, jo mere heldig ser jeg ud til at være.</translation> + <translation>Jeg oplever at jo hårdere jeg arbejder, jo mere held lader jeg til at have.</translation> </message> <message> <location filename="../BootSplash.cpp" line="101"/> - <source>Do, or do not. There is no 'try'.</source> - <translation>Gør, eller gør ikke. Der er ikke noget "prøv".</translation> + <source>Do, or do not. There is no 'try'.</source> + <translation>Gør eller lad være. Der er ikke noget "prøv".</translation> </message> <message> <location filename="../BootSplash.cpp" line="103"/> @@ -321,16 +321,16 @@ <message> <location filename="../BootSplash.cpp" line="105"/> <source>Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws.</source> - <translation>Gode mennesker behøver ikke love til at fortælle dem at de skal opføre sig ordentligt, mens dårlige mennesker vil finde en vej omkring lovene.</translation> + <translation>Gode mennesker behøver ikke love til at fortælle dem at de skal opføre sig ordentligt, mens dårlige mennesker vil finde en vej uden om lovene.</translation> </message> <message> <location filename="../BootSplash.cpp" line="107"/> <source>Black holes are where God divided by zero.</source> - <translation>Sorte huller er når gud dividere med nul.</translation> + <translation>Sorte huller er hvor gud dividere med nul.</translation> </message> <message> <location filename="../BootSplash.cpp" line="109"/> - <source>It's kind of fun to do the impossible.</source> + <source>It's kind of fun to do the impossible.</source> <translation>Det er egentligt sjovt at gøre det umulige.</translation> </message> <message> @@ -341,12 +341,12 @@ <message> <location filename="../BootSplash.cpp" line="113"/> <source>A witty saying proves nothing.</source> - <translation>En vittig udtalelse beviser intet.</translation> + <translation>En vittig talemåde beviser intet.</translation> </message> <message> <location filename="../BootSplash.cpp" line="115"/> <source>Success usually comes to those who are too busy to be looking for it.</source> - <translation>Succes kommer typisk til dem der ikke har travlt med at lede efter det.</translation> + <translation>Succes kommer typisk til dem der har for travlt til at lede efter den.</translation> </message> <message> <location filename="../BootSplash.cpp" line="117"/> @@ -356,7 +356,7 @@ <message> <location filename="../BootSplash.cpp" line="119"/> <source>I have never let my schooling interfere with my education.</source> - <translation>Jeg har aldrig ladet min skolegang blande sig i min uddannelse.</translation> + <translation>Jeg har aldrig ladet min skolegang forstyrre min uddannelse.</translation> </message> <message> <location filename="../BootSplash.cpp" line="121"/> @@ -381,7 +381,7 @@ <message> <location filename="../BootSplash.cpp" line="129"/> <source>Better to remain silent and be thought a fool than to speak out and remove all doubt.</source> - <translation>Bedre at forblive stille og blive tænkt som værende et fjols, end at tale og fjerne al tvivl.</translation> + <translation>Bedre at forblive stille og blive anset for at være et fjols end at tale og fjerne al tvivl.</translation> </message> <message> <location filename="../BootSplash.cpp" line="140"/> @@ -401,7 +401,7 @@ <message> <location filename="../BootSplash.cpp" line="149"/> <source>Preparing System Tray …</source> - <translation>Forbereder systemskuffe …</translation> + <translation>Forbereder systembakke …</translation> </message> <message> <location filename="../BootSplash.cpp" line="152"/> @@ -411,7 +411,7 @@ <message> <location filename="../BootSplash.cpp" line="155"/> <source>Detecting Applications …</source> - <translation>Undersøger programmer …</translation> + <translation>Finder programmer …</translation> </message> <message> <location filename="../BootSplash.cpp" line="158"/> @@ -454,12 +454,12 @@ <message> <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="33"/> <source>Increase Icons</source> - <translation>Forøg ikoner</translation> + <translation>Større ikoner</translation> </message> <message> <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="34"/> <source>Decrease Icons</source> - <translation>Formindsk ikoner</translation> + <translation>Mindre ikoner</translation> </message> <message> <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="36"/> @@ -608,7 +608,7 @@ <message> <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="139"/> <source>Leave</source> - <translation>Ud</translation> + <translation>Afslut</translation> </message> </context> <context> @@ -642,32 +642,32 @@ <message> <location filename="../desktop-plugins/LDPlugin.cpp" line="38"/> <source>Launch Item</source> - <translation>Start post</translation> + <translation>Start element</translation> </message> <message> <location filename="../desktop-plugins/LDPlugin.cpp" line="42"/> <source>Start Moving Item</source> - <translation>Begynd at flytte post</translation> + <translation>Begynd at flytte element</translation> </message> <message> <location filename="../desktop-plugins/LDPlugin.cpp" line="43"/> <source>Start Resizing Item</source> - <translation>Begynd at ændre størrelse på post</translation> + <translation>Begynd at ændre størrelse på element</translation> </message> <message> <location filename="../desktop-plugins/LDPlugin.cpp" line="45"/> <source>Increase Item Sizes</source> - <translation>Forøg poststørrelser</translation> + <translation>Større elementstørrelser</translation> </message> <message> <location filename="../desktop-plugins/LDPlugin.cpp" line="46"/> <source>Decrease Item Sizes</source> - <translation>Formindsk poststørrelser</translation> + <translation>Mindre elementstørrelser</translation> </message> <message> <location filename="../desktop-plugins/LDPlugin.cpp" line="48"/> <source>Remove Item</source> - <translation>Fjern post</translation> + <translation>Fjern element</translation> </message> </context> <context> @@ -748,7 +748,7 @@ <message> <location filename="../LDesktop.cpp" line="323"/> <source>Leave</source> - <translation>Ud</translation> + <translation>Afslut</translation> </message> </context> <context> @@ -929,7 +929,7 @@ <message> <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="98"/> <source>Note Files (*.note)</source> - <translation>Note-filer (*.note)</translation> + <translation>Notesfiler (*.note)</translation> </message> <message> <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="98"/> @@ -939,7 +939,7 @@ <message> <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="99"/> <source>Open a note file</source> - <translation>Åbn en note fil</translation> + <translation>Åbn en notesfil</translation> </message> <message> <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="136"/> @@ -1170,7 +1170,7 @@ <message> <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="440"/> <source>Default Sync Interval</source> - <translation>Standardsynkroniseringsinterval</translation> + <translation>Standardinterval for synkronisering</translation> </message> <message> <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="471"/> @@ -1196,7 +1196,7 @@ <message> <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="71"/> <source>View Feed Details</source> - <translation>Vis detaljer for feed</translation> + <translation>Vis feed-detaljer</translation> </message> <message> <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="72"/> @@ -1317,7 +1317,7 @@ <message> <location filename="../panel-plugins/systemstart/StartMenu.ui" line="305"/> <source>Leave</source> - <translation>Ud</translation> + <translation>Afslut</translation> </message> <message> <location filename="../panel-plugins/systemstart/StartMenu.ui" line="379"/> @@ -1566,7 +1566,7 @@ <message> <location filename="../panel-plugins/userbutton/UserWidget.ui" line="495"/> <source>Desktop Appearance/Plugins</source> - <translation>Skrivebord udseende/plugins</translation> + <translation>Skrivebordsudseende/-plugins</translation> </message> <message> <location filename="../panel-plugins/userbutton/UserWidget.ui" line="517"/> @@ -1641,7 +1641,7 @@ <message> <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="300"/> <source>Utilities</source> - <translation>Redskaber</translation> + <translation>Hjælpeværktøjer</translation> </message> <message> <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="301"/> diff --git a/src-qt5/core/lumina-info/i18n/lumina-info_da.ts b/src-qt5/core/lumina-info/i18n/lumina-info_da.ts index 8eca107f..ef13ffd8 100644 --- a/src-qt5/core/lumina-info/i18n/lumina-info_da.ts +++ b/src-qt5/core/lumina-info/i18n/lumina-info_da.ts @@ -41,7 +41,7 @@ <message> <location filename="../MainUI.ui" line="218"/> <source>Qt Version:</source> - <translation>Qt version:</translation> + <translation>Qt-version:</translation> </message> <message> <location filename="../MainUI.ui" line="276"/> @@ -66,12 +66,12 @@ <message> <location filename="../MainUI.ui" line="333"/> <source>Project Lead:</source> - <translation>Projekt ledelse:</translation> + <translation>Projektledelse:</translation> </message> <message> <location filename="../MainUI.ui" line="340"/> - <source><a href="https://github.com/beanpole135">Ken Moore</a></source> - <translation><a href="https://github.com/beanpole135">Ken Moore</a></translation> + <source><a href="https://github.com/beanpole135">Ken Moore</a></source> + <translation><a href="https://github.com/beanpole135">Ken Moore</a></translation> </message> <message> <location filename="../MainUI.ui" line="353"/> @@ -85,8 +85,8 @@ </message> <message> <location filename="../MainUI.ui" line="428"/> - <source><a href="https://github.com/pcbsd/lumina/graphs/contributors">Open in web browser<a></source> - <translation><a href="https://github.com/pcbsd/lumina/graphs/contributors">Åbn i en webbrowser<a></translation> + <source><a href="https://github.com/pcbsd/lumina/graphs/contributors">Open in web browser<a></source> + <translation><a href="https://github.com/pcbsd/lumina/graphs/contributors">Åbn i en webbrowser<a></translation> </message> <message> <location filename="../MainUI.ui" line="454"/> diff --git a/src-qt5/core/lumina-open/i18n/lumina-open_cs.ts b/src-qt5/core/lumina-open/i18n/lumina-open_cs.ts index 3cd1d0a4..b8a69f6b 100644 --- a/src-qt5/core/lumina-open/i18n/lumina-open_cs.ts +++ b/src-qt5/core/lumina-open/i18n/lumina-open_cs.ts @@ -131,7 +131,7 @@ <message> <location filename="../LFileDialog.cpp" line="211"/> <source>[default] </source> - <translation type="unfinished"></translation> + <translation>[výchozí] </translation> </message> <message> <location filename="../LFileDialog.cpp" line="278"/> @@ -195,8 +195,8 @@ </message> <message> <location filename="../main.cpp" line="365"/> - <source>Could not find "%1". Please ensure it is installed first.</source> - <translation>Nepodařilo se najít "%1". Nejprve, prosím, zajistěte, aby byl nainstalován.</translation> + <source>Could not find "%1". Please ensure it is installed first.</source> + <translation>Nepodařilo se najít "%1". Nejprve, prosím, zajistěte, aby byl nainstalován.</translation> </message> <message> <location filename="../main.cpp" line="415"/> diff --git a/src-qt5/core/lumina-open/i18n/lumina-open_da.ts b/src-qt5/core/lumina-open/i18n/lumina-open_da.ts index 97635eac..1408607c 100644 --- a/src-qt5/core/lumina-open/i18n/lumina-open_da.ts +++ b/src-qt5/core/lumina-open/i18n/lumina-open_da.ts @@ -171,17 +171,17 @@ <message> <location filename="../main.cpp" line="273"/> <source>Application shortcut is missing the launching information (malformed shortcut): %1</source> - <translation>Program genvej mangler korrekt information (misdannet genvej): %1</translation> + <translation>Programgenvejen mangler korrekt opstartsinformation (forkert udformet genvej): %1</translation> </message> <message> <location filename="../main.cpp" line="286"/> <source>URL shortcut is missing the URL: %1</source> - <translation>URL genvej mangler URL'en: %1</translation> + <translation>URL-genvejen mangler URL'en: %1</translation> </message> <message> <location filename="../main.cpp" line="297"/> <source>Directory shortcut is missing the path to the directory: %1</source> - <translation>Folder genvej mangler stien til folderen: %1</translation> + <translation>Mappegenvejen mangler stien til mappen: %1</translation> </message> <message> <location filename="../main.cpp" line="302"/> diff --git a/src-qt5/core/lumina-open/i18n/lumina-open_de.ts b/src-qt5/core/lumina-open/i18n/lumina-open_de.ts index d7612d31..4dc20822 100644 --- a/src-qt5/core/lumina-open/i18n/lumina-open_de.ts +++ b/src-qt5/core/lumina-open/i18n/lumina-open_de.ts @@ -131,7 +131,7 @@ <message> <location filename="../LFileDialog.cpp" line="211"/> <source>[default] </source> - <translation type="unfinished"></translation> + <translation>[standard] </translation> </message> <message> <location filename="../LFileDialog.cpp" line="278"/> @@ -195,8 +195,8 @@ </message> <message> <location filename="../main.cpp" line="365"/> - <source>Could not find "%1". Please ensure it is installed first.</source> - <translation>Konnte "%1" nicht finden. Bitte stellen Sie zuerst sicher, dass es installiert ist.</translation> + <source>Could not find "%1". Please ensure it is installed first.</source> + <translation>Konnte "%1" nicht finden. Bitte stellen Sie zuerst sicher, dass es installiert ist.</translation> </message> <message> <location filename="../main.cpp" line="415"/> diff --git a/src-qt5/core/lumina-wm-INCOMPLETE/i18n/lumina-wm_da.ts b/src-qt5/core/lumina-wm-INCOMPLETE/i18n/lumina-wm_da.ts index b9eebe24..0ead248b 100644 --- a/src-qt5/core/lumina-wm-INCOMPLETE/i18n/lumina-wm_da.ts +++ b/src-qt5/core/lumina-wm-INCOMPLETE/i18n/lumina-wm_da.ts @@ -26,7 +26,7 @@ <message> <location filename="../LLockScreen.cpp" line="76"/> <source>Too Many Failures</source> - <translation>For mange mislykkedes forsøg</translation> + <translation>For mange mislykkede forsøg</translation> </message> <message> <location filename="../LLockScreen.cpp" line="76"/> diff --git a/src-qt5/desktop-utils/lumina-fileinfo/i18n/l-fileinfo_da.ts b/src-qt5/desktop-utils/lumina-fileinfo/i18n/l-fileinfo_da.ts index 8efbb459..203f3cdf 100644 --- a/src-qt5/desktop-utils/lumina-fileinfo/i18n/l-fileinfo_da.ts +++ b/src-qt5/desktop-utils/lumina-fileinfo/i18n/l-fileinfo_da.ts @@ -119,7 +119,7 @@ <message> <location filename="../MainUI.cpp" line="61"/> <source>---Calculating---</source> - <translation>---Udregner---</translation> + <translation>---Beregner---</translation> </message> <message> <location filename="../MainUI.cpp" line="70"/> @@ -221,7 +221,7 @@ <message> <location filename="../MainUI.cpp" line="343"/> <source> Calculating...</source> - <translation> Udregner ...</translation> + <translation> Beregner ...</translation> </message> </context> </TS> diff --git a/src-qt5/desktop-utils/lumina-fm/i18n/lumina-fm_da.ts b/src-qt5/desktop-utils/lumina-fm/i18n/lumina-fm_da.ts index 78c367e3..73c8cf34 100644 --- a/src-qt5/desktop-utils/lumina-fm/i18n/lumina-fm_da.ts +++ b/src-qt5/desktop-utils/lumina-fm/i18n/lumina-fm_da.ts @@ -312,7 +312,7 @@ <message> <location filename="../widgets/DirWidget2.cpp" line="262"/> <source>Checksums</source> - <translation>Tjeksumme</translation> + <translation>Tjeksummer</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="264"/> @@ -322,17 +322,17 @@ <message> <location filename="../widgets/DirWidget2.cpp" line="450"/> <source>File Checksums:</source> - <translation>Fil-tjeksumme:</translation> + <translation>Fil-tjeksummer:</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="462"/> <source>Missing Utility</source> - <translation>Manglende redskaber</translation> + <translation>Manglende redskab</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="462"/> - <source>The "lumina-fileinfo" utility could not be found on the system. Please install it first.</source> - <translation>Kunne ikke finde "lumina-fileinfo"-redskabet på systemet. Installér det venligst først.</translation> + <source>The "lumina-fileinfo" utility could not be found on the system. Please install it first.</source> + <translation>Kunne ikke finde "lumina-fileinfo"-redskabet på systemet. Installér det venligst først.</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="488"/> @@ -375,7 +375,7 @@ <message> <location filename="../FODialog.ui" line="14"/> <source>Performing File Operations</source> - <translation>Udfører fil operationer</translation> + <translation>Udfører filhandlinger</translation> </message> <message> <location filename="../FODialog.ui" line="39"/> @@ -458,7 +458,7 @@ <message> <location filename="../FODialog.cpp" line="320"/> <source>Invalid Move</source> - <translation>Ugyldigt træk</translation> + <translation>Ugyldig flytning</translation> </message> <message> <location filename="../FODialog.cpp" line="320"/> @@ -487,7 +487,7 @@ Ny placering: %2</translation> <message> <location filename="../gitWizard.ui" line="27"/> <source>This wizard will guide you through the process of downloading a GIT repository from the internet.</source> - <translation>Denne assistent vil guide den gennem processen til at downloade et GIT-arkiv fra internettet.</translation> + <translation>Denne assistent vil guide dig gennem processen med at downloade et GIT-arkiv fra internettet.</translation> </message> <message> <location filename="../gitWizard.ui" line="46"/> @@ -547,7 +547,7 @@ Ny placering: %2</translation> <message> <location filename="../gitWizard.ui" line="153"/> <source>Advanced Options</source> - <translation>Avanceret valgmuligheder</translation> + <translation>Avancerede valgmuligheder</translation> </message> <message> <location filename="../gitWizard.ui" line="159"/> @@ -566,8 +566,8 @@ Ny placering: %2</translation> </message> <message> <location filename="../gitWizard.ui" line="232"/> - <source>Click "Next" to start downloading the repository</source> - <translation>Klik på "Næste" for at starte download af arkivet</translation> + <source>Click "Next" to start downloading the repository</source> + <translation>Klik på "Næste" for at starte download af arkivet</translation> </message> <message> <location filename="../gitWizard.h" line="58"/> @@ -645,7 +645,7 @@ Ny placering: %2</translation> <message> <location filename="../MainUI.ui" line="283"/> <source>Increase Icon Size</source> - <translation>Forøg ikonstørrelse</translation> + <translation>Større ikoner</translation> </message> <message> <location filename="../MainUI.ui" line="288"/> @@ -890,7 +890,7 @@ Ny placering: %2</translation> <message> <location filename="../MainUI.cpp" line="621"/> <source>Git Repository Status</source> - <translation>Git-arkiv status</translation> + <translation>Status for Git-arkiv</translation> </message> <message> <location filename="../MainUI.cpp" line="711"/> @@ -905,7 +905,7 @@ Ny placering: %2</translation> <message> <location filename="../MainUI.cpp" line="909"/> <source>Items to be removed:</source> - <translation>Poster som skal fjernes:</translation> + <translation>Elementer som skal fjernes:</translation> </message> <message> <location filename="../MainUI.cpp" line="423"/> @@ -1070,7 +1070,7 @@ Ny placering: %2</translation> <message> <location filename="../widgets/SlideshowWidget.ui" line="69"/> <source>Rotate this image file clockwise</source> - <translation>Roter denne billefil i urets retning</translation> + <translation>Roter denne billedfil i urets retning</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="89"/> diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/PianoBarProcess.cpp b/src-qt5/desktop-utils/lumina-mediaplayer/PianoBarProcess.cpp new file mode 100644 index 00000000..667ebefb --- /dev/null +++ b/src-qt5/desktop-utils/lumina-mediaplayer/PianoBarProcess.cpp @@ -0,0 +1,178 @@ +//=========================================== +// Lumina-Desktop source code +// Copyright (c) 2017, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#include "PianoBarProcess.h" + +#include <QTime> +#include <QDir> +#include <QFile> +#include <QTextStream> + +#include <LUtils.h> + +PianoBarProcess::PianoBarProcess(QWidget *parent) : QObject(parent){ + setupProcess(); + +} + +PianoBarProcess::~PianoBarProcess(){ + +} + +// ===== PUBLIC ====== +//Interaction functions +bool PianoBarProcess::isSetup(); //email/password already saved for use or not +void PianoBarProcess::setLogin(QString email, QString pass); +void PianoBarProcess::closePianoBar(); //"q" + +QString PianoBarProcess::currentStation(); //Re-direct for the "autostartStation()" function; +QStringList PianoBarProcess::stations(); +void PianoBarProcess::setCurrentStation(QString station); + +void PianoBarProcess::deleteCurrentStation(); //"d" +void PianoBarProcess::createNewStation(); //"c" +void PianoBarProcess::createStationFromCurrentSong(); //"v" +void PianoBarProcess::changeStation(); //"s" + +//Settings Manipulation +QString PianoBarProcess::audioQuality(){ // "audio_quality" = [low, medium, high] + +} + +void PianoBarProcess::setAudioQuality(QString); // [low, medium, high] +QString PianoBarProcess::autostartStation(); //"autostart_station" = ID +void PianoBarProcess::setAutostartStation(QString); +QString PianoBarProcess::proxy(); //"proxy" = URL (example: "http://USER:PASSWORD@HOST:PORT/" ) +void PianoBarProcess::setProxy(QString); +QString PianoBarProcess::controlProxy(); //"control_proxy" = URL (example: "http://USER:PASSWORD@HOST:PORT/" ) +void PianoBarProcess::setControlProxy(QString); + +// ====== PUBLIC SLOTS ====== +void PianoBarProcess::play(); // "P" +void PianoBarProcess::pause(); //"S" + +void PianoBarProcess::volumeDown(); //"(" +void PianoBarProcess::volumeUp(); //")" + +void PianoBarProcess::skipSong(); //"n" +void PianoBarProcess::loveSong(); // "+" +void PianoBarProcess::tiredSong(); // "t" +void PianoBarProcess::banSong(); //"-" +void PianoBarProcess::bookmarkSong(); //"b" + +void PianoBarProcess::explainSong(); //"e" + +void PianoBarProcess::requestHistory(); // "h" +void PianoBarProcess::requestSongInfo(); //"i" +void PianoBarProcess::requestUpcoming(); //"u" + +// ====== PRIVATE ====== +void PianoBarProcess::GenerateSettings(){ + currentSettings << "audio_quality = medium"; + currentSettings << "autoselect = 1"; //automatically select the last item in a list (station selection only) + currentSettings << "format_list_song = %r::::%t::::%a"; //[rating, title, artist] + currentSettings << "format_nowplaying_song = %r::::%t::::%a::::%l::::%u::::%s"; // [rating, title, artist, album, details url, station (if not quickmix)] + currentSettings << "format_nowplaying_station = %n::::%i"; //[name, id] +} + +void PianoBarProcess::loadSettings(){ + currentSettings.clear(); + QFile file(settingspath); + if(!file.exists()){ return; } + if(file.open(QIODevice::ReadOnly)){ + QTextStream in(&file); + currentSettings = in.readAll().split("\n"); + file.close(); + } +} + +QString PianoBarProcess::settingValue(QString var){ + for(int i=0; i<currentSettings.length(); i++){ + if(currentSettings[i].startsWith(var+" = ")){ return currentSettings[i].section(" = ", 1,-1); } + } + return ""; +} + +void PianoBarProcess::setSettingValue(QString var,QString val){ + bool changed = false; + for(int i=0; i<currentSettings.length() && !changed; i++){ + if(currentSettings[i].startsWith(var+" = ")){ currentSettings[i] = var+" = "+val; changed = true; } + } + if(!changed){ currentSettings << var+" = "+val; } +} + +void PianoBarProcess::saveSettingsFile(){ + //Ensure the parent directory exists first + QDir dir(settingspath.section("/",0,-2)); + if(!dir.exists()){ dir.mkpath(dir.absolutePath()); } + //Now save the settings + QFile file(settingspath); + if(file.open(QIODevice::WriteOnly | QIODevice::Truncate)){ + QTextStream out(&file); + out << currentSettings.join("\n"); + file.close(); + } +} + +void PianoBarProcess::setupProcess(){ + PROC = new QProcess(this); + //Ensure this process always points to the right configuration directory/files + QString configdir = getenv("XDG_CONFIG_HOME"); + if(configdir.isEmpty()){ configdir = QDir::homePath()+"/.config/lumina-desktop"; } + else{ configdir.append("/lumina-desktop"); } + QProcessEnvironment penv; + penv.insert("XDG_CONFIG_HOME",configdir); + settingspath = configdir+"/pianobar/config"; + PROC->setProcessEnvironment(penv); + //Now setup the rest of the process + PROC->setProcessChannelMode(QProcess::MergedChannels); + QString bin = "pianobar"; + LUtils::isValidBinary(bin); //will change "bin" to the full path + PROC->setProgram(bin); + connect(PROC, SIGNAL(readyRead()), this, SLOT(ProcUpdate()) ); +} + +// ====== PRIVATE SLOTS ====== +void PianoBarProcess::ProcUpdate(){ + QStringList info = QString(PROC->readAllStandardOutput()).split("\n"); + //NOTE: Need to have a cache of info lines which can carry over between updates as needed (for questions, etc) + qDebug() << "Got Update:" << info; + for(int i=0; i<info.length(); i++){ + if(info[i].startsWith("|>")){ + //Now playing line (station, or song) + QStringList data = info[i].section(">",1,-1).simplified().split("::::"); //Make sure to chop the line prefix off first + if(data.length()==2){ //station + cstation = data[0]; //save the name for later + emit NowPlayingStation(data[0], data[1]); + //Automatically save this station for autostart next time (make toggle-able later) + if(data[1]!=autostartStation()){ setAutostartStation(data[1]); } + + }else if(data.length()==6){ //song + emit NowPlayingSong( data[0]=="<3", data[1], data[2], data[3], data[4], data[5] ); + } + }else if(info[i].startsWith("(i) ")){ //informational line + emit NewInformation(info[i].section(" ",1,-1)); + }else if(info[i].startsWith("[?] ")){ //waiting for reply to question + if(info[i].contains("Select Station:"){ + //Find the number before this line which corresponds to the cstation variable/name + for(j=i-1; j>=0; j--){ + if(info[j].contains(")" && info[j].contains(cstation) ){ + PROC->write(info[j].section(")",0,0).simplified() + "\r\n"); + break; + } + } + } + + }else if(info[i].startsWith("#")){ + //Time Stamp + QTime stamp = QTime::fromString(info[i].section("/",0,0).section("-",1,-1), "mm:ss"); + int curS = 60*stamp.minutes() + stamp.seconds(); //time remaining + stamp = QTime::fromString(info[i].section("/",1,-1), "mm:ss"); + int totS = 60*stamp.minutes() + stamp.sections(); //time total + emit TimeUpdate(totS-curS, totS); + } + } +} diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/PianoBarProcess.h b/src-qt5/desktop-utils/lumina-mediaplayer/PianoBarProcess.h new file mode 100644 index 00000000..83404e0c --- /dev/null +++ b/src-qt5/desktop-utils/lumina-mediaplayer/PianoBarProcess.h @@ -0,0 +1,103 @@ +//=========================================== +// Lumina-Desktop source code +// Copyright (c) 2017, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +// This is a interface to the "pianobar" utility for streaming +// audio from the Pandora radio service +//=========================================== +#ifndef _LUMINA_PIANOBAR_PROCESS_H +#define _LUMINA_PIANOBAR_PROCESS_H + +#include <QObject> +#include <QWidget> +#include <QProcess> + + +// #define PIANOBAR_FIFO QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/pianobar/ctl" +// #define PIANOBAR_CONFIG QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/pianobar/config" + +class PianoBarProcess : public QObject{ + Q_OBJECT +public: + enum State {Stopped, Running, Paused}; + + PianoBarProcess(QWidget *parent); + ~PianoBarProcess(); + + State currentState(); + + //Interaction functions + bool isSetup(); //email/password already saved for use or not + void setLogin(QString email, QString pass); + void closePianoBar(); //"q" + + QString currentStation(); //Re-direct for the "autostartStation()" function; + QStringList stations(); + void setCurrentStation(QString station); + + void deleteCurrentStation(); //"d" + void createNewStation(); //"c" + void createStationFromCurrentSong(); //"v" + void changeStation(); //"s" + + //Settings Manipulation + QString audioQuality(); // "audio_quality" = [low, medium, high] + void setAudioQuality(QString); // [low, medium, high] + QString autostartStation(); //"autostart_station" = ID + void setAutostartStation(QString); + QString proxy(); //"proxy" = URL (example: "http://USER:PASSWORD@HOST:PORT/" ) + void setProxy(QString); + QString controlProxy(); //"control_proxy" = URL (example: "http://USER:PASSWORD@HOST:PORT/" ) + void setControlProxy(QString); + +public slots: + void play(); // "P" + void pause(); //"S" + + void volumeDown(); //"(" + void volumeUp(); //")" + + void skipSong(); //"n" + void loveSong(); // "+" + void tiredSong(); // "t" + void banSong(); //"-" + void bookmarkSong(); //"b" + + void explainSong(); //"e" + + void requestHistory(); // "h" + void requestSongInfo(); //"i" + void requestUpcoming(); //"u" + + +private: + //Process + QProcess PROC; + void setupProcess(); + + //Settings file management + QStringList currentSettings; //cache of the settings file (file is really small); + QString settingsPath; //location of the settings file + void GenerateSettings(); + void loadSettings(); + QString settingValue(QString); + void setSettingValue(QString,QString); + void saveSettingsFile(); + + //Cached Info + QString cstation; //current station + QStringList stationNames; + +private slots: + void ProcUpdate(); + + +signals: + void NewInformation(QString); //random status updates/information + void NowPlayingStation(QString, QString); //[name, id] + void NowPlayingSong(bool, QString,QString,QString, QString, QString); //[isLoved, title, artist, album, detailsURL, fromStation] + void TimeUpdate(int, int); //[current secs, total secs]; +}; +#endif diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.desktop b/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.desktop new file mode 100644 index 00000000..180f4562 --- /dev/null +++ b/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Exec=lumina-mediaplayer %f +Icon=audio-x-generic +Terminal=false +Type=Application +StartupNotify=true +Categories=Utility; +MimeType= +Name=Lumina Media Player +Comment=Play Multimedia Content diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro b/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro new file mode 100644 index 00000000..7d91b770 --- /dev/null +++ b/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro @@ -0,0 +1,97 @@ +include("$${PWD}/../../OS-detect.pri") + +QT += core gui +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets concurrent + + +TARGET = lumina-mediaplayer +TEMPLATE = app + + +target.path = $${L_BINDIR} + +#include all the special classes from the Lumina tree +include(../../core/libLumina/LUtils.pri) #includes LUtils +include(../../core/libLumina/LuminaXDG.pri) + +SOURCES += main.cpp\ + mainUI.cpp + +HEADERS += mainUI.h + +FORMS += mainUI.ui + +TRANSLATIONS = i18nl-mediap_af.ts \ + i18nl-mediap_ar.ts \ + i18nl-mediap_az.ts \ + i18nl-mediap_bg.ts \ + i18nl-mediap_bn.ts \ + i18nl-mediap_bs.ts \ + i18nl-mediap_ca.ts \ + i18nl-mediap_cs.ts \ + i18nl-mediap_cy.ts \ + i18nl-mediap_da.ts \ + i18nl-mediap_de.ts \ + i18nl-mediap_el.ts \ + i18nl-mediap_en_GB.ts \ + i18nl-mediap_en_ZA.ts \ + i18nl-mediap_es.ts \ + i18nl-mediap_et.ts \ + i18nl-mediap_eu.ts \ + i18nl-mediap_fa.ts \ + i18nl-mediap_fi.ts \ + i18nl-mediap_fr.ts \ + i18nl-mediap_fr_CA.ts \ + i18nl-mediap_gl.ts \ + i18nl-mediap_he.ts \ + i18nl-mediap_hi.ts \ + i18nl-mediap_hr.ts \ + i18nl-mediap_hu.ts \ + i18nl-mediap_id.ts \ + i18nl-mediap_is.ts \ + i18nl-mediap_it.ts \ + i18nl-mediap_ja.ts \ + i18nl-mediap_ka.ts \ + i18nl-mediap_ko.ts \ + i18nl-mediap_lt.ts \ + i18nl-mediap_lv.ts \ + i18nl-mediap_mk.ts \ + i18nl-mediap_mn.ts \ + i18nl-mediap_ms.ts \ + i18nl-mediap_mt.ts \ + i18nl-mediap_nb.ts \ + i18nl-mediap_nl.ts \ + i18nl-mediap_pa.ts \ + i18nl-mediap_pl.ts \ + i18nl-mediap_pt.ts \ + i18nl-mediap_pt_BR.ts \ + i18nl-mediap_ro.ts \ + i18nl-mediap_ru.ts \ + i18nl-mediap_sk.ts \ + i18nl-mediap_sl.ts \ + i18nl-mediap_sr.ts \ + i18nl-mediap_sv.ts \ + i18nl-mediap_sw.ts \ + i18nl-mediap_ta.ts \ + i18nl-mediap_tg.ts \ + i18nl-mediap_th.ts \ + i18nl-mediap_tr.ts \ + i18nl-mediap_uk.ts \ + i18nl-mediap_uz.ts \ + i18nl-mediap_vi.ts \ + i18nl-mediap_zh_CN.ts \ + i18nl-mediap_zh_HK.ts \ + i18nl-mediap_zh_TW.ts \ + i18nl-mediap_zu.ts + +dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ + +desktop.files=lumina-mediaplayer.desktop +desktop.path=$${L_SHAREDIR}/applications/ + +INSTALLS += target desktop + +WITH_I18N{ + INSTALLS += dotrans +} diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.ui b/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.ui new file mode 100644 index 00000000..d662b20c --- /dev/null +++ b/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.ui @@ -0,0 +1,157 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>MainWindow</class> + <widget class="QMainWindow" name="MainWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>385</width> + <height>410</height> + </rect> + </property> + <property name="windowTitle"> + <string>MainWindow</string> + </property> + <widget class="QWidget" name="centralwidget"> + <layout class="QVBoxLayout" name="verticalLayout"> + <property name="spacing"> + <number>0</number> + </property> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QFrame" name="frame_type"> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QRadioButton" name="radio_local"> + <property name="text"> + <string>Local Files</string> + </property> + </widget> + </item> + <item> + <widget class="QRadioButton" name="radio_pandora"> + <property name="text"> + <string>Pandora Radio</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QStackedWidget" name="stackedWidget"> + <widget class="QWidget" name="page_local"/> + <widget class="QWidget" name="page_pandora"> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QTabWidget" name="tabWidget"> + <property name="currentIndex"> + <number>0</number> + </property> + <widget class="QWidget" name="tab_pandora_playing"> + <attribute name="title"> + <string>Now Playing</string> + </attribute> + </widget> + <widget class="QWidget" name="tab_pandora_settings"> + <attribute name="title"> + <string>Settings</string> + </attribute> + </widget> + </widget> + </item> + </layout> + </widget> + </widget> + </item> + </layout> + </widget> + <widget class="QMenuBar" name="menubar"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>385</width> + <height>22</height> + </rect> + </property> + </widget> + <widget class="QStatusBar" name="statusbar"/> + <widget class="QToolBar" name="toolBar"> + <property name="windowTitle"> + <string>toolBar</string> + </property> + <property name="movable"> + <bool>false</bool> + </property> + <property name="allowedAreas"> + <set>Qt::TopToolBarArea</set> + </property> + <property name="floatable"> + <bool>false</bool> + </property> + <attribute name="toolBarArea"> + <enum>TopToolBarArea</enum> + </attribute> + <attribute name="toolBarBreak"> + <bool>false</bool> + </attribute> + <addaction name="actionPlay"/> + <addaction name="actionPause"/> + <addaction name="actionStop"/> + <addaction name="actionNext"/> + <addaction name="actionBack"/> + <addaction name="actionVolUp"/> + <addaction name="actionVolDown"/> + </widget> + <action name="actionPlay"> + <property name="text"> + <string>Play</string> + </property> + </action> + <action name="actionPause"> + <property name="text"> + <string>Pause</string> + </property> + </action> + <action name="actionStop"> + <property name="text"> + <string>Stop</string> + </property> + </action> + <action name="actionNext"> + <property name="text"> + <string>Next</string> + </property> + </action> + <action name="actionBack"> + <property name="text"> + <string>Back</string> + </property> + </action> + <action name="actionVolUp"> + <property name="text"> + <string>VolUp</string> + </property> + </action> + <action name="actionVolDown"> + <property name="text"> + <string>VolDown</string> + </property> + </action> + </widget> + <resources/> + <connections/> +</ui> diff --git a/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_cs.ts b/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_cs.ts index e43df759..30dda04f 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_cs.ts +++ b/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_cs.ts @@ -44,47 +44,47 @@ <message> <location filename="../MainUI.ui" line="87"/> <source>Open screenshot with an application</source> - <translation type="unfinished"></translation> + <translation>Otevřít snímek obrazovky v programu</translation> </message> <message> <location filename="../MainUI.ui" line="90"/> <source>Open</source> - <translation type="unfinished"></translation> + <translation>Otevřít</translation> </message> <message> <location filename="../MainUI.ui" line="103"/> <source>Copy screenshot to clipboard</source> - <translation type="unfinished"></translation> + <translation>Kopírovat snímek obrazovky do schránky</translation> </message> <message> <location filename="../MainUI.ui" line="106"/> <source>Copy</source> - <translation type="unfinished"></translation> + <translation>Kopírovat</translation> </message> <message> <location filename="../MainUI.ui" line="109"/> <source>Ctrl+C</source> - <translation type="unfinished"></translation> + <translation>Ctrl+C</translation> </message> <message> <location filename="../MainUI.ui" line="135"/> <source>Resize screenshot to selection</source> - <translation type="unfinished"></translation> + <translation>Změnit velikost snímku obrazovky na výběr</translation> </message> <message> <location filename="../MainUI.ui" line="157"/> <source>Crop screenshot to selection</source> - <translation type="unfinished"></translation> + <translation>Oříznout snímek obrazovky na výběr</translation> </message> <message> <location filename="../MainUI.ui" line="160"/> <source>&Crop</source> - <translation type="unfinished"></translation> + <translation>&Oříznout</translation> </message> <message> <location filename="../MainUI.ui" line="293"/> <source>Screen Capture Settings</source> - <translation type="unfinished"></translation> + <translation>Nastavení zachytávání obrazovky</translation> </message> <message> <location filename="../MainUI.ui" line="341"/> @@ -94,17 +94,17 @@ <message> <location filename="../MainUI.ui" line="434"/> <source>General Settings</source> - <translation type="unfinished"></translation> + <translation>Obecná nastavení</translation> </message> <message> <location filename="../MainUI.ui" line="455"/> <source>Show popup warnings about unsaved screenshots</source> - <translation type="unfinished"></translation> + <translation>Ukázat vyskakovací varování o neuložených snímcích obrazovky</translation> </message> <message> <location filename="../MainUI.ui" line="488"/> <source>toolBar</source> - <translation type="unfinished"></translation> + <translation>Nástrojový pruh</translation> </message> <message> <location filename="../MainUI.ui" line="515"/> @@ -124,7 +124,7 @@ <message> <location filename="../MainUI.ui" line="548"/> <source>Close Application</source> - <translation type="unfinished"></translation> + <translation>Zavřít program</translation> </message> <message> <location filename="../MainUI.ui" line="551"/> @@ -149,12 +149,12 @@ <message> <location filename="../MainUI.cpp" line="38"/> <source>View</source> - <translation type="unfinished"></translation> + <translation>Pohled</translation> </message> <message> <location filename="../MainUI.cpp" line="39"/> <source>Settings</source> - <translation type="unfinished"></translation> + <translation>Nastavení</translation> </message> <message> <location filename="../MainUI.cpp" line="94"/> @@ -174,12 +174,12 @@ <message> <location filename="../MainUI.cpp" line="264"/> <source>Unsaved Screenshot</source> - <translation type="unfinished"></translation> + <translation>Neuložené snímky obrazovky</translation> </message> <message> <location filename="../MainUI.cpp" line="265"/> <source>The current screenshot has not been saved yet. Do you want to save or discard your changes?</source> - <translation type="unfinished"></translation> + <translation>Nynější snímek obrazovky ještě nebyl uložen. Chcete své změny uložit nebo zahodit?</translation> </message> <message> <location filename="../MainUI.ui" line="532"/> diff --git a/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_da.ts b/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_da.ts index 75bcf2ab..d2c3ba77 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_da.ts +++ b/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_da.ts @@ -144,7 +144,7 @@ <message> <location filename="../MainUI.ui" line="370"/> <source>Single Screen</source> - <translation>En enkel skærm</translation> + <translation>Én skærm</translation> </message> <message> <location filename="../MainUI.cpp" line="38"/> @@ -189,7 +189,7 @@ <message> <location filename="../MainUI.ui" line="540"/> <source>Quick Save</source> - <translation>Kvik gem</translation> + <translation>Kvikgem</translation> </message> <message> <location filename="../MainUI.cpp" line="101"/> diff --git a/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_cs.ts b/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_cs.ts index 54be7207..13f66b50 100644 --- a/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_cs.ts +++ b/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_cs.ts @@ -225,13 +225,13 @@ <message> <location filename="../MainUI.ui" line="400"/> <source>Show Popup Warnings</source> - <translation type="unfinished"></translation> + <translation>Ukázat vyskakovací varování</translation> </message> <message> <location filename="../MainUI.ui" line="403"/> <location filename="../MainUI.ui" line="406"/> <source>Show warnings about unsaved changes</source> - <translation type="unfinished"></translation> + <translation>Ukázat varování o neuložených změnách</translation> </message> <message> <location filename="../MainUI.cpp" line="40"/> diff --git a/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_da.ts b/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_da.ts index 08437a3a..23174c4e 100644 --- a/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_da.ts +++ b/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_da.ts @@ -11,7 +11,7 @@ <message> <location filename="../ColorDialog.ui" line="24"/> <source>Item Type</source> - <translation>Posttype</translation> + <translation>Elementtype</translation> </message> <message> <location filename="../ColorDialog.ui" line="29"/> @@ -99,7 +99,7 @@ <message> <location filename="../MainUI.ui" line="173"/> <source>Hide the find/replace options</source> - <translation>Skjul valgmulighederne find/erstat</translation> + <translation>Skjul valgmulighederne for find/erstat</translation> </message> <message> <location filename="../MainUI.ui" line="214"/> @@ -231,7 +231,7 @@ <location filename="../MainUI.ui" line="403"/> <location filename="../MainUI.ui" line="406"/> <source>Show warnings about unsaved changes</source> - <translation>Vis advarsler om ugemte ændringer</translation> + <translation>Vis advarsler om ændringer som ikke er gemt</translation> </message> <message> <location filename="../MainUI.cpp" line="40"/> @@ -252,7 +252,7 @@ <location filename="../MainUI.cpp" line="296"/> <location filename="../MainUI.cpp" line="394"/> <source>Lose Unsaved Changes?</source> - <translation>Mist ugemte ændringer?</translation> + <translation>Mist ændringer som ikke er gemt?</translation> </message> <message> <location filename="../MainUI.cpp" line="296"/> @@ -260,7 +260,7 @@ Do you want to close it anyway? %1</source> - <translation>Denne fil har ugemte ændringer. + <translation>Denne fil har ændringer som ikke er gemt. Vil du lukke den alligevel? %1</translation> @@ -271,7 +271,7 @@ Vil du lukke den alligevel? Do you want to close the editor anyway? %1</source> - <translation>Der er ugemte ændringer. + <translation>Der er ændringer som ikke er gemt. Vil du lukke redigeringsprogrammet alligevel? %1</translation> @@ -297,12 +297,12 @@ Vil du lukke redigeringsprogrammet alligevel? <message> <location filename="../PlainTextEditor.cpp" line="298"/> <source>The following file has been changed by some other utility. Do you want to re-load it?</source> - <translation>Den følgende fil er blevet ændret af et andet redskab. Vil du genindlæse den?</translation> + <translation>Den følgende fil er blevet ændret af et andet program. Vil du genindlæse den?</translation> </message> <message> <location filename="../PlainTextEditor.cpp" line="300"/> <source>(Note: You will lose all currently-unsaved changes)</source> - <translation>(Bemærk: Du vil miste alle nuværende ugemte ændringer)</translation> + <translation>(Bemærk: Du vil miste alle nuværende ændringer som ikke er gemt)</translation> </message> <message> <location filename="../PlainTextEditor.cpp" line="304"/> diff --git a/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_de.ts b/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_de.ts index c1088ad6..4082dbcb 100644 --- a/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_de.ts +++ b/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_de.ts @@ -225,13 +225,13 @@ <message> <location filename="../MainUI.ui" line="400"/> <source>Show Popup Warnings</source> - <translation type="unfinished"></translation> + <translation>Zeige Popup Warnungen</translation> </message> <message> <location filename="../MainUI.ui" line="403"/> <location filename="../MainUI.ui" line="406"/> <source>Show warnings about unsaved changes</source> - <translation type="unfinished"></translation> + <translation>Zeige Warnungen über ungespeicherte Änderungen</translation> </message> <message> <location filename="../MainUI.cpp" line="40"/> |