Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117754887
D2122.1775201232.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
697 B
Referenced Files
None
Subscribers
None
D2122.1775201232.diff
View Options
diff --git a/lib/file_locale.php b/lib/file_locale.php
--- a/lib/file_locale.php
+++ b/lib/file_locale.php
@@ -77,6 +77,8 @@
array_unshift($langs, $_SESSION['env']['language']);
}
+ $fallback = null;
+
foreach (array_unique($langs) as $lang) {
$lang = explode(';', $lang);
$lang = $lang[0];
@@ -91,9 +93,14 @@
) {
return $alias;
}
+
+ // Fall back to just returning the language identifier for reuse by the editor
+ if (!$fallback) {
+ $fallback = $lang;
+ }
}
- return null;
+ return $fallback;
}
/**
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 7:27 AM (4 d, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823012
Default Alt Text
D2122.1775201232.diff (697 B)
Attached To
Mode
D2122: Pass on a language identifier even if we couldn't find a translation file
Attached
Detach File
Event Timeline