mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-05-18 14:16:16 +00:00
Compare commits
2 Commits
84e5b7d64e
...
ba60be932a
| Author | SHA1 | Date | |
|---|---|---|---|
| ba60be932a | |||
| f121db3b75 |
@@ -2,9 +2,11 @@ name: build & tests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ development, master ]
|
branches:
|
||||||
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ development, master ]
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
|
|||||||
+2
-2
@@ -81,8 +81,8 @@ Development
|
|||||||
* Try to minimize message in Release build with logging disabled. It is highly recommended to fix KDE/Qt specific warning if possible
|
* Try to minimize message in Release build with logging disabled. It is highly recommended to fix KDE/Qt specific warning if possible
|
||||||
* Do not use dependency to KDE libraries if there are no any strictly necessary. Exceptions are KNotification and KI18n libraries.
|
* Do not use dependency to KDE libraries if there are no any strictly necessary. Exceptions are KNotification and KI18n libraries.
|
||||||
* It is highly recommended to use submodules for third party libraries if possible.
|
* It is highly recommended to use submodules for third party libraries if possible.
|
||||||
* The main branch is **development**. Changes in this branch may be merged to the master one only if it is a 'stable' build.
|
* The main branch is **master**.
|
||||||
* For experimental features development new branch `feature-foo` creation is allowed and recommended.
|
* For experimental features development new branch `feature/foo` creation is allowed and recommended.
|
||||||
* Experimental features should be added inside `BUILD_FUTURE` definition:
|
* Experimental features should be added inside `BUILD_FUTURE` definition:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
+343
-4
File diff suppressed because it is too large
Load Diff
+341
-1
File diff suppressed because it is too large
Load Diff
@@ -1,31 +1,53 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
# properties
|
# properties
|
||||||
PROJECT="awesome-widgets"
|
PROJECT="awesome-widgets"
|
||||||
BUGADDR="https://github.com/arcan1s/awesome-widgets/issues"
|
BUGADDR="https://github.com/arcan1s/awesome-widgets/issues"
|
||||||
|
|
||||||
# root of translatable sources
|
# root of translatable sources
|
||||||
SCRIPTDIR="$(dirname -- $(readlink -f -- $0))"
|
SCRIPTDIR="$(dirname -- $(readlink -f -- $0))"
|
||||||
BASEDIR="${SCRIPTDIR}/../"
|
BASEDIR="$SCRIPTDIR/../"
|
||||||
WORKDIR="$(pwd)"
|
WORKDIR="$(pwd)"
|
||||||
|
|
||||||
# translations tags
|
find "$BASEDIR" \
|
||||||
# dunno what does this magic do actually
|
|
||||||
TAGS="-ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 -kI18N_NOOP:1 \
|
|
||||||
-kI18N_NOOP2:1c,2 -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3"
|
|
||||||
|
|
||||||
find "${BASEDIR}" \
|
|
||||||
-name '*.cpp' -o -name '*.h' -o -name '*.qml' -o -name '*.ui' -o -name '*.rc' | \
|
-name '*.cpp' -o -name '*.h' -o -name '*.qml' -o -name '*.ui' -o -name '*.rc' | \
|
||||||
sort > "${WORKDIR}/infiles.list"
|
sort > "$WORKDIR/infiles.list"
|
||||||
|
|
||||||
xgettext -C --no-location --msgid-bugs-address="${BUGADDR}" ${TAGS} \
|
xgettext \
|
||||||
--files-from="${WORKDIR}/infiles.list" -D "${BASEDIR}" -D "${WORKDIR}" \
|
--from-code=UTF-8 --width=200 --add-location=file \
|
||||||
-o "${PROJECT}.pot" || exit 1
|
--files-from="$WORKDIR/infiles.list" \
|
||||||
|
-C -kde \
|
||||||
|
-ci18n \
|
||||||
|
-ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 \
|
||||||
|
-kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 \
|
||||||
|
-kxi18n:1 -kxi18nc:1c,2 -kxi18np:1,2 -kxi18ncp:1c,2,3 \
|
||||||
|
-kkxi18n:1 -kkxi18nc:1c,2 -kkxi18np:1,2 -kkxi18ncp:1c,2,3 \
|
||||||
|
-kI18N_NOOP:1 -kI18NC_NOOP:1c,2 \
|
||||||
|
-kI18N_NOOP2:1c,2 -kI18N_NOOP2_NOSTRIP:1c,2 \
|
||||||
|
-ktr2i18n:1 -ktr2xi18n:1 \
|
||||||
|
-kN_:1 \
|
||||||
|
-kaliasLocale \
|
||||||
|
--package-name="$PROJECT" \
|
||||||
|
--msgid-bugs-address="$BUGADDR" \
|
||||||
|
-D "$BASEDIR" \
|
||||||
|
-D "$WORKDIR" \
|
||||||
|
-o "$PROJECT.pot.new"
|
||||||
|
|
||||||
TRANSLATIONS=$(find "${BASEDIR}" -name '*.po')
|
mv "${PROJECT}.pot"{.new,}
|
||||||
for TR in ${TRANSLATIONS}; do
|
|
||||||
msgmerge -U -q --backup=off "${TR}" "${WORKDIR}/${PROJECT}.pot"
|
for TR in $(find "$BASEDIR" -name '*.po'); do
|
||||||
msgattrib --no-obsolete -o "${TR}" "${TR}"
|
msgmerge \
|
||||||
|
--update \
|
||||||
|
--quiet \
|
||||||
|
--backup=off \
|
||||||
|
"$TR" \
|
||||||
|
"$WORKDIR/$PROJECT.pot"
|
||||||
|
msgattrib \
|
||||||
|
--no-obsolete \
|
||||||
|
--output-file "$TR" \
|
||||||
|
"$TR"
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -f "${WORKDIR}/infiles.list"
|
rm -f "$WORKDIR/infiles.list"
|
||||||
|
|||||||
+341
-1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+341
-1
File diff suppressed because it is too large
Load Diff
+341
-1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+341
-1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+343
-4
File diff suppressed because it is too large
Load Diff
+341
-1
File diff suppressed because it is too large
Load Diff
+341
-1
File diff suppressed because it is too large
Load Diff
+341
-1
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user