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>
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>
Import Shutter source from upstream shutter-project/shutter@cb78390f (part 2)