Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Most payment statuses require static metadata and will extend the default base class. Instead of using annotated plugins, we should use YAML files for status declarations and use derivatives for more complex solutions.
Comment | File | Size | Author |
---|---|---|---|
#12 | payment_2085203_12.patch | 19.1 KB | Xano |
#12 | interdiff.txt | 608 bytes | Xano |
Comments
Comment #1
XanoThis can't be done, until core can extract translatable strings from contrib modules' yml files.
Comment #2
XanoComment #3
XanoComment #4
Xano#2322839: Unify YAML translation extraction, and allow extension by contrib. has now been fixed.
Comment #5
XanoNeeds a manual test to check if POTX can extract the strings.
Comment #7
XanoStill needs manual testing. Apparently
potx-cli.php
was removed from POTX.Comment #8
XanoI manually confirmed that POTX can extract the strings. This patch makes sure the translatables in the plugin definition are wrapped in
TranslationWrapper
objects so they are portable across languages.Comment #12
XanoComment #13
Xano