Apply patch from LP: #316755 to generate the .desktop file from the translated strings

This commit is contained in:
Chris Jones 2009-01-26 00:28:25 +00:00
parent 9f17fc0790
commit 857e9eaea0
4 changed files with 30 additions and 16 deletions

View File

@ -1,16 +0,0 @@
[Desktop Entry]
Name=Terminator
Comment=Multiple terminals in one window
Comment[be]=Meerdere terminals in een venster
Comment[be@latin]=Meerdere terminals in een venster
Comment[en_CA]=Multiple terminals in one window
Comment[en_GB]=Multiple terminals in one window
Comment[es]=Multiples terminales en una ventana
Comment[fr]=Plusieurs terminaux dans une fenêtre
TryExec=terminator
Exec=terminator
Icon=terminator
Type=Application
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
X-Ubuntu-Gettext-Domain=terminator

View File

@ -0,0 +1,10 @@
[Desktop Entry]
_Name=Terminator
_Comment=Multiple terminals in one window
TryExec=terminator
Exec=terminator
Icon=terminator
Type=Application
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
X-Ubuntu-Gettext-Domain=terminator

13
po/POTFILES.in Normal file
View File

@ -0,0 +1,13 @@
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
#
[encoding: UTF-8]
build/lib/terminatorlib/config.py
build/lib/terminatorlib/encoding.py
build/lib/terminatorlib/terminator.py
build/lib/terminatorlib/terminatorterm.py
data/terminator.desktop.in
terminatorlib/config.py
terminatorlib/encoding.py
terminatorlib/terminator.py
terminatorlib/terminatorterm.py

View File

@ -56,6 +56,13 @@ class BuildData(build):
error("Error: %s" % str(e))
sys.exit(1)
TOP_BUILDDIR='.'
INTLTOOL_MERGE='intltool-merge'
desktop_in='data/terminator.desktop.in'
desktop_data='data/terminator.desktop'
os.system ("C_ALL=C " + INTLTOOL_MERGE + " -d -u -c " + TOP_BUILDDIR +
"/po/.intltool-merge-cache " + TOP_BUILDDIR + "/po " +
desktop_in + " " + desktop_data)
class Uninstall(Command):
description = "Attempt an uninstall from an install --record file"