Skip to content

Commit 5f2f06a

Browse files
authored
fix(l10n): escape apostrophe in Italian ARB plural string (#1097)
* fix(l10n): escape apostrophe in Italian ARB plural string ICU message format treats single quotes as escape characters. Unescaped apostrophe in `dell'ultimo` caused ICU lexing error and broke gen_localizations during the Android build. Fix: replace `'` with `''` in the affected plural form. * fix(l10n): replace ASCII apostrophe with U+2019 in Italian ARB plural ICU message format treats ASCII ' as an escape character, causing a lexing error in gen_localizations during CI Android build. Fix: replace the ASCII apostrophe in `dell'ultimo` with U+2019 RIGHT SINGLE QUOTATION MARK, which is not an ICU syntax character. Visual output is unchanged. Regenerated app_localizations_it.g.dart accordingly.
1 parent 6cf1120 commit 5f2f06a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/l10n/app_localizations_it.g.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ class AppLocalizationsIt extends AppLocalizations {
883883
count,
884884
locale: localeName,
885885
other: 'Visualizzazione degli ultimi $count record. Usa Condividi per esportare il log completo.',
886-
one: 'Visualizzazione dell\'ultimo $count record. Usa Condividi per esportare il log completo.',
886+
one: 'Visualizzazione dellultimo $count record. Usa Condividi per esportare il log completo.',
887887
);
888888
return '$_temp0';
889889
}

lib/l10n/arb/app_it.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@
746746
"@logRecordsConsole_Text_failure": {
747747
"description": "Shown in the Log Console screen when an unexpected error occurs while loading or displaying log records."
748748
},
749-
"logRecordsConsole_Text_recordsCountHint": "{count, plural, one{Visualizzazione dell'ultimo {count} record. Usa Condividi per esportare il log completo.} other{Visualizzazione degli ultimi {count} record. Usa Condividi per esportare il log completo.}}",
749+
"logRecordsConsole_Text_recordsCountHint": "{count, plural, one{Visualizzazione dell\u2019ultimo {count} record. Usa Condividi per esportare il log completo.} other{Visualizzazione degli ultimi {count} record. Usa Condividi per esportare il log completo.}}",
750750
"@logRecordsConsole_Text_recordsCountHint": {
751751
"description": "Shown in the info dialog to inform the user that only the most recent records are displayed and the share button exports the complete log.",
752752
"placeholders": {

0 commit comments

Comments
 (0)