Skip to content

Fix loading countries in non-pear scenarios.#5

Closed
ralflang wants to merge 1 commit into
horde:FRAMEWORK_6_0from
maintaina-com:pr-nls-load-issue
Closed

Fix loading countries in non-pear scenarios.#5
ralflang wants to merge 1 commit into
horde:FRAMEWORK_6_0from
maintaina-com:pr-nls-load-issue

Conversation

@ralflang
Copy link
Copy Markdown
Member

@ralflang ralflang commented Mar 11, 2021

fix: Try autoloader when loading countries before reverting to file includes.

See https://github.com/maintaina-com/Nls/tree/pr-autoload-issue

This change is backward compatible and should work with the unchanged Nls package no worse than before, with the updated nls package it fixes composer.

See https://github.com/maintaina-com/Nls/tree/pr-autoload-issue

This change is backward compatible and should work with the unchanged Nls package no worse than before, with the updated nls package it fixes composer.
@ralflang
Copy link
Copy Markdown
Member Author

See PR horde/Nls#1

@ralflang
Copy link
Copy Markdown
Member Author

Nls::getCountryISO() called without parameter might also return the bare code => Name hash, so we could leverage that. I haven't originally looked into this as I have the same problem in Horde_Form with multiple other data types.

@ralflang ralflang changed the base branch from master to FRAMEWORK_6_0 June 26, 2025 15:43
@ralflang
Copy link
Copy Markdown
Member Author

Superseded by the framework-wide PSR-4 Nls migration. Country loading now uses the modern \Horde\Nls\Nls API across all consumers:

The underlying problem (country loading failing in non-PEAR/Composer scenarios) is resolved by the PSR-4 package which uses proper autoloading throughout.

@ralflang ralflang closed this May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant