locale specific for .desktop
fcrozat at mandriva.com
Mon Oct 22 07:31:12 PDT 2007
Le lundi 22 octobre 2007 à 23:10 +0900, Takao Fujiwara a écrit :
> Patryk Zawadzki さんは書きました:
> > 2007/10/22, Takao Fujiwara <Takao.Fujiwara at sun.com>:
> >> Patryk Zawadzki さんは書きました:
> >>> Why not fix the application in the first place? You don't have to
> >>> translate it, just make it work properly.
> >> The application supports one locale. If we support some locales, we need to buy the locale data, then this couldn't be resolved in the software level.
> >> If we(Sun) say to support a locale, we need to provide the translation.
> > No, you just call it "Chinese Dictionary" in the desktop file or "Map
> > of Japan" or whatever name clearly states the language or locale
> > involved. No software should ever change the content available to the
> > user based on the current system locale.
> Unfortunatelly it's not expected the application is shown on other locales.
> The application needs to be shown on a locale only in the menu and I'm finding the resolution.
Just plug in your startup scripts a modification to XDG_DATA_DIRS and
move the offending .desktop into a directory which will be used only
when using specific locale. Or you can add a .menu file which will
hide .desktop and make sure this file is merged only when locale is set
(by modifying XDG_CONFIG_DIRS at login time).
Frederic Crozat <fcrozat at mandriva.com>
More information about the xdg