mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[libcalamares] Don't break string tables by reformatting
This commit is contained in:
parent
2556ba9d55
commit
b7f54a3866
1 changed files with 7 additions and 0 deletions
|
@ -31,6 +31,11 @@ namespace CalamaresUtils
|
|||
QString
|
||||
removeDiacritics( const QString& string )
|
||||
{
|
||||
// *INDENT-OFF*
|
||||
// clang-format off
|
||||
// Map these extended-Latin characters to ASCII; keep the
|
||||
// layout so that one line in *diacriticLetters* corresponds
|
||||
// to one line of replacements in *noDiacriticLetters*.
|
||||
static const QString diacriticLetters = QString::fromUtf8(
|
||||
"ŠŒŽšœžŸ¥µÀ"
|
||||
"ÁÂÃÄÅÆÇÈÉÊ"
|
||||
|
@ -65,6 +70,8 @@ removeDiacritics( const QString& string )
|
|||
"r", "A", "a", "E", "e", "L", "l", "N", "n", "S",
|
||||
"s", "Z", "z", "Z", "z"
|
||||
};
|
||||
// clang-format on
|
||||
// *INDENT-ON*
|
||||
|
||||
QString output;
|
||||
for ( const QChar &c : string )
|
||||
|
|
Loading…
Add table
Reference in a new issue