From de74dc281a45e42cc8a79a4ee74e7bef6b5ce9b9 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 5bf710cc03e93..c8e8f1abba395 100644 --- a/lib/private/L10N/Factory.php +++ b/lib/private/L10N/Factory.php @@ -554,7 +554,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 817c4d3d70c31fb20efd0857664640fccfb6ddaa 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 c8e8f1abba395..c381247346d5f 100644 --- a/lib/private/L10N/Factory.php +++ b/lib/private/L10N/Factory.php @@ -551,6 +551,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[] */