mirror of https://github.com/GNOME/gimp.git
![]() I hesitated a lot whether we should just drop the whole localization of plug-ins' label and description (blurb) within the core. Actually the commit messages I wrote a few days ago were moving towards this logic. It really looks to me like plug-in localization can happen fully within plug-in themselves. As far as I can see, the only advantage which the current logic has theoretically is that if we needed, we have access to both the original strings and their translations (e.g. it could be useful for text search). Nevertheless I am not sure if we will ever make use of this, and this is limited cases as all filters turned GEGL ops don't have such ability anyway. Nevertheless since previous contributors clearly put quite a lot of work on this code of localizing the plug-in's label and description within the main binary, I want to give myself a little more time to think and study the whole thing because doing anything rash. In the meantime, what changes is that by default now, a plug-in without a local gettext catalog is simply not localized. In particular, the core process doesn't try to localize it using the default catalog, a.k.a. GETTEXT_PACKAGE"-std-plug-ins" ("gimp30-std-plug-ins"). It just doesn't make sense and the worst which could happen would be to get unexpected and wrong translations. Now by default, plug-ins will try to find a catalog in their main folder, named as this folder. If it fails to find it, a message is printed to stderr and localization is disabled (rather than falling back to a default catalog). It is up to plug-in developers to either install a catalog, or implement set_i18n() to give the right catalog, folder, or disable localization with gettext, as handled by libgimp. |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile.am | ||
dockable-menu.c | ||
dockable-menu.h | ||
file-menu.c | ||
file-menu.h | ||
filters-menu.c | ||
filters-menu.h | ||
image-menu.c | ||
image-menu.h | ||
menus-types.h | ||
menus.c | ||
menus.h | ||
meson.build | ||
plug-in-menus.c | ||
plug-in-menus.h | ||
tool-options-menu.c | ||
tool-options-menu.h | ||
window-menu.c | ||
window-menu.h | ||
windows-menu.c | ||
windows-menu.h |