Am Mittwoch 07 Dezember 2011, 07:31:17 schrieb Mick:
> On Tuesday 06 Dec 2011 20:34:17 Alex Baer wrote:
[...]
> > > >
> > > > Hi Carsten,
> > > >
> > > > yes, the .directory files do contain translations, and I'd be *VERY*
> > > > suprised, if the Slackware guys would any *buntu specifics... ;) It's
> > > > a small team, and they usually try to avoid distro specific changes
> > > > or patches.
> > > >
> > > > In Slackware64-13.37 the .directory files are located in
> > > > /usr/share/desktop- directories. Here I find files like
> > > > xfce-multimedia.directory and kde- office.directory. However, I don't
> > > > find anything generic. All files are for either Xfce or KDE.
> > > >
> > > > So my questions for now are:
> > > > 1. Where does e pick application categories?
> > > > 2. Where would I look for generic (non-KDE, non-Xfce) .directory
> > > > files? 3. How would I go about this, in order to make e use the
> > > > translations?
> > > >
> > > > Because, at the moment, I have
> > > > (English) Menu > Applications > Office > LibreOffice (Writer)
> > > > (Germen) Hauptmenü > Anwendungen (correct!) > Office (should be:
> > > > Büro)
> > > >
> > > > > LibreOffice (Textverarbeitung) (correct!)
> > > >
> > > > Sorry for bothering again with this, and thanks for your patience!
> > >
> > > Did you try:
> > > locate .desktop
> > >
> > > or
> > >
> > > find / -name *.desktop
> >
> > Hi Mick,
> >
> > yes, of course, and I found lots of places with .desktop and .directory
> > files. To me it seems, that e uses the .directory files in
> >
> > /usr/share/desktop.directories,
> >
> > which contain translations, such as LibreOffice (Writer) for English and
> > LibreOffice (Textverarbeitung) for German for the entries of each
> > application menu.
>
> On my distro I have:
>
> /usr/share/desktop-directories/
>
> which contains only kde-<application_name>.directory files. I assume each
> distro is different.
Sorry, I should have been more precise here. Under
/usr/share/desktop-directories
I find files, such as kde-office.directory and xfce-office.directory, and these
contain the translations for these desktop environments. If I select "KDE
Menu" option in e, it uses the KDE .directory files.
If you don't have xfce .directory files here, I guess you don't have Xfce
installed, at all, do you?
>
> > But for the categories in the Applications menu, e seems to refer to
> >
> > /etc/xdg/menus/enlightenment.menu,
> >
> > which contains only English text. If I remove this file from here, I have
> > a German applications menu!!!
> >
> > Is my conclusion correct? Or where is e supposed to look for
> > translations?
>
> I leave the devs to talk about this as I do not know, but if you look
> inside
>
> /etc/xdg/menus/enlightenment.menu
>
> you will find references for the directories that e seems to scan to find
> your distro's menu lists; e.g.
>
> <Menu>
>
> <Name>Applications</Name>
> <Directory>Applications.directory</Directory>
>
> <!-- Scan legacy dirs first, as later items take priority -->
> <LegacyDir>/etc/X11/applnk</LegacyDir>
> <LegacyDir>/usr/share/gnome/apps</LegacyDir>
> <KDELegacyDirs/>
>
> <!-- Read standard .directory and .desktop file locations -->
> <DefaultAppDirs/>
> <DefaultDirectoryDirs/>
>
> <!-- Read in overrides and child menus from applications-merged/ -->
> <DefaultMergeDirs/>
I saw this, but this file doesn't include any paths, just category names to be
used in the menu...
[...]
>
> Can't you manually edit the relevant .directory file and add your preferred
> German description for LibreOffice?
Probably yes, but actually I am inclined to think that this should be
considere a bug and fixed upstream, because the file
/etc/xdg/menus/enlightenment.menu
- either needs to include translations
- or not to be used in its current form, at all, if KDE is installed
- or only be used, when enlightenment menu is selected and ignored when KDE
menu is selected by the user.
Generally e shouldn't make assumptions about other installed window managers
and desktop environments, I think. But I wouldn't consider a major bug, as
removing just one file cures the problem by and large. So it's definitely not
something that should get maximum priority, although it should be fixed in a
future version.
Thanks for your support, it helped me to track this down to the level, where I
was able to solve it (for me, at least).
Regards,
Alex
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users