diff --git a/.travis.yml b/.travis.yml index b7274dad..243e79e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,13 +4,11 @@ services: - docker env: - - DEPENDENCY_PACKAGES="cmake libclutter-gtk-1.0-dev libgee-0.8-dev libglib2.0-dev libgranite-dev libgtk-3-dev libunity-dev valac" + - DEPENDENCY_PACKAGES="meson libclutter-gtk-1.0-dev libgee-0.8-dev libglib2.0-dev libgranite-dev libgtk-3-dev libunity-dev valac" install: - - docker pull elementary/docker:loki - - docker run -v "$PWD":/tmp/build-dir elementary/docker:loki /bin/sh -c "apt-get update && apt-get -y install $DEPENDENCY_PACKAGES && cd /tmp/build-dir && cmake . && env CTEST_OUTPUT_ON_FAILURE=true make" - - docker pull elementary/docker:loki-unstable - - docker run -v "$PWD":/tmp/build-dir elementary/docker:loki-unstable /bin/sh -c "apt-get update && apt-get -y install $DEPENDENCY_PACKAGES && cd /tmp/build-dir && cmake . && env CTEST_OUTPUT_ON_FAILURE=true make" + - docker pull elementary/docker:juno-unstable + - docker run -v "$PWD":/tmp/build-dir elementary/docker:juno-unstable /bin/sh -c "apt-get update && apt-get -y install $DEPENDENCY_PACKAGES && cd /tmp/build-dir && meson build --prefix=/usr && cd build && ninja" script: - echo BUILDS PASSED diff --git a/AUTHORS b/AUTHORS deleted file mode 100644 index 91a050b0..00000000 --- a/AUTHORS +++ /dev/null @@ -1 +0,0 @@ -Avi Romanoff diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index a26fea94..00000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,154 +0,0 @@ -project (switchboard) -cmake_minimum_required (VERSION 2.8) -list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/) -# - -# Base bits - -include (GNUInstallDirs) -set (DATADIR ${CMAKE_INSTALL_FULL_DATAROOTDIR}) -set (GSETTINGSDIR "${DATADIR}/glib-2.0/schemas/") -set (PKGDATADIR "${DATADIR}/${CMAKE_PROJECT_NAME}") -set (GETTEXT_PACKAGE "${CMAKE_PROJECT_NAME}") -set (RELEASE_NAME "Preferences with piazzaz.") -set (PLUGS_DIR ${CMAKE_INSTALL_FULL_LIBDIR}/${CMAKE_PROJECT_NAME}) -set (VERSION "2.3.2") -set (VERSION_INFO "Stable Release") - -add_definitions ("-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\"") -add_definitions ("-DG_LOG_DOMAIN=\"switchboard\"") - -# Comment this out to enable C compiler warnings -add_definitions (-w) - -option (BUILD_SHARED_LIBS "Switch between shared and static libraries" ON) -option (BUILD_SAMPLE "Build an example that shows how it works" OFF) - -if (BUILD_SHARED_LIBS) - message ("-- Shared libraries enabled") -else () - message ("-- Shared libraries disabled") -endif () - -# Do not override library search path, so that plugs can be loaded to even if -# Switchboard is run from the source code tree. -# This is also required by Debian policy, -# see http://wiki.debian.org/RpathIssue for details -set (CMAKE_SKIP_BUILD_RPATH TRUE) - -# - -# Niceties - -# - -set (ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${VERSION}) -add_custom_target (dist - COMMAND bzr export --root=${ARCHIVE_NAME} ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2 - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - ) -add_custom_target (distcheck - COMMAND cd ${CMAKE_BINARY_DIR} - && rm -rf ${ARCHIVE_NAME} - && tar xf ${ARCHIVE_NAME}.tar.bz2 - && mkdir ${ARCHIVE_NAME}/build - && cd ${ARCHIVE_NAME}/build - && cmake -DCMAKE_INSTALL_PREFIX=../install -DGSETTINGS_LOCALINSTALL=ON .. -DCMAKE_MODULE_PATH=/usr/share/cmake - && make -j8 - && make -j8 install - && make check - ) -add_dependencies(distcheck dist) -add_custom_target (uninstall "${CMAKE_COMMAND}" -P - "${CMAKE_SOURCE_DIR}/cmake/uninstall.cmake") - -add_subdirectory (data) -add_subdirectory (po) - -# - -# Switchboard - -# - -option (USE_UNITY "Use Unity integration" ON) - -if (USE_UNITY) - message ("-- Unity integration enabled") - set (UNITY_DEPS unity) - set (UNITY_OPTIONS --define=HAVE_UNITY) -else () - message ("-- Unity integration disabled") -endif () - -set (LIB_PACKAGES - clutter-gtk-1.0 - glib-2.0 - gio-2.0 - gee-0.8 - gmodule-2.0 - gtk+-3.0 - gio-unix-2.0 -) - -set (LIB_PKG - clutter-gtk-1.0 - glib-2.0>=2.32 - gio-2.0 - gee-0.8 - gmodule-2.0 - gtk+-3.0>=3.10 - gio-unix-2.0 -) -find_package(PkgConfig) - -pkg_check_modules (LIB REQUIRED ${LIB_PKG}) - -set (GLOBAL_VALAC_OPTIONS - --vapidir=${CMAKE_BINARY_DIR}/lib - --target-glib=2.32 - --thread - ${UNITY_OPTIONS} -) - -find_package (Vala REQUIRED) -include (ValaVersion) -ensure_vala_version ("0.21.0" MINIMUM) -include (ValaPrecompile) - -add_subdirectory (lib) - -set (DEPS_PACKAGES - ${LIB_NAME} - ${LIB_PACKAGES} # this is needed until we provide a ${CMAKE_PROJECT_NAME}.deps file - granite - ${UNITY_DEPS} -) - -set (DEPS_PKG - granite - ${UNITY_DEPS} -) - -pkg_check_modules (DEPS REQUIRED ${DEPS_PKG} ${LIB_PKG}) -set (DEPS_LIBRARIES ${DEPS_LIBRARIES} -lm) - -# 'src' and 'plugins' depend on the core library -include_directories (${CMAKE_BINARY_DIR}/lib) -set (DEPS_LIBRARIES ${DEPS_LIBRARIES} ${LIB_NAME}) -add_subdirectory (src) - - -if (BUILD_SAMPLE) - add_subdirectory (sample) -endif () - -add_subdirectory (schemas) -install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/schemas/io.elementary.switchboard.gschema.xml DESTINATION ${GSETTINGSDIR}) - -# Create the standard directories to insert plugs. -install(DIRECTORY DESTINATION ${PLUGS_DIR}) -install(DIRECTORY DESTINATION ${PLUGS_DIR}/hardware) -install(DIRECTORY DESTINATION ${PLUGS_DIR}/network) -install(DIRECTORY DESTINATION ${PLUGS_DIR}/personal) -install(DIRECTORY DESTINATION ${PLUGS_DIR}/system) diff --git a/README.md b/README.md index 677b8254..89fcf611 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Switchboard -[![Translation status](https://l10n.elementary.io/widgets/switchboard/-/svg-badge.svg)](https://l10n.elementary.io/projects/switchboard/?utm_source=widget) +[![Packaging status](https://repology.org/badge/tiny-repos/switchboard.svg)](https://repology.org/metapackage/switchboard) +[![l10n](https://l10n.elementary.io/widgets/switchboard/-/svg-badge.svg)](https://l10n.elementary.io/projects/switchboard/?utm_source=widget) ![System Settings Screenshot](data/screenshot.png?raw=true) @@ -7,29 +8,24 @@ You'll need the following dependencies: -* cmake -* debhelper * libclutter-gtk-1.0-dev * libgee-0.8-dev * libglib2.0-dev * libgranite-dev * libgtk-3-dev * libunity-dev +* meson * valac -It's recommended to create a clean build environment +Run `meson` to configure the build environment and then `ninja` to build - mkdir build - cd build/ - -Run `cmake` to configure the build environment and then `make` to build + meson build --prefix=/usr + cd build + ninja - cmake -DCMAKE_INSTALL_PREFIX=/usr .. - make - -To install, use `make install`, then execute with `switchboard` +To install, use `ninja install` then execute with `switchboard` - sudo make install + sudo ninja install switchboard ## Making Switchboard Plugins diff --git a/cmake/FindGirCompiler.cmake b/cmake/FindGirCompiler.cmake deleted file mode 100644 index ccec563a..00000000 --- a/cmake/FindGirCompiler.cmake +++ /dev/null @@ -1,56 +0,0 @@ -## -# Copyright 2009-2010 Jakob Westhoff. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1. Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2. Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY JAKOB WESTHOFF ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL JAKOB WESTHOFF OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# The views and conclusions contained in the software and documentation are those -# of the authors and should not be interpreted as representing official policies, -# either expressed or implied, of Jakob Westhoff -## - -## -# Find module for the Gir compiler (g-ir-compiler) -# -# This module determines wheter a Gir compiler is installed on the current -# system and where its executable is. -# -# Call the module using "find_package(GirCompiler) from within your CMakeLists.txt. -# -# The following variables will be set after an invocation: -# -# G_IR_COMPILER_FOUND Whether the g-ir-compiler compiler has been found or not -# G_IR_COMPILER_EXECUTABLE Full path to the g-ir-compiler executable if it has been found -## - - -# Search for the g-ir-compiler executable in the usual system paths. -find_program (G_IR_COMPILER_EXECUTABLE - NAMES g-ir-compiler) - -# Handle the QUIETLY and REQUIRED arguments, which may be given to the find call. -# Furthermore set G_IR_COMPILER_FOUND to TRUE if the g-ir-compiler has been found (aka. -# G_IR_COMPILER_EXECUTABLE is set) - -include (FindPackageHandleStandardArgs) -find_package_handle_standard_args (GirCompiler DEFAULT_MSG G_IR_COMPILER_EXECUTABLE) - -mark_as_advanced (G_IR_COMPILER_EXECUTABLE) diff --git a/cmake/FindVala.cmake b/cmake/FindVala.cmake deleted file mode 100644 index aa3a6e7d..00000000 --- a/cmake/FindVala.cmake +++ /dev/null @@ -1,65 +0,0 @@ -## -# Copyright 2009-2010 Jakob Westhoff. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1. Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2. Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY JAKOB WESTHOFF ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL JAKOB WESTHOFF OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# The views and conclusions contained in the software and documentation are those -# of the authors and should not be interpreted as representing official policies, -# either expressed or implied, of Jakob Westhoff -## - -## -# Find module for the Vala compiler (valac) -# -# This module determines wheter a Vala compiler is installed on the current -# system and where its executable is. -# -# Call the module using "find_package(Vala) from within your CMakeLists.txt. -# -# The following variables will be set after an invocation: -# -# VALA_FOUND Whether the vala compiler has been found or not -# VALA_EXECUTABLE Full path to the valac executable if it has been found -# VALA_VERSION Version number of the available valac -## - - -# Search for the valac executable in the usual system paths. -find_program(VALA_EXECUTABLE - NAMES valac) - -# Handle the QUIETLY and REQUIRED arguments, which may be given to the find call. -# Furthermore set VALA_FOUND to TRUE if Vala has been found (aka. -# VALA_EXECUTABLE is set) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Vala DEFAULT_MSG VALA_EXECUTABLE) - -mark_as_advanced(VALA_EXECUTABLE) - -# Determine the valac version -if(VALA_FOUND) - execute_process(COMMAND ${VALA_EXECUTABLE} "--version" - OUTPUT_VARIABLE "VALA_VERSION") - string(REPLACE "Vala" "" "VALA_VERSION" ${VALA_VERSION}) - string(STRIP ${VALA_VERSION} "VALA_VERSION") -endif(VALA_FOUND) diff --git a/cmake/GObjectIntrospectionMacros.cmake b/cmake/GObjectIntrospectionMacros.cmake deleted file mode 100644 index 6a0dc0ba..00000000 --- a/cmake/GObjectIntrospectionMacros.cmake +++ /dev/null @@ -1,34 +0,0 @@ -macro(add_target_gir TARGET_NAME GIR_NAME HEADER CFLAGS GRANITE_VERSION) - set(PACKAGES "") - foreach(PKG ${ARGN}) - set(PACKAGES ${PACKAGES} --include=${PKG}) - endforeach() - install(CODE "set(ENV{LD_LIBRARY_PATH} \"${CMAKE_CURRENT_BINARY_DIR}:\$ENV{LD_LIBRARY_PATH}\") - execute_process(COMMAND g-ir-scanner ${CFLAGS} -n ${GIR_NAME} - --quiet - --library ${TARGET_NAME} ${PACKAGES} - -o ${CMAKE_CURRENT_BINARY_DIR}/${GIR_NAME}-${GRANITE_VERSION}.gir - -L${CMAKE_CURRENT_BINARY_DIR} - --nsversion=${GRANITE_VERSION} ${HEADER})") - install(CODE "execute_process(COMMAND g-ir-compiler ${CMAKE_CURRENT_BINARY_DIR}/${GIR_NAME}-${GRANITE_VERSION}.gir -o ${CMAKE_CURRENT_BINARY_DIR}/${GIR_NAME}-${GRANITE_VERSION}.typelib)") - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${GIR_NAME}-${GRANITE_VERSION}.gir DESTINATION share/gir-1.0/) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${GIR_NAME}-${GRANITE_VERSION}.typelib DESTINATION lib/girepository-1.0/) -endmacro() - -macro(add_target_gir_with_executable TARGET_NAME EXE_NAME GIR_NAME HEADER EXE_HEADER CFLAGS GRANITE_VERSION) - set(PACKAGES "") - foreach(PKG ${ARGN}) - set(PACKAGES ${PACKAGES} --include=${PKG}) - endforeach() - install(CODE "set(ENV{LD_LIBRARY_PATH} \"${CMAKE_CURRENT_BINARY_DIR}:\$ENV{LD_LIBRARY_PATH}\") - execute_process(COMMAND g-ir-scanner ${CFLAGS} -n ${GIR_NAME} - --quiet - --library ${TARGET_NAME} --program ${EXE_NAME} ${PACKAGES} - -o ${CMAKE_CURRENT_BINARY_DIR}/${GIR_NAME}-${GRANITE_VERSION}.gir - -L${CMAKE_CURRENT_BINARY_DIR} - -I${CMAKE_CURRENT_BINARY_DIR} - --nsversion=${GRANITE_VERSION} ${HEADER} ${EXE_HEADER})") - install(CODE "execute_process(COMMAND g-ir-compiler ${CMAKE_CURRENT_BINARY_DIR}/${GIR_NAME}-${GRANITE_VERSION}.gir -o ${CMAKE_CURRENT_BINARY_DIR}/${GIR_NAME}-${GRANITE_VERSION}.typelib)") - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${GIR_NAME}-${GRANITE_VERSION}.gir DESTINATION share/gir-1.0/) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${GIR_NAME}-${GRANITE_VERSION}.typelib DESTINATION lib/girepository-1.0/) -endmacro() diff --git a/cmake/GSettings.cmake b/cmake/GSettings.cmake deleted file mode 100644 index 8fd745c3..00000000 --- a/cmake/GSettings.cmake +++ /dev/null @@ -1,42 +0,0 @@ -# GSettings.cmake, CMake macros written for Marlin, feel free to re-use them. - -option (GSETTINGS_LOCALINSTALL "Install GSettings Schemas locally instead of to the GLib prefix" ON) - -option (GSETTINGS_COMPILE "Compile GSettings Schemas after installation" ${GSETTINGS_LOCALINSTALL}) - -if(GSETTINGS_LOCALINSTALL) - message(STATUS "GSettings schemas will be installed locally.") -endif() - -if(GSETTINGS_COMPILE) - message(STATUS "GSettings shemas will be compiled.") -endif() - -macro(add_schema SCHEMA_NAME) - - set(PKG_CONFIG_EXECUTABLE pkg-config) - # Have an option to not install the schema into where GLib is - if (GSETTINGS_LOCALINSTALL) - SET (GSETTINGS_DIR "${CMAKE_INSTALL_PREFIX}/share/glib-2.0/schemas/") - else (GSETTINGS_LOCALINSTALL) - execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} glib-2.0 --variable prefix OUTPUT_VARIABLE _glib_prefix OUTPUT_STRIP_TRAILING_WHITESPACE) - SET (GSETTINGS_DIR "${_glib_prefix}/share/glib-2.0/schemas/") - endif (GSETTINGS_LOCALINSTALL) - - # Run the validator and error if it fails - execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} gio-2.0 --variable glib_compile_schemas OUTPUT_VARIABLE _glib_comple_schemas OUTPUT_STRIP_TRAILING_WHITESPACE) - execute_process (COMMAND ${_glib_comple_schemas} --dry-run --schema-file=${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME} ERROR_VARIABLE _schemas_invalid OUTPUT_STRIP_TRAILING_WHITESPACE) - - if (_schemas_invalid) - message (SEND_ERROR "Schema validation error: ${_schemas_invalid}") - endif (_schemas_invalid) - - # Actually install and recomple schemas - message (STATUS "GSettings schemas will be installed into ${GSETTINGS_DIR}") - install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME} DESTINATION ${GSETTINGS_DIR} OPTIONAL) - - if (GSETTINGS_COMPILE) - install (CODE "message (STATUS \"Compiling GSettings schemas\")") - install (CODE "execute_process (COMMAND ${_glib_comple_schemas} ${GSETTINGS_DIR})") - endif () -endmacro() diff --git a/cmake/ParseArguments.cmake b/cmake/ParseArguments.cmake deleted file mode 100644 index 717c0f56..00000000 --- a/cmake/ParseArguments.cmake +++ /dev/null @@ -1,36 +0,0 @@ -## -# This is a helper Macro to parse optional arguments in Macros/Functions -# It has been taken from the public CMake wiki. -# See http://www.cmake.org/Wiki/CMakeMacroParseArguments for documentation and -# licensing. -## -macro(parse_arguments prefix arg_names option_names) - set(DEFAULT_ARGS) - foreach(arg_name ${arg_names}) - set(${prefix}_${arg_name}) - endforeach(arg_name) - foreach(option ${option_names}) - set(${prefix}_${option} FALSE) - endforeach(option) - - set(current_arg_name DEFAULT_ARGS) - set(current_arg_list) - foreach(arg ${ARGN}) - set(larg_names ${arg_names}) - list(FIND larg_names "${arg}" is_arg_name) - if(is_arg_name GREATER -1) - set(${prefix}_${current_arg_name} ${current_arg_list}) - set(current_arg_name ${arg}) - set(current_arg_list) - else(is_arg_name GREATER -1) - set(loption_names ${option_names}) - list(FIND loption_names "${arg}" is_option) - if(is_option GREATER -1) - set(${prefix}_${arg} TRUE) - else(is_option GREATER -1) - set(current_arg_list ${current_arg_list} ${arg}) - endif(is_option GREATER -1) - endif(is_arg_name GREATER -1) - endforeach(arg) - set(${prefix}_${current_arg_name} ${current_arg_list}) -endmacro(parse_arguments) diff --git a/cmake/README b/cmake/README deleted file mode 100644 index 9d45b32f..00000000 --- a/cmake/README +++ /dev/null @@ -1,10 +0,0 @@ - Elementary CMake modules - -This is a set of CMake modules: Translations, GSettings, and Vala modules. - -For all the Vala related modules see README.Vala.rst: - - ParseArguments.cmake - - ValaPrecompile.cmake - - ValaVersion.cmake - - FindVala.cmake - diff --git a/cmake/README.Vala.rst b/cmake/README.Vala.rst deleted file mode 100644 index bcc59b76..00000000 --- a/cmake/README.Vala.rst +++ /dev/null @@ -1,173 +0,0 @@ -========== -Vala CMake -========== -:Author: - Jakob Westhoff -:Version: - Draft - - -Overview -======== - -Vala CMake is a collection of macros for the CMake_ build system to allow the -creation and management of projects developed using the Vala_ programming -language or its "Genie" flavor (less tested). - - -Installation -============ - -To use the Vala macros in your own project you need to copy the macro files to -an arbitrary folder in your projects directory and reference them in your -``CMakeLists.txt`` file. - -Assuming the macros are stored under ``cmake/vala`` in your projects folder you -need to add the following information to your base ``CMakeLists.txt``:: - - list(APPEND CMAKE_MODULE_PATH - ${CMAKE_SOURCE_DIR}/cmake/vala - ) - -After the new module path as been added you can simply include the provided -modules or use the provided find routines. - - -Finding Vala -============ - -The find module for vala works like any other Find module in CMake. -You can use it by simply calling the usual ``find_package`` function. Default -parameters like ``REQUIRED`` and ``QUIETLY`` are supported. - -:: - - find_package(Vala REQUIRED) - -After a successful call to the find_package function the following variables -will be set: - -VALA_FOUND - Whether the vala compiler has been found or not - -VALA_EXECUTABLE - Full path to the valac executable if it has been found - -VALA_VERSION - Version number of the available valac - - -Precompiling Vala sources -========================= - -CMake is mainly supposed to handle c or c++ based projects. Luckily every vala -program is translated into plain c code using the vala compiler, followed by -normal compilation of the generated c program using gcc. - -The macro ``vala_precompile`` uses that fact to create c files from your .vala -sources for further CMake processing. - -The first parameter provided is a variable, which will be filled with a list of -c files outputted by the vala compiler. This list can than be used in -conjunction with functions like ``add_executable`` or others to create the -necessary compile rules with CMake. - -The initial variable is followed by a list of .vala files to be compiled. -Please take care to add every vala file belonging to the currently compiled -project or library as Vala will otherwise not be able to resolve all -dependencies. - -The following sections may be specified afterwards to provide certain options -to the vala compiler: - -PACKAGES - A list of vala packages/libraries to be used during the compile cycle. The - package names are exactly the same, as they would be passed to the valac - "--pkg=" option. - -OPTIONS - A list of optional options to be passed to the valac executable. This can be - used to pass "--thread" for example to enable multi-threading support. - -DIRECTORY - Specify the directory where the output source files will be stored. If - ommitted, the source files will be stored in CMAKE_CURRENT_BINARY_DIR. - -CUSTOM_VAPIS - A list of custom vapi files to be included for compilation. This can be - useful to include freshly created vala libraries without having to install - them in the system. - -GENERATE_VAPI - Pass all the needed flags to the compiler to create an internal vapi for - the compiled library. The provided name will be used for this and a - .vapi file will be created. - -GENERATE_HEADER - Let the compiler generate a header file for the compiled code. There will - be a header file as well as an internal header file being generated called - .h and _internal.h - -The following call is a simple example to the vala_precompile macro showing an -example to every of the optional sections:: - - vala_precompile(VALA_C - source1.vala - source2.vala - source3.vala - PACKAGES - gtk+-2.0 - gio-1.0 - posix - OPTIONS - --thread - CUSTOM_VAPIS - some_vapi.vapi - GENERATE_VAPI - myvapi - GENERATE_HEADER - myheader - ) - -Most important is the variable VALA_C which will contain all the generated c -file names after the call. The easiest way to use this information is to tell -CMake to create an executable out of it. - -:: - - add_executable(myexecutable ${VALA_C}) - - -Further reading -=============== - -The `Pdf Presenter Console`__ , which is a vala based project of mine, makes -heavy usage of the here described macros. To look at a real world example of -these macros the mentioned project is the right place to take a look. The svn -trunk of it can be found at:: - - svn://pureenergy.cc/pdf_presenter_console/trunk - - -__ http://westhoffswelt.de/projects/pdf_presenter_console.html - - -Acknowledgments -=============== - -Thanks go out to Florian Sowade, a fellow local PHP-Usergroupie, who helped me -a lot with the initial version of this macros and always answered my mostly -dumb CMake questions. - -.. _CMake: http://cmake.org -.. _Vala: http://live.gnome.org/Vala -.. _Genie: http://live.gnome.org/Genie - - - -.. - Local Variables: - mode: rst - fill-column: 79 - End: - vim: et syn=rst tw=79 diff --git a/cmake/Tests.cmake b/cmake/Tests.cmake deleted file mode 100644 index 76ba0b7f..00000000 --- a/cmake/Tests.cmake +++ /dev/null @@ -1,5 +0,0 @@ -# Test macros for Marlin, feel free to re-use them. - -macro(add_test_executable EXE_NAME) - add_test(${EXE_NAME} gtester ${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME}) -endmacro() diff --git a/cmake/Translations.cmake b/cmake/Translations.cmake deleted file mode 100644 index e8e42ed7..00000000 --- a/cmake/Translations.cmake +++ /dev/null @@ -1,203 +0,0 @@ -# Translations.cmake, CMake macros written for Marlin, feel free to re-use them -include(CMakeParseArguments) - -macro (add_translations_directory NLS_PACKAGE) - add_custom_target (i18n ALL COMMENT “Building i18n messages.”) - find_program (MSGFMT_EXECUTABLE msgfmt) - # be sure that all languages are present - # Using all usual languages code from https://www.gnu.org/software/gettext/manual/html_node/Language-Codes.html#Language-Codes - # Rare language codes should be added on-demand. - set (LANGUAGES_NEEDED aa ab ae af ak am an ar as ast av ay az ba be bg bh bi bm bn bo br bs ca ce ch ckb co cr cs cu cv cy da de dv dz ee el en_AU en_CA en_GB eo es et eu fa ff fi fj fo fr fr_CA fy ga gd gl gn gu gv ha he hi ho hr ht hu hy hz ia id ie ig ii ik io is it iu ja jv ka kg ki kj kk kl km kn ko kr ks ku kv kw ky la lb lg li ln lo lt lu lv mg mh mi mk ml mn mo mr ms mt my na nb nd ne ng nl nn no nr nv ny oc oj om or os pa pi pl ps pt pt_BR qu rm rn ro ru rue rw sa sc sd se sg si sk sl sm sma sn so sq sr ss st su sv sw ta te tg th ti tk tl tn to tr ts tt tw ty ug uk ur uz ve vi vo wa wo xh yi yo za zh zh_CN zh_HK zh_TW zu) - foreach (LANGUAGE_NEEDED ${LANGUAGES_NEEDED}) - create_po_file (${LANGUAGE_NEEDED}) - endforeach (LANGUAGE_NEEDED ${LANGUAGES_NEEDED}) - # generate .mo from .po - file (GLOB PO_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.po) - foreach (PO_INPUT ${PO_FILES}) - get_filename_component (PO_INPUT_BASE ${PO_INPUT} NAME_WE) - set (MO_OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${PO_INPUT_BASE}.mo) - add_custom_command (TARGET i18n COMMAND ${MSGFMT_EXECUTABLE} -o ${MO_OUTPUT} ${PO_INPUT}) - - install (FILES ${MO_OUTPUT} DESTINATION - share/locale/${PO_INPUT_BASE}/LC_MESSAGES - RENAME ${NLS_PACKAGE}.mo) - endforeach (PO_INPUT ${PO_FILES}) -endmacro (add_translations_directory) - -# Apply the right default template. -macro (create_po_file LANGUAGE_NEEDED) - set (FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LANGUAGE_NEEDED}.po) - if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LANGUAGE_NEEDED}.po) - file (APPEND ${FILE} "msgid \"\"\n") - file (APPEND ${FILE} "msgstr \"\"\n") - file (APPEND ${FILE} "\"MIME-Version: 1.0\\n\"\n") - file (APPEND ${FILE} "\"Content-Type: text/plain; charset=UTF-8\\n\"\n") - - if ("${LANGUAGE_NEEDED}" STREQUAL "ja" - OR "${LANGUAGE_NEEDED}" STREQUAL "vi" - OR "${LANGUAGE_NEEDED}" STREQUAL "ko") - file (APPEND ${FILE} "\"Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\\n\"\n") - elseif ("${LANGUAGE_NEEDED}" STREQUAL "en" - OR "${LANGUAGE_NEEDED}" STREQUAL "de" - OR "${LANGUAGE_NEEDED}" STREQUAL "nl" - OR "${LANGUAGE_NEEDED}" STREQUAL "sv" - OR "${LANGUAGE_NEEDED}" STREQUAL "nb" - OR "${LANGUAGE_NEEDED}" STREQUAL "nn" - OR "${LANGUAGE_NEEDED}" STREQUAL "nb" - OR "${LANGUAGE_NEEDED}" STREQUAL "no" - OR "${LANGUAGE_NEEDED}" STREQUAL "fo" - OR "${LANGUAGE_NEEDED}" STREQUAL "es" - OR "${LANGUAGE_NEEDED}" STREQUAL "pt" - OR "${LANGUAGE_NEEDED}" STREQUAL "it" - OR "${LANGUAGE_NEEDED}" STREQUAL "bg" - OR "${LANGUAGE_NEEDED}" STREQUAL "he" - OR "${LANGUAGE_NEEDED}" STREQUAL "fi" - OR "${LANGUAGE_NEEDED}" STREQUAL "et" - OR "${LANGUAGE_NEEDED}" STREQUAL "eo" - OR "${LANGUAGE_NEEDED}" STREQUAL "hu" - OR "${LANGUAGE_NEEDED}" STREQUAL "tr" - OR "${LANGUAGE_NEEDED}" STREQUAL "es") - file (APPEND ${FILE} "\"Plural-Forms: nplurals=2; plural=n != 1;\\n\"\n") - elseif ("${LANGUAGE_NEEDED}" STREQUAL "fr" - OR "${LANGUAGE_NEEDED}" STREQUAL "fr_CA" - OR "${LANGUAGE_NEEDED}" STREQUAL "pt_BR") - file (APPEND ${FILE} "\"Plural-Forms: nplurals=2; plural=n>1;\\n\"\n") - elseif ("${LANGUAGE_NEEDED}" STREQUAL "lv") - file (APPEND ${FILE} "\"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2;\\n\"\n") - elseif ("${LANGUAGE_NEEDED}" STREQUAL "ro") - file (APPEND ${FILE} "\"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2;\\n\"\n") - elseif ("${LANGUAGE_NEEDED}" STREQUAL "lt") - file (APPEND ${FILE} "\"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2;\\n\"\n") - elseif ("${LANGUAGE_NEEDED}" STREQUAL "ru" - OR "${LANGUAGE_NEEDED}" STREQUAL "uk" - OR "${LANGUAGE_NEEDED}" STREQUAL "be" - OR "${LANGUAGE_NEEDED}" STREQUAL "sr" - OR "${LANGUAGE_NEEDED}" STREQUAL "hr") - file (APPEND ${FILE} "\"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\\n\"\n") - elseif ("${LANGUAGE_NEEDED}" STREQUAL "cs" - OR "${LANGUAGE_NEEDED}" STREQUAL "sk") - file (APPEND ${FILE} "\"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\\n\"\n") - elseif ("${LANGUAGE_NEEDED}" STREQUAL "pl") - file (APPEND ${FILE} "\"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\\n\"\n") - elseif ("${LANGUAGE_NEEDED}" STREQUAL "sl") - file (APPEND ${FILE} "\"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3;\\n\"\n") - endif () - - endif () -endmacro (create_po_file) - -macro (configure_file_translation SOURCE RESULT PO_DIR) - find_program (INTLTOOL_MERGE_EXECUTABLE intltool-merge) - set(EXTRA_PO_DIR ${PO_DIR}/extra/) - get_filename_component(EXTRA_PO_DIR ${EXTRA_PO_DIR} ABSOLUTE) - - # Intltool can't create a new directory. - get_filename_component(RESULT_DIRECTORY ${RESULT} DIRECTORY) - file(MAKE_DIRECTORY ${RESULT_DIRECTORY}) - - set (INTLTOOL_FLAG "") - if (${SOURCE} MATCHES ".desktop") - set (INTLTOOL_FLAG "--desktop-style") - elseif (${SOURCE} MATCHES ".gschema") - set (INTLTOOL_FLAG "--schemas-style") - elseif (${SOURCE} MATCHES ".xml") - set (INTLTOOL_FLAG "--xml-style") - endif () - execute_process (WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${INTLTOOL_MERGE_EXECUTABLE} --quiet ${INTLTOOL_FLAG} ${EXTRA_PO_DIR} ${SOURCE} ${RESULT}) -endmacro () - -macro (add_translations_catalog NLS_PACKAGE) - cmake_parse_arguments (ARGS "" "" "DESKTOP_FILES;APPDATA_FILES;SCHEMA_FILES" ${ARGN}) - add_custom_target (pot COMMENT “Building translation catalog.”) - find_program (XGETTEXT_EXECUTABLE xgettext) - find_program (INTLTOOL_EXTRACT_EXECUTABLE intltool-extract) - - set(EXTRA_PO_DIR ${CMAKE_CURRENT_SOURCE_DIR}/extra) - - set(C_SOURCE "") - set(VALA_SOURCE "") - set(GLADE_SOURCE "") - - foreach(FILES_INPUT ${ARGN}) - if((${FILES_INPUT} MATCHES ${CMAKE_SOURCE_DIR}) OR (${FILES_INPUT} MATCHES ${CMAKE_BINARY_DIR})) - set(BASE_DIRECTORY ${FILES_INPUT}) - else () - set(BASE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${FILES_INPUT}) - endif () - - file (GLOB_RECURSE SOURCE_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/ ${BASE_DIRECTORY}/*.c) - foreach(C_FILE ${SOURCE_FILES}) - set(C_SOURCE ${C_SOURCE} ${C_FILE}) - endforeach() - - file (GLOB_RECURSE SOURCE_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/ ${BASE_DIRECTORY}/*.vala) - foreach(VALA_FILE ${SOURCE_FILES}) - set(VALA_SOURCE ${VALA_SOURCE} ${VALA_FILE}) - endforeach() - - file (GLOB_RECURSE SOURCE_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/ ${BASE_DIRECTORY}/*.ui) - foreach(GLADE_FILE ${SOURCE_FILES}) - set(GLADE_SOURCE ${GLADE_SOURCE} ${GLADE_FILE}) - endforeach() - endforeach() - - set (XGETTEXT_C_ARGS --add-comments="/" --keyword="_" --keyword="N_" --keyword="C_:1c,2" --keyword="NC_:1c,2" --keyword="ngettext:1,2" --keyword="Q_:1g") - set(BASE_XGETTEXT_COMMAND - ${XGETTEXT_EXECUTABLE} -d ${NLS_PACKAGE} - -o ${CMAKE_CURRENT_SOURCE_DIR}/${NLS_PACKAGE}.pot - ${XGETTEXT_C_ARGS} --from-code=UTF-8) - - set(EXTRA_XGETTEXT_COMMAND - ${XGETTEXT_EXECUTABLE} -d extra - -o ${EXTRA_PO_DIR}/extra.pot --no-location --from-code=UTF-8) - - set (INTLTOOL_EXTRACT_COMMAND - ${INTLTOOL_EXTRACT_EXECUTABLE} --local --srcdir=/) - - set(CONTINUE_FLAG "") - - IF(NOT "${C_SOURCE}" STREQUAL "") - add_custom_command(TARGET pot WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${BASE_XGETTEXT_COMMAND} ${C_SOURCE}) - set(CONTINUE_FLAG "-j") - ENDIF() - - IF(NOT "${VALA_SOURCE}" STREQUAL "") - add_custom_command(TARGET pot WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${BASE_XGETTEXT_COMMAND} ${CONTINUE_FLAG} -LC\# ${VALA_SOURCE}) - set(CONTINUE_FLAG "-j") - ENDIF() - - IF(NOT "${GLADE_SOURCE}" STREQUAL "") - add_custom_command (TARGET pot WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${BASE_XGETTEXT_COMMAND} ${CONTINUE_FLAG} -LGlade ${GLADE_SOURCE}) - ENDIF() - - # We need to create the directory if one extra content exists. - IF((NOT "${ARGS_DESKTOP_FILES}" STREQUAL "") OR (NOT "${ARGS_APPDATA_SOURCE}" STREQUAL "") OR (NOT "${ARGS_SCHEMA_SOURCE}" STREQUAL "")) - file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/extra/) - ENDIF() - - set(CONTINUE_FLAG "") - - foreach(DESKTOP_SOURCE ${ARGS_DESKTOP_FILES}) - get_filename_component(DESKTOP_SOURCE ${DESKTOP_SOURCE} ABSOLUTE) - add_custom_command(TARGET pot WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${INTLTOOL_EXTRACT_COMMAND} --type=gettext/keys ${DESKTOP_SOURCE}) - get_filename_component(DESKTOP_SOURCE_NAME ${DESKTOP_SOURCE} NAME) - add_custom_command(TARGET pot WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${EXTRA_XGETTEXT_COMMAND} ${CONTINUE_FLAG} ${XGETTEXT_C_ARGS} ${CMAKE_CURRENT_BINARY_DIR}/tmp/${DESKTOP_SOURCE_NAME}.h) - set(CONTINUE_FLAG "-j") - endforeach() - - foreach(APPDATA_SOURCE ${ARGS_APPDATA_FILES}) - get_filename_component(APPDATA_SOURCE ${APPDATA_SOURCE} ABSOLUTE) - add_custom_command(TARGET pot WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${INTLTOOL_EXTRACT_COMMAND} --type=gettext/xml ${APPDATA_SOURCE}) - get_filename_component(APPDATA_SOURCE_NAME ${APPDATA_SOURCE} NAME) - add_custom_command(TARGET pot WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${EXTRA_XGETTEXT_COMMAND} ${CONTINUE_FLAG} ${XGETTEXT_C_ARGS} ${CMAKE_CURRENT_BINARY_DIR}/tmp/${APPDATA_SOURCE_NAME}.h) - set(CONTINUE_FLAG "-j") - endforeach() - - foreach(SCHEMA_SOURCE ${ARGS_SCHEMA_FILES}) - get_filename_component(SCHEMA_SOURCE ${SCHEMA_SOURCE} ABSOLUTE) - add_custom_command(TARGET pot WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${INTLTOOL_EXTRACT_COMMAND} --type=gettext/schemas ${SCHEMA_SOURCE}) - get_filename_component(SCHEMA_SOURCE_NAME ${SCHEMA_SOURCE} NAME) - add_custom_command(TARGET pot WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${EXTRA_XGETTEXT_COMMAND} ${CONTINUE_FLAG} ${XGETTEXT_C_ARGS} ${CMAKE_CURRENT_BINARY_DIR}/tmp/${SCHEMA_SOURCE_NAME}.h) - set(CONTINUE_FLAG "-j") - endforeach() -endmacro () diff --git a/cmake/ValaPrecompile.cmake b/cmake/ValaPrecompile.cmake deleted file mode 100644 index 31952f3e..00000000 --- a/cmake/ValaPrecompile.cmake +++ /dev/null @@ -1,249 +0,0 @@ -## -# Copyright 2009-2010 Jakob Westhoff. All rights reserved. -# Copyright 2012 elementary. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1. Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2. Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY JAKOB WESTHOFF ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL JAKOB WESTHOFF OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# The views and conclusions contained in the software and documentation are those -# of the authors and should not be interpreted as representing official policies, -# either expressed or implied, of Jakob Westhoff -## - -include(ParseArguments) -find_package(Vala REQUIRED) - -## -# Compile vala files to their c equivalents for further processing. -# -# The "vala_precompile" macro takes care of calling the valac executable on the -# given source to produce c files which can then be processed further using -# default cmake functions. -# -# The first parameter provided is a variable, which will be filled with a list -# of c files outputted by the vala compiler. This list can than be used in -# conjuction with functions like "add_executable" or others to create the -# neccessary compile rules with CMake. -# -# The initial variable is followed by a list of .vala files to be compiled. -# Please take care to add every vala file belonging to the currently compiled -# project or library as Vala will otherwise not be able to resolve all -# dependencies. -# -# The following sections may be specified afterwards to provide certain options -# to the vala compiler: -# -# PACKAGES -# A list of vala packages/libraries to be used during the compile cycle. The -# package names are exactly the same, as they would be passed to the valac -# "--pkg=" option. -# -# OPTIONS -# A list of optional options to be passed to the valac executable. This can be -# used to pass "--thread" for example to enable multi-threading support. -# -# CUSTOM_VAPIS -# A list of custom vapi files to be included for compilation. This can be -# useful to include freshly created vala libraries without having to install -# them in the system. -# -# GENERATE_VAPI -# Pass all the needed flags to the compiler to create an internal vapi for -# the compiled library. The provided name will be used for this and a -# .vapi file will be created. -# -# GENERATE_HEADER -# Let the compiler generate a header file for the compiled code. There will -# be a header file as well as an internal header file being generated called -# .h and _internal.h -# -# GENERATE_GIR -# Have the compiler generate a GObject-Introspection repository file with -# name: .gir. This can be later used to create a binary typelib -# using the GI compiler. -# -# GENERATE_SYMBOLS -# Output a .symbols file containing all the exported symbols. -# -# The following call is a simple example to the vala_precompile macro showing -# an example to every of the optional sections: -# -# vala_precompile(VALA_C mytargetname -# source1.vala -# source2.vala -# source3.vala -# PACKAGES -# gtk+-2.0 -# gio-1.0 -# posix -# DIRECTORY -# gen -# OPTIONS -# --thread -# CUSTOM_VAPIS -# some_vapi.vapi -# GENERATE_VAPI -# myvapi -# GENERATE_HEADER -# myheader -# GENERATE_GIR -# mygir -# GENERATE_SYMBOLS -# mysymbols -# ) -# -# Most important is the variable VALA_C which will contain all the generated c -# file names after the call. -## - -macro(vala_precompile output target_name) - parse_arguments(ARGS "TARGET;PACKAGES;OPTIONS;DIRECTORY;GENERATE_GIR;GENERATE_SYMBOLS;GENERATE_HEADER;GENERATE_VAPI;CUSTOM_VAPIS" "" ${ARGN}) - - if(ARGS_DIRECTORY) - set(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${ARGS_DIRECTORY}) - else(ARGS_DIRECTORY) - set(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) - endif(ARGS_DIRECTORY) - include_directories(${DIRECTORY}) - set(vala_pkg_opts "") - foreach(pkg ${ARGS_PACKAGES}) - list(APPEND vala_pkg_opts "--pkg=${pkg}") - endforeach(pkg ${ARGS_PACKAGES}) - set(in_files "") - set(out_files "") - set(out_files_display "") - set(${output} "") - - foreach(src ${ARGS_DEFAULT_ARGS}) - string(REGEX MATCH "^/" IS_MATCHED ${src}) - if(${IS_MATCHED} MATCHES "/") - set(src_file_path ${src}) - else() - set(src_file_path ${CMAKE_CURRENT_SOURCE_DIR}/${src}) - endif() - list(APPEND in_files ${src_file_path}) - string(REPLACE ".vala" ".c" src ${src}) - string(REPLACE ".gs" ".c" src ${src}) - if(${IS_MATCHED} MATCHES "/") - get_filename_component(VALA_FILE_NAME ${src} NAME) - set(out_file "${CMAKE_CURRENT_BINARY_DIR}/${VALA_FILE_NAME}") - list(APPEND out_files "${CMAKE_CURRENT_BINARY_DIR}/${VALA_FILE_NAME}") - else() - set(out_file "${DIRECTORY}/${src}") - list(APPEND out_files "${DIRECTORY}/${src}") - endif() - list(APPEND ${output} ${out_file}) - list(APPEND out_files_display "${src}") - endforeach(src ${ARGS_DEFAULT_ARGS}) - - set(custom_vapi_arguments "") - if(ARGS_CUSTOM_VAPIS) - foreach(vapi ${ARGS_CUSTOM_VAPIS}) - if(${vapi} MATCHES ${CMAKE_SOURCE_DIR} OR ${vapi} MATCHES ${CMAKE_BINARY_DIR}) - list(APPEND custom_vapi_arguments ${vapi}) - else (${vapi} MATCHES ${CMAKE_SOURCE_DIR} OR ${vapi} MATCHES ${CMAKE_BINARY_DIR}) - list(APPEND custom_vapi_arguments ${CMAKE_CURRENT_SOURCE_DIR}/${vapi}) - endif(${vapi} MATCHES ${CMAKE_SOURCE_DIR} OR ${vapi} MATCHES ${CMAKE_BINARY_DIR}) - endforeach(vapi ${ARGS_CUSTOM_VAPIS}) - endif(ARGS_CUSTOM_VAPIS) - - set(vapi_arguments "") - if(ARGS_GENERATE_VAPI) - list(APPEND out_files "${DIRECTORY}/${ARGS_GENERATE_VAPI}.vapi") - list(APPEND out_files_display "${ARGS_GENERATE_VAPI}.vapi") - set(vapi_arguments "--library=${ARGS_GENERATE_VAPI}" "--vapi=${ARGS_GENERATE_VAPI}.vapi") - - # Header and internal header is needed to generate internal vapi - if (NOT ARGS_GENERATE_HEADER) - set(ARGS_GENERATE_HEADER ${ARGS_GENERATE_VAPI}) - endif(NOT ARGS_GENERATE_HEADER) - endif(ARGS_GENERATE_VAPI) - - set(header_arguments "") - if(ARGS_GENERATE_HEADER) - list(APPEND out_files "${DIRECTORY}/${ARGS_GENERATE_HEADER}.h") - list(APPEND out_files_display "${ARGS_GENERATE_HEADER}.h") - list(APPEND header_arguments "--header=${ARGS_GENERATE_HEADER}.h") - endif(ARGS_GENERATE_HEADER) - - set(gir_arguments "") - set(gircomp_command "") - if(ARGS_GENERATE_GIR) - list(APPEND out_files "${DIRECTORY}/${ARGS_GENERATE_GIR}.gir") - list(APPEND out_files_display "${ARGS_GENERATE_GIR}.gir") - set(gir_arguments "--gir=${ARGS_GENERATE_GIR}.gir") - - include (FindGirCompiler) - find_package(GirCompiler REQUIRED) - - set(gircomp_command - COMMAND - ${G_IR_COMPILER_EXECUTABLE} - ARGS - "${DIRECTORY}/${ARGS_GENERATE_GIR}.gir" - -o "${DIRECTORY}/${ARGS_GENERATE_GIR}.typelib") - endif(ARGS_GENERATE_GIR) - - set(symbols_arguments "") - if(ARGS_GENERATE_SYMBOLS) - list(APPEND out_files "${DIRECTORY}/${ARGS_GENERATE_SYMBOLS}.symbols") - list(APPEND out_files_display "${ARGS_GENERATE_SYMBOLS}.symbols") - set(symbols_arguments "--symbols=${ARGS_GENERATE_SYMBOLS}.symbols") - endif(ARGS_GENERATE_SYMBOLS) - - # Workaround for a bug that would make valac run twice. This file is written - # after the vala compiler generates C source code. - set(OUTPUT_STAMP ${CMAKE_CURRENT_BINARY_DIR}/${target_name}_valac.stamp) - - add_custom_command( - OUTPUT - ${OUTPUT_STAMP} - COMMAND - ${VALA_EXECUTABLE} - ARGS - "-C" - ${header_arguments} - ${vapi_arguments} - ${gir_arguments} - ${symbols_arguments} - "-b" ${CMAKE_CURRENT_SOURCE_DIR} - "-d" ${DIRECTORY} - ${vala_pkg_opts} - ${ARGS_OPTIONS} - "-g" - ${in_files} - ${custom_vapi_arguments} - COMMAND - touch - ARGS - ${OUTPUT_STAMP} - DEPENDS - ${in_files} - ${ARGS_CUSTOM_VAPIS} - COMMENT - "Generating ${out_files_display}" - ${gircomp_command} - ) - - # This command will be run twice for some reason (pass a non-empty string to COMMENT - # in order to see it). Since valac is not executed from here, this won't be a problem. - add_custom_command(OUTPUT ${out_files} DEPENDS ${OUTPUT_STAMP} COMMENT "") -endmacro(vala_precompile) diff --git a/cmake/ValaVersion.cmake b/cmake/ValaVersion.cmake deleted file mode 100644 index 3fff193f..00000000 --- a/cmake/ValaVersion.cmake +++ /dev/null @@ -1,96 +0,0 @@ -## -# Copyright 2009-2010 Jakob Westhoff. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1. Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2. Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY JAKOB WESTHOFF ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL JAKOB WESTHOFF OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# The views and conclusions contained in the software and documentation are those -# of the authors and should not be interpreted as representing official policies, -# either expressed or implied, of Jakob Westhoff -## - -include(ParseArguments) -find_package(Vala REQUIRED) - -## -# Ensure a certain valac version is available -# -# The initial argument is the version to check for -# -# It may be followed by a optional parameter to specifiy a version range. The -# following options are valid: -# -# EXACT -# Vala needs to be available in the exact version given -# -# MINIMUM -# The provided version is the minimum version. Therefore Vala needs to be -# available in the given version or any higher version -# -# MAXIMUM -# The provided version is the maximum. Therefore Vala needs to be available -# in the given version or any version older than this -# -# If no option is specified the version will be treated as a minimal version. -## -macro(ensure_vala_version version) - parse_arguments(ARGS "" "MINIMUM;MAXIMUM;EXACT" ${ARGN}) - set(compare_message "") - set(error_message "") - if(ARGS_MINIMUM) - set(compare_message "a minimum ") - set(error_message "or greater ") - elseif(ARGS_MAXIMUM) - set(compare_message "a maximum ") - set(error_message "or less ") - endif(ARGS_MINIMUM) - - message(STATUS - "checking for ${compare_message}Vala version of ${version}" - ) - - unset(version_accepted) - - # MINIMUM is the default if no option is specified - if(ARGS_EXACT) - if(${VALA_VERSION} VERSION_EQUAL ${version} ) - set(version_accepted TRUE) - endif(${VALA_VERSION} VERSION_EQUAL ${version}) - elseif(ARGS_MAXIMUM) - if(${VALA_VERSION} VERSION_LESS ${version} OR ${VALA_VERSION} VERSION_EQUAL ${version}) - set(version_accepted TRUE) - endif(${VALA_VERSION} VERSION_LESS ${version} OR ${VALA_VERSION} VERSION_EQUAL ${version}) - else(ARGS_MAXIMUM) - if(${VALA_VERSION} VERSION_GREATER ${version} OR ${VALA_VERSION} VERSION_EQUAL ${version}) - set(version_accepted TRUE) - endif(${VALA_VERSION} VERSION_GREATER ${version} OR ${VALA_VERSION} VERSION_EQUAL ${version}) - endif(ARGS_EXACT) - - if (NOT version_accepted) - message(FATAL_ERROR - "Vala version ${version} ${error_message}is required." - ) - endif(NOT version_accepted) - - message(STATUS - " found Vala, version ${VALA_VERSION}" - ) -endmacro(ensure_vala_version) diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt deleted file mode 100644 index 6d5fe3ba..00000000 --- a/data/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -include (Translations) -configure_file_translation(${CMAKE_SOURCE_DIR}/data/io.elementary.switchboard.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/io.elementary.switchboard.desktop ${CMAKE_SOURCE_DIR}/po/) -configure_file_translation(${CMAKE_SOURCE_DIR}/data/io.elementary.switchboard.appdata.xml.in ${CMAKE_CURRENT_BINARY_DIR}/io.elementary.switchboard.appdata.xml ${CMAKE_SOURCE_DIR}/po/) - -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/io.elementary.switchboard.desktop DESTINATION ${DATADIR}/applications) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/io.elementary.switchboard.appdata.xml DESTINATION ${DATADIR}/metainfo) - diff --git a/data/io.elementary.switchboard.appdata.xml.in b/data/io.elementary.switchboard.appdata.xml.in index ad659a85..d9721672 100644 --- a/data/io.elementary.switchboard.appdata.xml.in +++ b/data/io.elementary.switchboard.appdata.xml.in @@ -5,12 +5,12 @@ CC0-1.0 elementary GPL-3.0+ - <_name>System Settings - <_summary>Change system and user settings + System Settings + Change system and user settings - <_p> +

