diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e64e1439b..77b4d1325 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -125,9 +125,30 @@ set(CLEMENTINE-UI # Resource files set(CLEMENTINE-RESOURCES ../data/data.qrc - translations.qrc ) +# Translations +file (GLOB TRANSLATIONS_FILES *.ts) +set (FILES_TO_TRANSLATE ${CLEMENTINE-SOURCES} ${CLEMENTINE-UI} ${CLEMENTINE-MOC-HEADERS}) + +option (UPDATE_TRANSLATIONS "Update source translation translations/*.ts files + (WARNING: make clean will delete the source .ts files! Danger!)") +if (UPDATE_TRANSLATIONS) + qt4_create_translation(CLEMENTINE-QM-FILES ${FILES_TO_TRANSLATE} ${TRANSLATIONS_FILES}) +else (UPDATE_TRANSLATIONS) + qt4_add_translation(CLEMENTINE-QM-FILES ${TRANSLATIONS_FILES}) +endif (UPDATE_TRANSLATIONS) + +# Generate a qrc file for the translations +set(CLEMENTINE-QM-RESOURCE ${CMAKE_CURRENT_BINARY_DIR}/translations.qrc) +file(WRITE ${CLEMENTINE-QM-RESOURCE} "") +foreach(QM-FILE ${CLEMENTINE-QM-FILES}) + file(RELATIVE_PATH QM-RELATIVE-PATH ${CMAKE_CURRENT_BINARY_DIR} ${QM-FILE}) + file(APPEND ${CLEMENTINE-QM-RESOURCE} "" ${QM-RELATIVE-PATH} "") +endforeach(QM-FILE) +file(APPEND ${CLEMENTINE-QM-RESOURCE} "") + + if(WIN32) set(CLEMENTINE-SOURCES ${CLEMENTINE-SOURCES} phononengine.cpp osd_win.cpp) set(CLEMENTINE-MOC-HEADERS ${CLEMENTINE-MOC-HEADERS} phononengine.h) @@ -144,7 +165,7 @@ endif(APPLE) qt4_wrap_cpp(CLEMENTINE-SOURCES-MOC ${CLEMENTINE-MOC-HEADERS}) qt4_wrap_ui(CLEMENTINE-SOURCES-UI ${CLEMENTINE-UI}) -qt4_add_resources(CLEMENTINE-SOURCES-RESOURCE ${CLEMENTINE-RESOURCES}) +qt4_add_resources(CLEMENTINE-SOURCES-RESOURCE ${CLEMENTINE-RESOURCES} ${CLEMENTINE-QM-RESOURCE}) include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) @@ -158,6 +179,7 @@ add_library(clementine_lib ${CLEMENTINE-SOURCES-MOC} ${CLEMENTINE-SOURCES-UI} ${CLEMENTINE-SOURCES-RESOURCE} + ${CLEMENTINE-QM-FILES} ) target_link_libraries(clementine_lib ${QT_LIBRARIES} diff --git a/src/clementine_el.qm b/src/clementine_el.qm deleted file mode 100644 index f6d80219a..000000000 Binary files a/src/clementine_el.qm and /dev/null differ diff --git a/src/clementine_el.ts b/src/clementine_el.ts index 613f318e5..2585a621a 100644 --- a/src/clementine_el.ts +++ b/src/clementine_el.ts @@ -81,6 +81,25 @@ p, li { white-space: pre-wrap; } + + CoverManager + + Cover Manager + + + + Enter search terms here + + + + View + + + + Fetch Missing Covers + + + EditTagDialog @@ -571,6 +590,18 @@ p, li { white-space: pre-wrap; } Configure &Global Shortcuts... + + Enter search terms here + + + + Tools + + + + Cover Manager + + MultiLoadingIndicator @@ -843,14 +874,6 @@ p, li { white-space: pre-wrap; } &Defaults - - &OK - - - - &Cancel - - Shortcut for Selected Action diff --git a/src/clementine_es.qm b/src/clementine_es.qm deleted file mode 100644 index 23840c357..000000000 Binary files a/src/clementine_es.qm and /dev/null differ diff --git a/src/clementine_es.ts b/src/clementine_es.ts index acff5d253..0941ff8e4 100644 --- a/src/clementine_es.ts +++ b/src/clementine_es.ts @@ -64,6 +64,25 @@ p, li { white-space: pre-wrap; } + + CoverManager + + Cover Manager + + + + Enter search terms here + + + + View + + + + Fetch Missing Covers + + + EditTagDialog @@ -554,6 +573,18 @@ p, li { white-space: pre-wrap; } Configure &Global Shortcuts... + + Enter search terms here + + + + Tools + + + + Cover Manager + + MultiLoadingIndicator @@ -826,14 +857,6 @@ p, li { white-space: pre-wrap; } &Defaults - - &OK - - - - &Cancel - - Shortcut for Selected Action diff --git a/src/clementine_ru.qm b/src/clementine_ru.qm deleted file mode 100644 index 2a629426a..000000000 Binary files a/src/clementine_ru.qm and /dev/null differ diff --git a/src/clementine_ru.ts b/src/clementine_ru.ts index 80ddb8476..b8c6992ac 100644 --- a/src/clementine_ru.ts +++ b/src/clementine_ru.ts @@ -63,6 +63,25 @@ p, li { white-space: pre-wrap; } Сохранить поток на вкладке Радио + + CoverManager + + Cover Manager + + + + Enter search terms here + + + + View + + + + Fetch Missing Covers + + + EditTagDialog @@ -549,6 +568,18 @@ p, li { white-space: pre-wrap; } Configure &Global Shortcuts... + + Enter search terms here + + + + Tools + + + + Cover Manager + + MultiLoadingIndicator @@ -821,14 +852,6 @@ p, li { white-space: pre-wrap; } &Defaults - - &OK - - - - &Cancel - - Shortcut for Selected Action diff --git a/src/clementine_sk.ts b/src/clementine_sk.ts new file mode 100644 index 000000000..373073ea9 --- /dev/null +++ b/src/clementine_sk.ts @@ -0,0 +1,1111 @@ + + + + + About + + + About %1 + + + + + Version %1 + + + + + Title + + + + + Version + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://code.google.com/p/clementine-player/"><span style=" text-decoration: underline; color:#0057ae;">http://code.google.com/p/clementine-player/</span></a></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Authors:</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">David Sansome &lt;<a href="mailto:me@davidsansome.com"><span style=" text-decoration: underline; color:#0057ae;">me@davidsansome.com</span></a>&gt;</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Thanks to:</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Mark Kretschmann &lt;<a href="mailto:markey@web.de"><span style=" text-decoration: underline; color:#0057ae;">markey@web.de</span></a>&gt;</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Max Howell &lt;<a href="mailto:max.howell@methylblue.com"><span style=" text-decoration: underline; color:#0057ae;">max.howell@methylblue.com</span></a>&gt;</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">... and all the Amarok contributors</p></body></html> + + + + + AddStreamDialog + + + Add Stream + + + + + Enter the URL of an internet radio stream: + + + + + Save this stream in the Radio tab + + + + + CoverManager + + + Cover Manager + + + + + Enter search terms here + + + + + View + + + + + Fetch Missing Covers + + + + + EditTagDialog + + + [click to edit] + + + + + Editing %n tracks + + + + + + + Edit track information + + + + + Title + + + + + Album + + + + + Artist + + + + + Genre + + + + + Track + + + + + Year + + + + + Comment + + + + + FileView + + + Form + + + + + + + ... + + + + + FileViewList + + + Add to playlist + + + + + Copy to library... + + + + + Move to library... + + + + + LastFMConfig + + + Authentication failed + + + + + Your Last.fm credentials were incorrect + + + + + Enter your Last.fm details below: + + + + + Last.fm username + + + + + Last.fm password + + + + + Scrobble tracks that I listen to + + + + + Note that you must be a <span style=" font-weight:600;">paid subscriber</span> to listen to Last.fm radio from within Clementine. + + + + + Authenticating... + + + + + LastFMConfigDialog + + + Last.fm + + + + + LastFMService + + + Add to playlist + + + + + Remove + + + + + Play artist radio... + + + + + Play tag radio... + + + + + Configure Last.fm... + + + + + My Recommendations + + + + + My Radio Station + + + + + My Loved Tracks + + + + + My Neighbourhood + + + + + Artist radio + + + + + Tag radio + + + + + Friends + + + + + Neighbours + + + + + %1's Radio Station + + + + + + + %1's Loved Tracks + + + + + %1's Neighborhood + + + + + %1's Recommended Radio + + + + + + %1's Neighbour Radio + + + + + + %1's Library + + + + + Similar Artists to %1 + + + + + Tag Radio: %1 + + + + + Invalid service + + + + + Invalid method + + + + + Authentication failed + + + + + Invalid format + + + + + Invalid parameters + + + + + Invalid resource specified + + + + + Operation failed + + + + + Invalid session key + + + + + Invalid API key + + + + + Service offline + + + + + This stream is for paid subscribers only + + + + + Last.fm is currently busy, please try again in a few minutes + + + + + Not enough content + + + + + Not enough members + + + + + Not enough fans + + + + + Not enough neighbours + + + + + Malformed response + + + + + Unknown error + + + + + LastFMStationDialog + + + Play Artist or Tag + + + + + Enter an <b>artist</b> or <b>tag</b> to start listening to Last.fm radio. + + + + + Artist + + + + + Tag + + + + + Library + + + Various Artists + + + + + + Unknown + + + + + LibraryConfig + + + Add directory... + + + + + These folders will be scanned for music to make up your library + + + + + Add new folder... + + + + + Remove folder + + + + + LibraryConfigDialog + + + Music Library + + + + + LibraryView + + + Your library is empty! + + + + + Click here to add some music + + + + + MainWindow + + + Configure library... + + + + + + + + + Play + + + + + + Stop after this track + + + + + + &Show tray icon + + + + + + Pause + + + + + Clementine + + + + + Library + + + + + Enter search terms here + + + + + Radio + + + + + Files + + + + + Music + + + + + Playlist + + + + + Settings + + + + + Help + + + + + Tools + + + + + Previous track + + + + + Stop + + + + + Next track + + + + + &Quit + + + + + Ctrl+Q + + + + + Entire collection + + + + + Added today + + + + + Added this week + + + + + + Added within three months + + + + + Added this year + + + + + Added this month + + + + + Love + + + + + Ban + + + + + + Clear playlist + + + + + Edit track information... + + + + + Configure Clementine... + + + + + About Clementine... + + + + + Shuffle playlist + + + + + Add media... + + + + + Add stream... + + + + + Open media... + + + + + &Hide tray icon + + + + + Configure &Global Shortcuts... + + + + + Cover Manager + + + + + MultiLoadingIndicator + + + Loading audio engine + + + + + Updating library + + + + + Getting channels + + + + + Loading stream + + + + + Loading Last.fm radio + + + + + Form + + + + + OSD + + + Paused + + + + + Playlist finished + + + + + Volume %1% + + + + + Playlist + + + Title + + + + + Artist + + + + + Album + + + + + Length + + + + + Track + + + + + Disc + + + + + Year + + + + + Genre + + + + + BPM + + + + + Bit rate + + + + + Sample rate + + + + + File name + + + + + File size + + + + + PlaylistHeader + + + Hide... + + + + + Show section + + + + + Hide %1 + + + + + RadioPlaylistItem + + + Radio service couldn't be loaded :-( + + + + + SavedRadio + + + Add to playlist + + + + + Remove + + + + + Add another stream... + + + + + SettingsDialog + + + Settings + + + + + Playback + + + + + Notifications + + + + + Music Library + + + + + Last.fm + + + + + + Fadeout + + + + + No fadeout + + + + + Fadeout duration + + + + + ms + + + + + Clementine can show a message when the track changes. + + + + + Don't show notifications + + + + + Show a native desktop notification + + + + + Show a popup from the system tray + + + + + Popup duration + + + + + seconds + + + + + Show a notification when I change the volume + + + + + Include album art in the notification + + + + + ShortcutsDialog + + + Configure Shortcuts + + + + + Play + + + + + Pause + + + + + Play/Pause + + + + + Stop + + + + + Stop Playing After Current Track + + + + + Next Track + + + + + Previous Track + + + + + Increase Volume + + + + + Decrease Volume + + + + + Mute Volume + + + + + Seek Forwards + + + + + Seek Backwards + + + + + Shortcut + + + + + Alternate + + + + + &Defaults + + + + + Shortcut for Selected Action + + + + + &None + + + + + De&fault + + + + + &Custom + + + + + Non&e + + + + + Default key: + + + + + SomaFMService + + + Add to playlist + + + + + Open somafm.com in browser + + + + + Refresh channels + + + + + TrackSlider + + + Form + + + + + + 0:00:00 + + + + diff --git a/src/translations.qrc b/src/translations.qrc deleted file mode 100644 index 4ddbedf4d..000000000 --- a/src/translations.qrc +++ /dev/null @@ -1,7 +0,0 @@ - - - clementine_el.qm - clementine_es.qm - clementine_ru.qm - -