Add i18n for the mate applet.
Michael Webster
3 years ago
0 | 0 |
#!/bin/bash
|
1 | 1 |
|
|
2 |
rm -f xapp.pot
|
|
3 |
touch xapp.pot
|
2 | 4 |
xgettext --language=C --keyword=_ --keyword=N_ --output=xapp.pot libxapp/*.c
|
|
5 |
xgettext --language=Desktop --join-existing --add-comments \
|
|
6 |
-k --keyword=Name --keyword=Description --output=xapp.pot status-applets/*/*.in
|
3 | 7 |
|
18 | 18 |
conf.set('libexec', join_paths(get_option('prefix'), get_option('libexecdir')))
|
19 | 19 |
|
20 | 20 |
service_file = configure_file(
|
21 | |
input : 'org.mate.panel.applet.MateXAppStatusAppletFactory.service.in',
|
|
21 |
input : 'org.mate.panel.applet.MateXAppStatusAppletFactory.service',
|
22 | 22 |
output: 'org.mate.panel.applet.MateXAppStatusAppletFactory.service',
|
23 | 23 |
configuration: conf,
|
24 | 24 |
)
|
|
29 | 29 |
|
30 | 30 |
## Applet definition file
|
31 | 31 |
|
32 | |
def_file = configure_file(
|
33 | |
input : 'org.x.MateXAppStatusApplet.mate-panel-applet.in',
|
|
32 |
i18n.merge_file(
|
|
33 |
input: 'org.x.MateXAppStatusApplet.mate-panel-applet.in',
|
34 | 34 |
output: 'org.x.MateXAppStatusApplet.mate-panel-applet',
|
35 | |
configuration: conf,
|
36 | |
)
|
37 | |
|
38 | |
install_data(def_file,
|
|
35 |
type: 'desktop',
|
|
36 |
po_dir: join_paths(meson.source_root(), 'po'),
|
|
37 |
install: true,
|
39 | 38 |
install_dir: join_paths(get_option('datadir'), 'mate-panel', 'applets')
|
40 | 39 |
)
|
41 | |
|
|
0 |
[D-BUS Service]
|
|
1 |
Name=org.mate.panel.applet.MateXAppStatusAppletFactory
|
|
2 |
Exec=@libexec@/xapps/mate-xapp-status-applet.py
|
status-applets/mate/org.mate.panel.applet.MateXAppStatusAppletFactory.service.in
less
more
0 | |
[D-BUS Service]
|
1 | |
Name=org.mate.panel.applet.MateXAppStatusAppletFactory
|
2 | |
Exec=@libexec@/xapps/mate-xapp-status-applet.py
|