A system settings application that focuses on modularity and simplicity. - +

switchboard diff --git a/data/io.elementary.switchboard.desktop.in b/data/io.elementary.switchboard.desktop.in index 0604ef5d..4cd88e75 100644 --- a/data/io.elementary.switchboard.desktop.in +++ b/data/io.elementary.switchboard.desktop.in @@ -1,11 +1,11 @@ [Desktop Entry] Type=Application -_Name=System Settings -_Comment=Change system and user settings +Name=System Settings +Comment=Change system and user settings Exec=switchboard %u Icon=preferences-desktop Terminal=false StartupNotify=true Categories=GNOME;GTK;System; -_Keywords=Center;Control;Panel;Preferences;System; +Keywords=Center;Control;Panel;Preferences;System; MimeType=x-scheme-handler/settings; diff --git a/schemas/io.elementary.switchboard.gschema.xml b/data/io.elementary.switchboard.gschema.xml similarity index 100% rename from schemas/io.elementary.switchboard.gschema.xml rename to data/io.elementary.switchboard.gschema.xml diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 00000000..c456813b --- /dev/null +++ b/data/meson.build @@ -0,0 +1,22 @@ +po_extra_dir = join_paths(meson.source_root(), 'po', 'extra') +i18n.merge_file('desktop', + input: 'io.elementary.switchboard.desktop.in', + output: 'io.elementary.switchboard.desktop', + install: true, + install_dir: join_paths(get_option('datadir'), 'applications'), + po_dir: po_extra_dir, + type: 'desktop' +) + +i18n.merge_file('appdata', + input: 'io.elementary.switchboard.appdata.xml.in', + output: 'io.elementary.switchboard.appdata.xml', + install: true, + install_dir: join_paths(get_option('datadir'), 'metainfo'), + po_dir: po_extra_dir +) + +install_data( + 'io.elementary.switchboard.gschema.xml', + install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas') +) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt deleted file mode 100644 index 1db9a8d2..00000000 --- a/lib/CMakeLists.txt +++ /dev/null @@ -1,74 +0,0 @@ -###################### -# Set Variables -###################### - -set (CONFIG_FILE ${CMAKE_CURRENT_BINARY_DIR}/config.h) -set (PREFIX ${CMAKE_INSTALL_PREFIX}) -set (LIB_VERSION 2.0) -set (LIB_VERSION ${LIB_VERSION} PARENT_SCOPE) -set (LIB_SOVERSION 0) -set (LIB_SOVERSION ${LIB_SOVERSION} PARENT_SCOPE) -set (LIB_NAME ${CMAKE_PROJECT_NAME}-${LIB_VERSION}) -set (LIB_NAME ${LIB_NAME} PARENT_SCOPE) - -configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CONFIG_FILE}) -configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME}.pc @ONLY) - -set (LIB_SOURCE - Plug.vala - PlugsManager.vala -) - -if (BUILD_SHARED_LIBS) - set (LINK_MODE SHARED) -else () - set (LINK_MODE STATIC) -endif () - -###################### -# Generate .c, .vapi, .gir and .h -###################### - -vala_precompile (LIB_VALA_C ${LIB_NAME} - ${LIB_SOURCE} - PACKAGES - ${LIB_PACKAGES} - OPTIONS - ${GLOBAL_VALAC_OPTIONS} - CUSTOM_VAPIS - config.vapi - GENERATE_VAPI - ${LIB_NAME} - GENERATE_HEADER - ${CMAKE_PROJECT_NAME} -) - -###################### -# Include definitions -###################### - -add_definitions (${LIB_CFLAGS}) -link_directories (${LIB_LIBRARY_DIRS}) - -add_library (${LIB_NAME} ${LINK_MODE} ${LIB_VALA_C}) - -set_target_properties (${LIB_NAME} PROPERTIES - OUTPUT_NAME ${LIB_NAME} - VERSION ${LIB_VERSION} - SOVERSION ${LIB_SOVERSION} -) - -target_link_libraries (${LIB_NAME} ${LIB_LIBRARIES}) - -###################### -# Installation -###################### - -if (BUILD_SHARED_LIBS) - install (TARGETS ${LIB_NAME} DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}) - # Install lib stuffs - install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME}.pc DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig/) - install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME}.vapi DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/vala/vapi/) - install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/${LIB_NAME}.deps DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/vala/vapi/) - install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.h DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR}/${LIB_NAME}/) -endif () diff --git a/lib/config.h.cmake b/lib/config.h.cmake deleted file mode 100644 index 178ed3c1..00000000 --- a/lib/config.h.cmake +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef CONFIG_H -#define CONFIG_H - -#cmakedefine DATADIR "@DATADIR@" -#cmakedefine PKGDATADIR "@PKGDATADIR@" -#cmakedefine PLUGS_DIR "@PLUGS_DIR@" -#cmakedefine GETTEXT_PACKAGE "@GETTEXT_PACKAGE@" -#cmakedefine RELEASE_NAME "@RELEASE_NAME@" -#cmakedefine VERSION "@VERSION@" -#cmakedefine VERSION_INFO "@VERSION_INFO@" - -#endif // CONFIG_H diff --git a/lib/config.vapi b/lib/config.vapi index 85d4aa13..cdbd47e4 100644 --- a/lib/config.vapi +++ b/lib/config.vapi @@ -1,10 +1,4 @@ [CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")] namespace Build { - public const string DATADIR; - public const string PKGDATADIR; public const string PLUGS_DIR; - public const string GETTEXT_PACKAGE; - public const string RELEASE_NAME; - public const string VERSION; - public const string VERSION_INFO; } diff --git a/lib/meson.build b/lib/meson.build new file mode 100644 index 00000000..986bb342 --- /dev/null +++ b/lib/meson.build @@ -0,0 +1,53 @@ +config_vapi = meson.get_compiler('vala').find_library('config', dirs: meson.current_source_dir()) + +config_data = configuration_data() +config_data.set_quoted('PLUGS_DIR', plugs_dir) + +config_header = configure_file( + configuration: config_data, + output: 'config.h' +) + +libswitchboard_deps = [ + glib_dep, + gio_dep, + gio_unix_dep, + gmodule_dep, + gee_dep, + gtk_dep, +] + +libswitchboard_lib = shared_library('switchboard-2.0', + 'PlugsManager.vala', + 'Plug.vala', + config_header, + dependencies: [libswitchboard_deps, config_vapi], + vala_header: 'switchboard.h', + soversion: '0', + version: lib_version, + install: true, + install_dir: [true, join_paths(get_option('includedir'), 'switchboard-2.0'), true] +) + +pkg.generate( + filebase: 'switchboard-2.0', + name: 'Switchboard', + description: 'Switchboard Settings API', + version: meson.project_version(), + subdirs: 'switchboard-2.0', + variables: ['plugsdir=${libdir}/switchboard'], + libraries: libswitchboard_lib, + requires: libswitchboard_deps +) + +install_data( + 'switchboard-2.0.deps', + install_dir: join_paths(get_option('datadir'), 'vala', 'vapi') +) + +libswitchboard_dir = include_directories('.') +libswitchboard_dep = declare_dependency( + link_with: libswitchboard_lib, + dependencies: [libswitchboard_deps, config_vapi], + include_directories: libswitchboard_dir +) diff --git a/lib/switchboard.pc.cmake b/lib/switchboard.pc.cmake deleted file mode 100644 index 613e92ef..00000000 --- a/lib/switchboard.pc.cmake +++ /dev/null @@ -1,13 +0,0 @@ -prefix=@PREFIX@ -exec_prefix=${prefix} -libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ -includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ -plugsdir=${libdir}/switchboard - -Name: Switchboard -Description: Switchboard headers -Version: @LIB_VERSION@ -Libs: -l@LIB_NAME@ -Cflags: -I${includedir}/@LIB_NAME@ -Requires: glib-2.0 gio-2.0 gee-0.8 gmodule-2.0 gtk+-3.0 gio-unix-2.0 - diff --git a/meson.build b/meson.build new file mode 100644 index 00000000..a3150056 --- /dev/null +++ b/meson.build @@ -0,0 +1,44 @@ +project( + 'switchboard', + 'c', 'vala', + version: '2.3.1', +) + +lib_version = '2.0' + +add_project_arguments([ + '-DGETTEXT_PACKAGE="switchboard"', + '-DG_LOG_DOMAIN="switchboard"' + ], + language: 'c' +) + +plugs_dir = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name()) + +i18n = import('i18n') +pkg = import('pkgconfig') + +glib_dep = dependency('glib-2.0', version: '>=2.32') +gio_dep = dependency('gio-2.0') +gio_unix_dep = dependency('gio-unix-2.0') +gmodule_dep = dependency('gmodule-2.0') +gtk_dep = dependency('gtk+-3.0', version: '>=3.10') +clutter_gtk_dep = dependency('clutter-gtk-1.0') +gee_dep = dependency('gee-0.8') +granite_dep = dependency('granite') +m_dep = meson.get_compiler('c').find_library('m', required : false) +libunity_dep = [] +if get_option('libunity') + libunity_dep = dependency('unity') + add_project_arguments('--define=HAVE_UNITY', language: 'vala') +endif + +subdir('data') +subdir('lib') +subdir('src') +if get_option('example') + subdir('sample') +endif +subdir('po') + +meson.add_install_script('meson/post_install.py') diff --git a/meson/post_install.py b/meson/post_install.py new file mode 100644 index 00000000..76ed255b --- /dev/null +++ b/meson/post_install.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 + +import os +import subprocess + +schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas') + +if not os.environ.get('DESTDIR'): + print('Compiling gsettings schemas...') + subprocess.call(['glib-compile-schemas', schemadir]) diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 00000000..309a449b --- /dev/null +++ b/meson_options.txt @@ -0,0 +1,2 @@ +option('libunity', type: 'boolean', description: 'Use Unity integration') +option('example', type: 'boolean', value: false, description: 'Build an example that shows how it works') diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt deleted file mode 100644 index 10c1379a..00000000 --- a/po/CMakeLists.txt +++ /dev/null @@ -1,9 +0,0 @@ -include(Translations) -add_translations_directory(${CMAKE_PROJECT_NAME}) -add_translations_catalog(${CMAKE_PROJECT_NAME} - ../src - DESKTOP_FILES - ${CMAKE_SOURCE_DIR}/data/io.elementary.switchboard.desktop.in - APPDATA_FILES - ${CMAKE_SOURCE_DIR}/data/io.elementary.switchboard.appdata.xml.in -) diff --git a/po/LINGUAS b/po/LINGUAS index bc8cbb0f..30d231ba 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -1,2 +1,73 @@ # please keep this list sorted alphabetically # +af +ak +am +ar +az +be +bg +bs +ca +ckb +cs +da +de +el +en_CA +en_GB +eo +es +et +eu +fa +fi +fr +fr_CA +gl +he +hi +hr +hu +hy +id +it +ja +jbo +ka +ko +ku +ky +lb +lt +lv +mn +ms +nb +nl +nn +om +pl +pt +pt_BR +ro +ru +si +sk +sl +sma +sq +sr +sr@latin +sv +ta +th +tl +tr +ug +uk +ur +vi +zh_CN +zh_HK +zh_TW diff --git a/po/POTFILES b/po/POTFILES new file mode 100644 index 00000000..895ccb34 --- /dev/null +++ b/po/POTFILES @@ -0,0 +1,7 @@ +lib/PlugsManager.vala +lib/Plug.vala +src/Switchboard.vala +src/PlugsSearch.vala +src/CategoryView.vala +src/Widgets/CategoryIcon.vala +src/Widgets/CategoryFlowBox.vala diff --git a/po/extra/LINGUAS b/po/extra/LINGUAS new file mode 100644 index 00000000..30d231ba --- /dev/null +++ b/po/extra/LINGUAS @@ -0,0 +1,73 @@ +# please keep this list sorted alphabetically +# +af +ak +am +ar +az +be +bg +bs +ca +ckb +cs +da +de +el +en_CA +en_GB +eo +es +et +eu +fa +fi +fr +fr_CA +gl +he +hi +hr +hu +hy +id +it +ja +jbo +ka +ko +ku +ky +lb +lt +lv +mn +ms +nb +nl +nn +om +pl +pt +pt_BR +ro +ru +si +sk +sl +sma +sq +sr +sr@latin +sv +ta +th +tl +tr +ug +uk +ur +vi +zh_CN +zh_HK +zh_TW diff --git a/po/extra/POTFILES b/po/extra/POTFILES new file mode 100644 index 00000000..6820b352 --- /dev/null +++ b/po/extra/POTFILES @@ -0,0 +1,3 @@ +data/io.elementary.switchboard.desktop.in +data/io.elementary.switchboard.appdata.xml.in + diff --git a/po/extra/af.po b/po/extra/af.po new file mode 100644 index 00000000..c6968c99 --- /dev/null +++ b/po/extra/af.po @@ -0,0 +1,30 @@ +# Afrikaans translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: af\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/ak.po b/po/extra/ak.po new file mode 100644 index 00000000..9e18c893 --- /dev/null +++ b/po/extra/ak.po @@ -0,0 +1,30 @@ +# Akan translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ak\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/am.po b/po/extra/am.po new file mode 100644 index 00000000..f11d999d --- /dev/null +++ b/po/extra/am.po @@ -0,0 +1,30 @@ +# Amharic translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: am\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/ar.po b/po/extra/ar.po new file mode 100644 index 00000000..b7e5f107 --- /dev/null +++ b/po/extra/ar.po @@ -0,0 +1,30 @@ +# Arabic translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ar\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/be.po b/po/extra/be.po new file mode 100644 index 00000000..94eb05e2 --- /dev/null +++ b/po/extra/be.po @@ -0,0 +1,32 @@ +# Belarusian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: be\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/bs.po b/po/extra/bs.po new file mode 100644 index 00000000..e38d462b --- /dev/null +++ b/po/extra/bs.po @@ -0,0 +1,30 @@ +# Bosnian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: bs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/ckb.po b/po/extra/ckb.po new file mode 100644 index 00000000..cfd84d66 --- /dev/null +++ b/po/extra/ckb.po @@ -0,0 +1,30 @@ +# Language ckb translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ckb\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/eo.po b/po/extra/eo.po new file mode 100644 index 00000000..6adbcbee --- /dev/null +++ b/po/extra/eo.po @@ -0,0 +1,31 @@ +# Esperanto translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: eo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/eu.po b/po/extra/eu.po new file mode 100644 index 00000000..5782fc5b --- /dev/null +++ b/po/extra/eu.po @@ -0,0 +1,30 @@ +# Basque translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: eu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/fa.po b/po/extra/fa.po new file mode 100644 index 00000000..9a16727a --- /dev/null +++ b/po/extra/fa.po @@ -0,0 +1,30 @@ +# Persian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: fa\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/fr_CA.po b/po/extra/fr_CA.po new file mode 100644 index 00000000..da0e68ca --- /dev/null +++ b/po/extra/fr_CA.po @@ -0,0 +1,31 @@ +# French translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: fr_CA\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/gl.po b/po/extra/gl.po new file mode 100644 index 00000000..d34c5659 --- /dev/null +++ b/po/extra/gl.po @@ -0,0 +1,30 @@ +# Galician translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/hi.po b/po/extra/hi.po new file mode 100644 index 00000000..005c04a0 --- /dev/null +++ b/po/extra/hi.po @@ -0,0 +1,30 @@ +# Hindi translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: hi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/hu.po b/po/extra/hu.po new file mode 100644 index 00000000..d0d5d6bd --- /dev/null +++ b/po/extra/hu.po @@ -0,0 +1,31 @@ +# Hungarian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: hu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/hy.po b/po/extra/hy.po new file mode 100644 index 00000000..10b65569 --- /dev/null +++ b/po/extra/hy.po @@ -0,0 +1,30 @@ +# Armenian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: hy\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/id.po b/po/extra/id.po new file mode 100644 index 00000000..0ab17fee --- /dev/null +++ b/po/extra/id.po @@ -0,0 +1,30 @@ +# Indonesian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: id\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/jbo.po b/po/extra/jbo.po new file mode 100644 index 00000000..21bab1a5 --- /dev/null +++ b/po/extra/jbo.po @@ -0,0 +1,30 @@ +# Language jbo translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: jbo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/ka.po b/po/extra/ka.po new file mode 100644 index 00000000..d3352122 --- /dev/null +++ b/po/extra/ka.po @@ -0,0 +1,30 @@ +# Georgian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ka\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/ky.po b/po/extra/ky.po new file mode 100644 index 00000000..36c539b7 --- /dev/null +++ b/po/extra/ky.po @@ -0,0 +1,30 @@ +# Kirghiz translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/lb.po b/po/extra/lb.po new file mode 100644 index 00000000..da52e79c --- /dev/null +++ b/po/extra/lb.po @@ -0,0 +1,30 @@ +# Letzeburgesch translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: lb\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/lv.po b/po/extra/lv.po new file mode 100644 index 00000000..b23b04f1 --- /dev/null +++ b/po/extra/lv.po @@ -0,0 +1,32 @@ +# Latvian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/meson.build b/po/extra/meson.build new file mode 100644 index 00000000..e537c4a8 --- /dev/null +++ b/po/extra/meson.build @@ -0,0 +1,5 @@ +i18n.gettext('extra', + args: ['--directory='+meson.source_root()], + preset: 'glib', + install: false +) diff --git a/po/extra/mn.po b/po/extra/mn.po new file mode 100644 index 00000000..0f38f7d0 --- /dev/null +++ b/po/extra/mn.po @@ -0,0 +1,30 @@ +# Mongolian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: mn\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/ms.po b/po/extra/ms.po new file mode 100644 index 00000000..227f7c4a --- /dev/null +++ b/po/extra/ms.po @@ -0,0 +1,30 @@ +# Malay translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ms\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/nn.po b/po/extra/nn.po new file mode 100644 index 00000000..432c7ceb --- /dev/null +++ b/po/extra/nn.po @@ -0,0 +1,31 @@ +# Norwegian Nynorsk translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: nn\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/om.po b/po/extra/om.po new file mode 100644 index 00000000..a90f7881 --- /dev/null +++ b/po/extra/om.po @@ -0,0 +1,30 @@ +# (Afan) Oromo translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: om\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/ro.po b/po/extra/ro.po new file mode 100644 index 00000000..1386a4b7 --- /dev/null +++ b/po/extra/ro.po @@ -0,0 +1,32 @@ +# Romanian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " +"20)) ? 1 : 2;\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/si.po b/po/extra/si.po new file mode 100644 index 00000000..119b521d --- /dev/null +++ b/po/extra/si.po @@ -0,0 +1,30 @@ +# Sinhala translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: si\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/sk.po b/po/extra/sk.po new file mode 100644 index 00000000..55a00c93 --- /dev/null +++ b/po/extra/sk.po @@ -0,0 +1,31 @@ +# Slovak translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: sk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/sma.po b/po/extra/sma.po new file mode 100644 index 00000000..b8a94ab3 --- /dev/null +++ b/po/extra/sma.po @@ -0,0 +1,30 @@ +# Southern Sami translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: sma\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/sq.po b/po/extra/sq.po new file mode 100644 index 00000000..370b5c24 --- /dev/null +++ b/po/extra/sq.po @@ -0,0 +1,30 @@ +# Albanian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: sq\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/sr@latin.po b/po/extra/sr@latin.po new file mode 100644 index 00000000..cc14bbd7 --- /dev/null +++ b/po/extra/sr@latin.po @@ -0,0 +1,32 @@ +# Serbian translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: sr@latin\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/ta.po b/po/extra/ta.po new file mode 100644 index 00000000..9d62b3ea --- /dev/null +++ b/po/extra/ta.po @@ -0,0 +1,30 @@ +# Tamil translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ta\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/th.po b/po/extra/th.po new file mode 100644 index 00000000..48994bbb --- /dev/null +++ b/po/extra/th.po @@ -0,0 +1,30 @@ +# Thai translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: th\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/vi.po b/po/extra/vi.po new file mode 100644 index 00000000..cf494906 --- /dev/null +++ b/po/extra/vi.po @@ -0,0 +1,31 @@ +# Vietnamese translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: vi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/extra/zh_HK.po b/po/extra/zh_HK.po new file mode 100644 index 00000000..a03488c1 --- /dev/null +++ b/po/extra/zh_HK.po @@ -0,0 +1,30 @@ +# Chinese translations for extra package. +# Copyright (C) 2018 THE extra'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: zh_HK\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/io.elementary.switchboard.desktop.in:7 +msgid "preferences-desktop" +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:11 +msgid "" +"A system settings application that focuses on modularity and simplicity." +msgstr "" + +#: data/io.elementary.switchboard.appdata.xml.in:23 +msgid "elementary LLC." +msgstr "" diff --git a/po/jbo.po b/po/jbo.po new file mode 100644 index 00000000..13366a1d --- /dev/null +++ b/po/jbo.po @@ -0,0 +1,67 @@ +# Language jbo translations for switchboard package. +# Copyright (C) 2018 THE switchboard'S COPYRIGHT HOLDER +# This file is distributed under the same license as the switchboard package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: switchboard\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: jbo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/Switchboard.vala:49 +msgid "All Settings" +msgstr "" + +#: src/Switchboard.vala:133 +#, c-format +msgid "Specified link '%s' does not exist, going back to the main panel" +msgstr "" + +#: src/Switchboard.vala:262 +msgid "Search Settings" +msgstr "" + +#: src/Switchboard.vala:269 src/Switchboard.vala:294 src/Switchboard.vala:511 +msgid "System Settings" +msgstr "" + +#: src/Switchboard.vala:415 +msgid "No Settings Found" +msgstr "" + +#: src/Switchboard.vala:415 +msgid "Install some and re-launch Switchboard." +msgstr "" + +#: src/CategoryView.vala:155 +#, c-format +msgid "No Results for “%s”" +msgstr "" + +#: src/CategoryView.vala:155 +msgid "Try changing search terms." +msgstr "" + +#: src/CategoryView.vala:162 +msgid "Personal" +msgstr "" + +#: src/CategoryView.vala:164 +msgid "Hardware" +msgstr "" + +#: src/CategoryView.vala:166 +msgid "Network & Wireless" +msgstr "" + +#: src/CategoryView.vala:168 +msgid "Administration" +msgstr "" diff --git a/po/meson.build b/po/meson.build new file mode 100644 index 00000000..30ec14e2 --- /dev/null +++ b/po/meson.build @@ -0,0 +1,6 @@ +i18n.gettext(meson.project_name(), + args: ['--directory='+meson.source_root()], + preset: 'glib', +) + +subdir('extra') diff --git a/po/sr@latin.po b/po/sr@latin.po new file mode 100644 index 00000000..f94c1422 --- /dev/null +++ b/po/sr@latin.po @@ -0,0 +1,69 @@ +# Serbian translations for switchboard package. +# Copyright (C) 2018 THE switchboard'S COPYRIGHT HOLDER +# This file is distributed under the same license as the switchboard package. +# Automatically generated, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: switchboard\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-26 08:51-0700\n" +"PO-Revision-Date: 2018-07-26 08:51-0700\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: sr@latin\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: src/Switchboard.vala:49 +msgid "All Settings" +msgstr "" + +#: src/Switchboard.vala:133 +#, c-format +msgid "Specified link '%s' does not exist, going back to the main panel" +msgstr "" + +#: src/Switchboard.vala:262 +msgid "Search Settings" +msgstr "" + +#: src/Switchboard.vala:269 src/Switchboard.vala:294 src/Switchboard.vala:511 +msgid "System Settings" +msgstr "" + +#: src/Switchboard.vala:415 +msgid "No Settings Found" +msgstr "" + +#: src/Switchboard.vala:415 +msgid "Install some and re-launch Switchboard." +msgstr "" + +#: src/CategoryView.vala:155 +#, c-format +msgid "No Results for “%s”" +msgstr "" + +#: src/CategoryView.vala:155 +msgid "Try changing search terms." +msgstr "" + +#: src/CategoryView.vala:162 +msgid "Personal" +msgstr "" + +#: src/CategoryView.vala:164 +msgid "Hardware" +msgstr "" + +#: src/CategoryView.vala:166 +msgid "Network & Wireless" +msgstr "" + +#: src/CategoryView.vala:168 +msgid "Administration" +msgstr "" diff --git a/sample/CMakeLists.txt b/sample/CMakeLists.txt deleted file mode 100644 index b7064826..00000000 --- a/sample/CMakeLists.txt +++ /dev/null @@ -1,29 +0,0 @@ -find_package (PkgConfig) - -# Add all your dependencies to the list below -pkg_check_modules (DEPS REQUIRED gthread-2.0 gtk+-3.0 switchboard-2.0) - -add_definitions (${DEPS_CFLAGS}) -link_directories (${DEPS_LIBRARY_DIRS}) -set (SAMPLEPLUG "plug-sample") - -find_package (Vala REQUIRED) -include (ValaVersion) -ensure_vala_version ("0.12.0" MINIMUM) - -include (ValaPrecompile) -# Add all your vala files and requires packages to the List below to include them in the build -vala_precompile (VALA_C ${SAMPLEPLUG} - SamplePlug.vala -PACKAGES - gtk+-3.0 - switchboard-2.0 -OPTIONS - --thread -) - -add_library (${SAMPLEPLUG} MODULE ${VALA_C}) -target_link_libraries(${SAMPLEPLUG} ${DEPS_LIBRARIES}) - -# Installation -install (TARGETS ${SAMPLEPLUG} DESTINATION "${PLUGS_DIR}/${PLUGNAME}") \ No newline at end of file diff --git a/sample/meson.build b/sample/meson.build new file mode 100644 index 00000000..78f68418 --- /dev/null +++ b/sample/meson.build @@ -0,0 +1,6 @@ +shared_module('plug-sample', + 'SamplePlug.vala', + dependencies: libswitchboard_dep, + install: true, + install_dir: join_paths(plugs_dir, 'system') +) diff --git a/schemas/CMakeLists.txt b/schemas/CMakeLists.txt deleted file mode 100644 index 4c023ec5..00000000 --- a/schemas/CMakeLists.txt +++ /dev/null @@ -1,2 +0,0 @@ -include(GSettings) -add_schema("io.elementary.switchboard.gschema.xml") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt deleted file mode 100644 index 2196eda2..00000000 --- a/src/CMakeLists.txt +++ /dev/null @@ -1,25 +0,0 @@ -set(CLIENT_SOURCE - Switchboard.vala - CategoryView.vala - PlugsSearch.vala - Widgets/CategoryFlowBox.vala - Widgets/CategoryIcon.vala -) - -vala_precompile (CLIENT_VALA_C ${CMAKE_PROJECT_NAME} - ${CLIENT_SOURCE} - PACKAGES - ${DEPS_PACKAGES} - OPTIONS - ${GLOBAL_VALAC_OPTIONS} -) - -set (EXEC_NAME ${CMAKE_PROJECT_NAME}) - -add_definitions (${DEPS_CFLAGS}) -link_directories (${DEPS_LIBRARY_DIRS}) -add_executable (${EXEC_NAME} ${CLIENT_VALA_C}) - -target_link_libraries (${EXEC_NAME} ${DEPS_LIBRARIES}) - -install (TARGETS ${EXEC_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 00000000..2124c6a2 --- /dev/null +++ b/src/meson.build @@ -0,0 +1,21 @@ +switchboard_files = files( + 'Switchboard.vala', + 'PlugsSearch.vala', + 'CategoryView.vala', + 'Widgets/CategoryIcon.vala', + 'Widgets/CategoryFlowBox.vala', +) + +switchboard_deps = [ + libswitchboard_dep, + clutter_gtk_dep, + granite_dep, + m_dep, + libunity_dep, +] + +executable(meson.project_name(), + switchboard_files, + dependencies: switchboard_deps, + install: true +)