[libcalamares] Don't break string tables by reformatting
This commit is contained in:
parent
2556ba9d55
commit
b7f54a3866
@ -31,6 +31,11 @@ namespace CalamaresUtils
|
|||||||
QString
|
QString
|
||||||
removeDiacritics( const QString& string )
|
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(
|
static const QString diacriticLetters = QString::fromUtf8(
|
||||||
"ŠŒŽšœžŸ¥µÀ"
|
"ŠŒŽšœžŸ¥µÀ"
|
||||||
"ÁÂÃÄÅÆÇÈÉÊ"
|
"ÁÂÃÄÅÆÇÈÉÊ"
|
||||||
@ -65,6 +70,8 @@ removeDiacritics( const QString& string )
|
|||||||
"r", "A", "a", "E", "e", "L", "l", "N", "n", "S",
|
"r", "A", "a", "E", "e", "L", "l", "N", "n", "S",
|
||||||
"s", "Z", "z", "Z", "z"
|
"s", "Z", "z", "Z", "z"
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
|
// *INDENT-ON*
|
||||||
|
|
||||||
QString output;
|
QString output;
|
||||||
for ( const QChar &c : string )
|
for ( const QChar &c : string )
|
||||||
|
Loading…
Reference in New Issue
Block a user