<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I have some issue with this.<br>The .desktop default installation is in /usr/share/xfce4/panel-plugins,
<br>and installing it in /usr/share/applications doesn't work, the plugin<br>doesn't appear in the 'add new item' menu.<br><br>Will the X-Ubuntu-Gettext-Domain entry work if the .desktop file is not<br>in the expected location? I'm not sure of this.
<br><br>What can we do?<br></blockquote></div><br>We won't install the plugins in /usr/share/applications, sorry if I wasn't clear enough.<br>My understanding is that every .desktop file - whether is an application desktop,
<br>xfce4-terminal helper, or panel-plugin is to be added this entry. And when it is read<br>by the menu code, terminal and the panel respectively, it is the responsability of the<br>app to interpret it, read the gettext domain and display the strings inside the .desktop file
<br>according to the locale.<br>Here's the spec ubuntu implemented<br><br><a href="https://wiki.ubuntu.com/LangpacksDesktopfiles">https://wiki.ubuntu.com/LangpacksDesktopfiles</a><br><br>the preferred way is not a patch to the sources obviously, either debian/patches or 
<br>a search and replace from the rules file after the desktop files are built from <a href="http://desktop.in">desktop.in</a><br>or whatever the package uses.<br><br>Here's the code from CDBS <a href="http://gnome.mk">gnome.mk
</a> to do this generically for any package that uses the gnome class<br><br># add translation domain to installed desktop/directory files<br>$(patsubst %,binary-predeb/%,$(DEB_PACKAGES)) :: binary-predeb/%:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;
<a href="http://gnome.mk">gnome.mk</a>: add translation domain to $(cdbs_curpkg)&quot;; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ -e $(DEB_BUILDDIR)/po/Makefile ]; then \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DOMAIN=$$(grep --max-count 1 '^GETTEXT_PACKAGE[[:space:]]*=' $(DEB_BUILDDIR)/po/Makefile | sed 's/^.*=[[:space:]]*\([^[:space:]]\)/\1/'); \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ &quot;$$DOMAIN&quot; ]; then \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for d in $$(find debian/$(cdbs_curpkg) -type f \( -name &quot;*.desktop&quot; -o -name &quot;*.directory&quot; \) ); do \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;
<a href="http://gnome.mk">gnome.mk</a>: Adding translation domain $$DOMAIN to $$d...&quot;; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;X-Ubuntu-Gettext-Domain=$$DOMAIN&quot; &gt;&gt; $$d; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for d in $$(find debian/$(cdbs_curpkg) -type f -name &quot;*.server&quot; ); do \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;<a href="http://gnome.mk">gnome.mk</a>: Adding translation domain $$DOMAIN to $$d...&quot;; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sed -i &quot;s/&lt;oaf_server\&gt;/&lt;oaf_server ubuntu-gettext-domain=\&quot;$$DOMAIN\&quot;/&quot; $$d; \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br><br>It treats .server files too which are bonobo related so we do not need them. And we do not need all this code<br>either since we do not have xfce cdbs class where we write once and all packages are affected.
<br><br>Anyway as long as the xfce4-panel does not look at these it is not too important, so it's fine uploading without this<br>now and we'll add the lines later.<br><br>Jani<br><br>