File: Messages.sh

package info (click to toggle)
kdenlive 25.12.2-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 126,184 kB
  • sloc: cpp: 206,938; xml: 11,894; python: 1,139; ansic: 1,054; javascript: 578; sh: 389; makefile: 15
file content (25 lines) | stat: -rwxr-xr-x 1,202 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# SPDX-FileCopyrightText: None
# SPDX-License-Identifier: CC0-1.0

kdenlive_subdirs="plugins renderer data src src/ui"

# Extract displayed strings from JSON layouts
for file in data/layouts/*.json; do
    if [ -f "$file" ]; then
        name_string=$(jq '.kdenliveInfo[] | .displayName' $file)
        # Use the same syntax as extractrc
        if [ $name_string == "null" ]; then
            echo "Layout without name: $file"
        else
            echo "// i18n: file: $file" >> rc.cpp
            echo "i18n($name_string);" >> rc.cpp
        fi
    fi
done

$EXTRACTRC --strip-cdata --tag=name --tag=description --tag=label --tag=comment --tag=paramlistdisplay data/transitions/*.xml data/transitions/frei0r/*.xml data/effects/*.xml data/effects/frei0r/*.xml data/effects/avfilter/*.xml data/effects/ladspa/*.xml data/effects/sox/*.xml data/generators/*.xml data/kdenliveeffectscategory.rc >> rc.cpp
$EXTRACTRC `find $kdenlive_subdirs -name \*.rc -a ! -name encodingprofiles.rc -a ! -name camcorderfilters.rc -a ! -name externalproxies.rc -o -name \*.ui` >> rc.cpp

$XGETTEXT `find $kdenlive_subdirs -name \*.cpp -o -name \*.h -o -name \*.qml` *.cpp -o $podir/kdenlive.pot
rm -f rc.cpp