parent
4c6616b405
commit
16893c9bd1
9 changed files with 43 additions and 31 deletions
|
|
@ -17,11 +17,11 @@ shared_module(
|
|||
install_rpath: client_lib_dir,
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
custom_target(
|
||||
plugin_data,
|
||||
input: files(plugin_data + plugin_data_src_suffix),
|
||||
output: plugin_data,
|
||||
type: 'desktop',
|
||||
po_dir: po_dir,
|
||||
command: msgfmt_plugin_cmd,
|
||||
install: true,
|
||||
install_dir: plugin_dest
|
||||
)
|
||||
)
|
||||
|
|
@ -17,11 +17,11 @@ shared_module(
|
|||
install_rpath: client_lib_dir,
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
custom_target(
|
||||
plugin_data,
|
||||
input: files(plugin_data + plugin_data_src_suffix),
|
||||
output: plugin_data,
|
||||
type: 'desktop',
|
||||
po_dir: po_dir,
|
||||
command: msgfmt_plugin_cmd,
|
||||
install: true,
|
||||
install_dir: plugin_dest
|
||||
)
|
||||
)
|
||||
|
|
@ -17,11 +17,11 @@ shared_module(
|
|||
install_rpath: client_lib_dir,
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
input: files(plugin_data + '.desktop.in'),
|
||||
custom_target(
|
||||
plugin_data,
|
||||
input: files(plugin_data + plugin_data_src_suffix),
|
||||
output: plugin_data,
|
||||
type: 'desktop',
|
||||
po_dir: po_dir,
|
||||
command: msgfmt_plugin_cmd,
|
||||
install: true,
|
||||
install_dir: plugin_dest
|
||||
)
|
||||
)
|
||||
|
|
@ -42,11 +42,11 @@ plugin = shared_module(
|
|||
install_rpath: client_lib_dir
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
custom_target(
|
||||
plugin_data,
|
||||
input: files(plugin_data + plugin_data_src_suffix),
|
||||
output: plugin_data,
|
||||
type: 'desktop',
|
||||
po_dir: po_dir,
|
||||
command: msgfmt_plugin_cmd,
|
||||
install: true,
|
||||
install_dir: plugin_dest
|
||||
)
|
||||
|
|
|
|||
|
|
@ -26,6 +26,18 @@ plugin_c_args = geary_c_args
|
|||
plugin_data_src_suffix = '.desktop.in'
|
||||
plugin_data_suffix = '.plugin'
|
||||
|
||||
# LibPeas plugins are not using a valid .desktop keyword
|
||||
# Force msgfmt to translate Description
|
||||
msgfmt_plugin_cmd = [
|
||||
find_program('msgfmt'),
|
||||
'--desktop',
|
||||
'--keyword=Name',
|
||||
'--keyword=Description',
|
||||
'-d', po_dir,
|
||||
'--template=@INPUT@',
|
||||
'--output=@OUTPUT@'
|
||||
]
|
||||
|
||||
subdir('desktop-notifications')
|
||||
subdir('email-templates')
|
||||
subdir('folder-highlight')
|
||||
|
|
|
|||
|
|
@ -36,11 +36,11 @@ if libmessagingmenu_dep.found()
|
|||
install_rpath: client_lib_dir,
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
custom_target(
|
||||
plugin_data,
|
||||
input: files(plugin_data + plugin_data_src_suffix),
|
||||
output: plugin_data,
|
||||
type: 'desktop',
|
||||
po_dir: po_dir,
|
||||
command: msgfmt_plugin_cmd,
|
||||
install: true,
|
||||
install_dir: plugin_dest
|
||||
)
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@ shared_module(
|
|||
install_rpath: client_lib_dir,
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
custom_target(
|
||||
plugin_data,
|
||||
input: files(plugin_data + plugin_data_src_suffix),
|
||||
output: plugin_data,
|
||||
type: 'desktop',
|
||||
po_dir: po_dir,
|
||||
command: msgfmt_plugin_cmd,
|
||||
install: true,
|
||||
install_dir: plugin_dest
|
||||
)
|
||||
)
|
||||
|
|
@ -20,11 +20,11 @@ shared_module(
|
|||
install_rpath: client_lib_dir,
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
custom_target(
|
||||
plugin_data,
|
||||
input: files(plugin_data + plugin_data_src_suffix),
|
||||
output: plugin_data,
|
||||
type: 'desktop',
|
||||
po_dir: po_dir,
|
||||
command: msgfmt_plugin_cmd,
|
||||
install: true,
|
||||
install_dir: plugin_dest
|
||||
)
|
||||
)
|
||||
|
|
@ -17,11 +17,11 @@ shared_module(
|
|||
install_rpath: client_lib_dir,
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
custom_target(
|
||||
plugin_data,
|
||||
input: files(plugin_data + plugin_data_src_suffix),
|
||||
output: plugin_data,
|
||||
type: 'desktop',
|
||||
po_dir: po_dir,
|
||||
command: msgfmt_plugin_cmd,
|
||||
install: true,
|
||||
install_dir: plugin_dest
|
||||
)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue