Replaces threading a Locale::gettext object ($d) through every sub:
modules import __()/__n() and call them directly. Used by 47 subs in
bin/shutter today; they can move over one at a time.
- One gettext domain per process. Shutter::App::Common's gettext_object
(the legacy $d) now delegates to Shutter::I18N::init, so old and new
code always share the same object, domain and locale dir.
- First module on the new baseline: use v5.36 (strict, warnings,
signatures).
- t/Shutter/I18N.t (Test2::V0): untranslated fallback, plural forms,
shared object, and a real lookup from a catalog compiled with msgfmt
(LANGUAGE=de under en_US.UTF-8).
- t/syntax.t: teach Test::Strict that use v5.36+ enables warnings.
Checked against the real share/po catalogs: $d->get and __() both
return 'Einstellungen' for 'Preferences' with LANGUAGE=de.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop vendored X11::Protocol::Ext::XFIXES, depend on the packaged one
lib/X11/Protocol/Ext/XFIXES.pm was a reformatted copy of version 29.
Because lib/ is first on @INC it shadowed the system copy; Debian ships
version 31 in libx11-protocol-other-perl. Declare X11::Protocol (which
was missing from cpanfile too) and X11::Protocol::Ext::XFIXES instead.
Checked the XFIXES path (cursor capture, shutter -f -c) under
t/bin/with-x11: init_extension('XFIXES') succeeds with the system v31
and the capture is written.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move modules from share/shutter/resources/modules to lib/
Standard Perl layout, and bin/shutter now adds the module path at
compile time (BEGIN + use lib) instead of at runtime, so modules can
be loaded with plain `use` and perl -c can see them.
- bin/shutter finds lib/ (source checkout) or share/shutter/lib
(installed) and exports SHUTTER_LIB for plugins, which run as
separate processes.
- Bundled plugins prefer SHUTTER_LIB and fall back to the old path.
- Compat for third-party plugins that hard-code
$SHUTTER_ROOT/share/shutter/resources/modules: that path is now a
symlink to lib/ in the source tree and to ../lib when installed.
- Drop redundant runtime `import lib` in Screenshot::{Error,Main,Web};
the path is already on @INC.
- make lint: only files *added* since the fork point. Legacy modules
now show up as renames and stay out of the ratchet.
Pure renames for all module files (git log --follow works).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>