~ubuntu-branches/ubuntu/natty/menu-xdg/natty

« back to all changes in this revision

Viewing changes to xdg-desktop-entry-spec-apps

  • Committer: Bazaar Package Importer
  • Author(s): Bill Allombert
  • Date: 2010-01-17 12:35:44 UTC
  • Revision ID: james.westby@ubuntu.com-20100117123544-4qn1nifzy4mvvuol
Tags: 0.5
* debian/control, debian/rules:
  - Bumps Standards-Version to 3.8.3.
  - Switch to debhelper v5.
* xdg-desktop-entry-spec-sessions:
  - Allow Name and Comment field to be translated.
  - Do not generate sessions files for packages that provide a file
    in /usr/share/xsessions. Closes: #489256. Thanks Laurent Bonnaud.
* xdg-desktop-entry-spec-apps, xdg-desktop-entry-spec-dirs:
  - Allow Comment field to be translated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
                "Name[" $lang "]=" translate($lang,title())
18
18
                "\n");
19
19
 
 
20
function comment() =
 
21
        "Comment=" $longtitle "\n"
 
22
        forall(sections_translations(),"lang",
 
23
                "Comment[" $lang "]=" translate($lang,$longtitle)
 
24
                "\n");
 
25
 
 
26
 
20
27
function AppEntry($terminal) =
21
28
        "[Desktop Entry]\n"
22
29
        "Type=Application\n"
23
30
        "Encoding=UTF-8\n"
24
31
        name()
25
 
        "GenericName=" $generictitle "\n"
26
 
        "Comment=" ifnempty($longtitle,$longtitle) "\n"
27
 
        "Icon=" icon() "\n"
 
32
        ifnempty($longtitle, comment())
 
33
        ifnempty($generictitle,"GenericName=" $generictitle "\n")
 
34
        ifnempty(icon(),"Icon=" icon() "\n")
28
35
        "Exec=" $command "\n"
29
36
        "Terminal=" $terminal "\n"
30
37
        "Categories=X-Debian" replacewith($basesection,"/ ","--") ";\n";