Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Scott Petrovic
kdenlive
Commits
d2cb7494
Commit
d2cb7494
authored
Nov 28, 2015
by
Vincent Pinon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow to install KF5 translations
parent
7f6eb982
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
17 deletions
+24
-17
CMakeLists.txt
CMakeLists.txt
+2
-1
svnpo.sh
svnpo.sh
+22
-16
No files found.
CMakeLists.txt
View file @
d2cb7494
...
...
@@ -29,6 +29,7 @@ include(GenerateExportHeader)
include
(
KDEInstallDirs
)
include
(
KDECMakeSettings
)
include
(
KDECompilerSettings
)
include
(
ECMOptionalAddSubdirectory
)
add_definitions
(
-DQT_NO_URL_CAST_FROM_STRING
)
add_definitions
(
-DTRANSLATION_DOMAIN=\"kdenlive\"
)
...
...
@@ -90,7 +91,7 @@ set(MLT_PREFIX ${MLT_ROOT_DIR})
add_subdirectory
(
data
)
add_subdirectory
(
doc
)
#add_subdirectory(plugins)
#
ecm_optional_add_subdirectory(po)
ecm_optional_add_subdirectory
(
po
)
add_subdirectory
(
renderer
)
add_subdirectory
(
src
)
add_subdirectory
(
thumbnailer
)
...
...
svnpo.sh
View file @
d2cb7494
#!/bin/bash
getlocale
()
{
local
locale
=
$1
wget
-O
$locale
.po
"http://websvn.kde.org/*checkout*/trunk/l10n-kf5/
$locale
/messages/kdemultimedia/kdenlive.po"
if
[
$?
-eq
0
]
;
then
mkdir
$locale
mv
$locale
.po
$locale
/kdenlive.po
echo
"GETTEXT_PROCESS_PO_FILES(
$locale
ALL INSTALL_DESTINATION
\$
{LOCALE_INSTALL_DIR} kdenlive.po)"
>>
$locale
/CMakeLists.txt
echo
"ADD_SUBDIRECTORY(
$locale
)"
>>
CMakeLists.txt
else
rm
$locale
.po
fi
}
[
-d
po
]
||
mkdir
po
[
-d
po
]
||
mkdir
po
||
exit
cd
po
echo
'FIND_PACKAGE(Gettext)
FIND_PROGRAM(GETTEXT_MSGFMT_EXECUTABLE msgfmt)
IF(GETTEXT_MSGFMT_EXECUTABLE)
FILE(GLOB PO_FILES *.po)
SET(GMO_FILES)
FOREACH(_po ${PO_FILES})
GET_FILENAME_COMPONENT(_lang ${_po} NAME_WE)
SET(_gmo ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo)
ADD_CUSTOM_COMMAND(OUTPUT ${_gmo}
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} --check -o ${_gmo} ${_po}
DEPENDS ${_po})
INSTALL(FILES ${_gmo}
DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/
RENAME kdenlive.mo)
LIST(APPEND GMO_FILES ${_gmo})
#GETTEXT_PROCESS_PO_FILES(${_lang} ALL INSTALL_DESTINATION \${LOCALEDIR} PO_FILES {_lang}.po)
ENDFOREACH(_po ${PO_FILES})
ADD_CUSTOM_TARGET(translations ALL DEPENDS ${GMO_FILES})
ENDIF(GETTEXT_MSGFMT_EXECUTABLE)'
>
CMakeLists.txt
locales
=
$(
wget
-O
- http://websvn.kde.org/
*
checkout
*
/trunk/l10n-kde4/subdirs |
grep
-v
x-test
)
echo
"find_package(Gettext REQUIRED)"
>
CMakeLists.txt
for
l
in
$locales
;
do
getlocale
$l
&
for
locale
in
$locales
;
do
wget
-O
$locale
.po
"http://websvn.kde.org/*checkout*/trunk/l10n-kf5/
$locale
/messages/kdemultimedia/kdenlive.po"
||
rm
$locale
.po
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment