Skip to content

Commit c8aa4c8

Browse files
committed
i18n [nfc]: Explain why we skip translating licenses
Signed-off-by: Zixuan James Li <[email protected]>
1 parent 812d95c commit c8aa4c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/licenses.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ Stream<LicenseEntry> additionalLicenses() async* {
2323
rootBundle.loadString('assets/Pygments/AUTHORS.txt'),
2424
]);
2525

26+
// This does not need to be translated, as it is just a small fragment
27+
// of text surrounded by a large quantity of English text that isn't
28+
// translated anyway.
29+
// (And it would be logistically tricky to translate, as this code is
30+
// called from the `main` function before the [ZulipApp] widget is built,
31+
// let alone has updated [GlobalLocalizations].)
2632
return '$licenseFileText\n\nAUTHORS file follows:\n\n$authorsFileText';
2733
}());
2834
yield LicenseEntryWithLineBreaks(

0 commit comments

Comments
 (0)