forked from agateau/colorpick
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved translations on qtilities-i18n GitHub organization
- Loading branch information
Showing
10 changed files
with
46 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
build*/ | ||
resources/translations/ | ||
*.pyc | ||
ui_*.py | ||
CMakeLists.txt.user | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,21 +2,22 @@ | |
|
||
# Essential, non translatable application information (except DESCRIPTION). | ||
# Translatable strings are passed via code. | ||
string(TOLOWER ${PROJECT_NAME} PROJECT_ID) | ||
list(APPEND PROJECT_CATEGORIES "Qt;KDE;Graphics;Utility") # Freedesktop menu categories | ||
list(APPEND PROJECT_KEYWORDS "colorpicker;color-picker;contrast-ratio") | ||
set(PROJECT_AUTHOR_NAME "Aurélien Gâteau, Andrea Zanellato") | ||
set(PROJECT_AUTHOR_EMAIL "[email protected]") # Used also for organization email | ||
set(PROJECT_COPYRIGHT_YEAR "2023") # TODO: from git | ||
set(PROJECT_DESCRIPTION "A color picker with a builtin loop and a contrast checker.") | ||
set(PROJECT_ORGANIZATION_NAME "qtilities") # Might be equal to PROJECT_AUTHOR_NAME | ||
set(PROJECT_ORGANIZATION_URL "${PROJECT_ORGANIZATION_NAME}.github.io") | ||
set(PROJECT_HOMEPAGE_URL "https://${PROJECT_ORGANIZATION_URL}/${PROJECT_ID}") | ||
set(PROJECT_REPOSITORY_URL "https://github.com/${PROJECT_ORGANIZATION_NAME}/${PROJECT_ID}") | ||
set(PROJECT_REPOSITORY_BRANCH "master") | ||
set(PROJECT_SPDX_ID "BSD-3-Clause-Clear") | ||
set(PROJECT_TRANSLATIONS_DIR "resources/translations") | ||
set(PROJECT_ICON_FORMAT "svg") | ||
string(TOLOWER ${PROJECT_NAME} PROJECT_ID) | ||
list(APPEND PROJECT_CATEGORIES "Qt;KDE;Graphics;Utility") # Freedesktop menu categories | ||
list(APPEND PROJECT_KEYWORDS "colorpicker;color-picker;contrast-ratio") | ||
set(PROJECT_AUTHOR_NAME "Aurélien Gâteau, Andrea Zanellato") | ||
set(PROJECT_AUTHOR_EMAIL "[email protected]") # Used also for organization email | ||
set(PROJECT_COPYRIGHT_YEAR "2023") # TODO: from git | ||
set(PROJECT_DESCRIPTION "A color picker with a builtin loop and a contrast checker.") | ||
set(PROJECT_ORGANIZATION_NAME "qtilities") # Might be equal to PROJECT_AUTHOR_NAME | ||
set(PROJECT_ORGANIZATION_URL "${PROJECT_ORGANIZATION_NAME}.github.io") | ||
set(PROJECT_HOMEPAGE_URL "https://${PROJECT_ORGANIZATION_URL}/${PROJECT_ID}") | ||
set(PROJECT_REPOSITORY_URL "https://github.com/${PROJECT_ORGANIZATION_NAME}/${PROJECT_ID}") | ||
set(PROJECT_REPOSITORY_I18N_URL "https://github.com/${PROJECT_ORGANIZATION_NAME}-i18n/${PROJECT_ID}") | ||
set(PROJECT_REPOSITORY_BRANCH "master") | ||
set(PROJECT_SPDX_ID "BSD-3-Clause-Clear") | ||
set(PROJECT_TRANSLATIONS_DIR "resources/translations") | ||
set(PROJECT_ICON_FORMAT "svg") | ||
|
||
# Appstream | ||
if(PROJECT_USE_APPSTREAM) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
find_package(Git REQUIRED) | ||
function(git_download_translations repo destdir) | ||
if(NOT EXISTS "${destdir}/translations") | ||
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/i18n") | ||
execute_process(COMMAND ${GIT_EXECUTABLE} clone ${repo} | ||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/i18n" | ||
COMMAND_ERROR_IS_FATAL ANY | ||
) | ||
file(COPY "${CMAKE_CURRENT_BINARY_DIR}/i18n/${PROJECT_ID}/translations" DESTINATION ${destdir}) | ||
file(REMOVE_RECURSE "${CMAKE_CURRENT_BINARY_DIR}/i18n") | ||
endif() | ||
endfunction() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.