From 979d2c850249fcc24d45a1ba03b7b50501676f43 Mon Sep 17 00:00:00 2001 From: Mauro Mura Date: Fri, 5 Dec 2025 13:42:41 +0100 Subject: [PATCH 1/2] Change getL10nFilesForApp to public visibility --- lib/private/L10N/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php index a4ecadaf253f6..0efbeed13a8c9 100644 --- a/lib/private/L10N/Factory.php +++ b/lib/private/L10N/Factory.php @@ -555,7 +555,7 @@ private function isSubDirectory($sub, $parent) { * * @return string[] */ - private function getL10nFilesForApp(string $app, string $lang): array { + public function getL10nFilesForApp(string $app, string $lang): array { $languageFiles = []; $i18nDir = $this->findL10nDir($app); From 346012f459fbd6b8a20468fca56f430e607c40bc Mon Sep 17 00:00:00 2001 From: Mauro Mura Date: Thu, 11 Dec 2025 08:24:59 +0100 Subject: [PATCH 2/2] Document public method usage in getL10nFilesForApp Added a note explaining the public visibility of the method. --- lib/private/L10N/Factory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php index 0efbeed13a8c9..9e9076146d3ba 100644 --- a/lib/private/L10N/Factory.php +++ b/lib/private/L10N/Factory.php @@ -552,6 +552,7 @@ private function isSubDirectory($sub, $parent) { /** * Get a list of language files that should be loaded + * Note: This method is public because it is used by the nmctheme app. * * @return string[] */