mirror of https://github.com/odrling/Aegisub
Integrate desktop file translation into meson
meson’s i18n module get’s confused by .template and fails to extract translatable strings, thus rename to in.in. Note: while this slightly improves the situation, meson’s aegisub-pot target is still missing many strings. make_pot.sh should be used.
This commit is contained in:
parent
429455263f
commit
66efa84eed
|
@ -18,8 +18,8 @@ elif host_machine.system() == 'darwin'
|
||||||
else
|
else
|
||||||
conf_pkg.set('AEGISUB_COMMAND', 'aegisub')
|
conf_pkg.set('AEGISUB_COMMAND', 'aegisub')
|
||||||
|
|
||||||
desktop_template = configure_file(input: 'desktop/aegisub.desktop.template.in',
|
desktop_template = configure_file(input: 'desktop/aegisub.desktop.in.in',
|
||||||
output: 'aegisub.desktop.template',
|
output: 'aegisub.desktop.in',
|
||||||
configuration: conf_pkg)
|
configuration: conf_pkg)
|
||||||
|
|
||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
packages/desktop/aegisub.desktop.in.in
|
||||||
|
|
||||||
src/ass_style.cpp
|
src/ass_style.cpp
|
||||||
src/audio_box.cpp
|
src/audio_box.cpp
|
||||||
src/audio_karaoke.cpp
|
src/audio_karaoke.cpp
|
||||||
|
|
|
@ -41,7 +41,7 @@ find ../automation -name *.lua \
|
||||||
|
|
||||||
for i in 'Name' 'GenericName' 'Comment' 'Keywords'
|
for i in 'Name' 'GenericName' 'Comment' 'Keywords'
|
||||||
do
|
do
|
||||||
grep ^$i -n ../packages/desktop/aegisub.desktop.template.in \
|
grep ^$i -n ../packages/desktop/aegisub.desktop.in.in \
|
||||||
| sed 's/\([0-9]\+\):[^=]\+=\(.*\)$/aegisub.desktop|\1|"\2"/' \
|
| sed 's/\([0-9]\+\):[^=]\+=\(.*\)$/aegisub.desktop|\1|"\2"/' \
|
||||||
| maybe_append
|
| maybe_append
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue