diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
| commit | 69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch) | |
| tree | ebc98370a697a9bbd6b973a14fa5113c475c6db7 /CountryNames.cpp | |
| parent | 3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff) | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg'
with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
Diffstat (limited to 'CountryNames.cpp')
| -rw-r--r-- | CountryNames.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/CountryNames.cpp b/CountryNames.cpp new file mode 100644 index 00000000..79828f36 --- /dev/null +++ b/CountryNames.cpp @@ -0,0 +1,28 @@ +#include "CountryNames.hpp" + +namespace Radio +{ + QString CountryNames::abbreviate(QString name) + { + name.replace ("Islands", "Is."); + name.replace ("Island", "Is."); + name.replace ("North ", "N. "); + name.replace ("Northern ", "N. "); + name.replace ("South ", "S. "); + name.replace ("East ", "E. "); + name.replace ("Eastern ", "E. "); + name.replace ("West ", "W. "); + name.replace ("Western ", "W. "); + name.replace ("Central ", "C. "); + name.replace (" and ", " & "); + name.replace ("Republic", "Rep."); + name.replace ("United States of America", "U.S.A."); + name.replace ("United States", "U.S.A."); + name.replace ("Fed. Rep. of ", ""); + name.replace ("French ", "Fr."); + name.replace ("Asiatic", "AS"); + name.replace ("European", "EU"); + name.replace ("African", "AF"); + return name; + } +} |
