Add .desktop translations in .po files

This commit is contained in:
Romain Failliot 2020-12-08 14:07:26 -05:00
parent 524b5c4fc0
commit 4cd8943e10
7 changed files with 35 additions and 44 deletions

10
data/diffuse.desktop.in Normal file
View File

@ -0,0 +1,10 @@
[Desktop Entry]
Name=Diffuse Merge Tool
Comment=Graphical tool for merging and comparing text files
Exec=diffuse -s %F
Icon=diffuse
Terminal=false
Type=Application
MimeType=text/plain;text/x-csrc;text/x-chdr;
Categories=Development;GTK;
StartupNotify=true

10
data/meson.build Normal file
View File

@ -0,0 +1,10 @@
desktop_file = 'diffuse.desktop'
i18n.merge_file(
desktop_file,
input: desktop_file + '.in',
output: desktop_file,
po_dir: '../po',
install: true,
install_dir: join_paths(datadir, 'applications'),
type: 'desktop'
)

View File

@ -23,6 +23,7 @@ pkgdatadir = join_paths(datadir, meson.project_name())
podir = join_paths(meson.source_root(), 'po')
subdir('po')
subdir('data')
subdir('src')
meson.add_install_script('build-scripts/meson-postinstall.py')

View File

@ -1,2 +1,5 @@
# List of source files which contain translatable strings.
# Copyright (C) 2020 Romain Failliot <romain.failliot@foolstep.com>
data/diffuse.desktop.in
src/usr/bin/diffuse.py.in

View File

@ -26,12 +26,15 @@ configure_file(
metainfo_file = join_paths(meson.source_root(), 'src/usr/share/metainfo/io.github.mightycreak.Diffuse.metainfo.xml')
ascli_exe = find_program('appstreamcli', required: false)
if ascli_exe.found()
test('validate metainfo file',
ascli_exe,
args: ['validate',
'--no-net',
'--pedantic',
metainfo_file]
test(
'validate metainfo file',
ascli_exe,
args: [
'validate',
'--no-net',
'--pedantic',
metainfo_file
]
)
endif

View File

@ -1,36 +0,0 @@
[Desktop Entry]
Name=Diffuse Merge Tool
Name[cs]=Diffuse
Name[de]=Diffuse Mischwerkzeug
Name[es]=Diffuse utillaje de textos
Name[it]=Diffuse - strumento di unione
Name[ja]=Diffuse
Name[ko]=Diffuse
Name[pl]=Diffuse Narzędzie Scalania
Name[pt]=Diffuse Ferramenta de união
Name[ru]=Diffuse Инструмент Слияния
Name[sv]=Diffuse sammanfogningsverktyg
Name[th]=Diffuse -
Name[zh_CN]=Diffuse
Name[zh_TW]=Diffuse
Comment=Graphical tool for merging and comparing text files
Comment[cs]=Grafický nástroj pro slučování a porovnávání textových souborů
Comment[de]=Werkzeug zum Mischen und Vergleichen von Textdateien
Comment[es]=Un utillaje para juntar y comparar archivos de texto
Comment[it]=Strumento grafico per l'unione e il confronto di file
Comment[ja]=
Comment[ko]=
Comment[pl]=Graficzne narzędzie do łączenia i porównywania plików tekstowych
Comment[pt]=Ferramenta gráfica para unir e comparar ficheiros de texto
Comment[ru]=Графический инструмент для слияния и сравнения текстовых файлов
Comment[sv]=Grafiskt verktyg för jämförelse och sammanfogning av textfiler
Comment[th]=
Comment[zh_CN]=
Comment[zh_TW]=
Exec=diffuse -s %F
Icon=diffuse
Terminal=false
Type=Application
MimeType=text/plain;text/x-csrc;text/x-chdr;
Categories=Development;GTK;
StartupNotify=true

View File

@ -2,8 +2,8 @@
<component type="desktop-application">
<id>io.github.mightycreak.Diffuse</id>
<name>Diffuse</name>
<summary>Graphical merge tool</summary>
<name>Diffuse Merge Tool</name>
<summary>Graphical tool for merging and comparing text files</summary>
<description>
<p>
Diffuse is a graphical tool for comparing and merging text files. It can retrieve files for comparison from Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion, and SVK repositories.