[gnome-control-center/gnome-3-22] info: Lowercase APU/GPU names for AMD



commit 69e5019081760b5e317a6b54dff63e5152dda308
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 16 16:52:56 2016 +0100

    info: Lowercase APU/GPU names for AMD
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774240

 panels/info/info-cleanup-test.txt |    6 +++---
 panels/info/info-cleanup.c        |    1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/panels/info/info-cleanup-test.txt b/panels/info/info-cleanup-test.txt
index 6748f43..44dde28 100644
--- a/panels/info/info-cleanup-test.txt
+++ b/panels/info/info-cleanup-test.txt
@@ -1,6 +1,6 @@
 Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz       Intel<sup>®</sup> Core<sup>™</sup> i5-4590T CPU @ 2.00GHz
 Intel(R) Ivybridge Mobile      Intel<sup>®</sup> Ivybridge Mobile
 Intel(R)  Ivybridge Mobile     Intel<sup>®</sup> Ivybridge Mobile
-Gallium 0.4 on AMD KAVERI      AMD<sup>®</sup> KAVERI
-AMD KAVERI (DRM 2.48.0 / 4.9.0-0.rc4.git2.2.fc26.x86_64, LLVM3)        AMD<sup>®</sup> KAVERI
-Gallium 0.4 on AMD KAVERI (DRM 2.48.0 / 4.9.0-0.rc4.git2.2.fc26.x86_64, LLVM3) AMD<sup>®</sup> KAVERI
+Gallium 0.4 on AMD KAVERI      AMD<sup>®</sup> Kaveri
+AMD KAVERI (DRM 2.48.0 / 4.9.0-0.rc4.git2.2.fc26.x86_64, LLVM3)        AMD<sup>®</sup> Kaveri
+Gallium 0.4 on AMD KAVERI (DRM 2.48.0 / 4.9.0-0.rc4.git2.2.fc26.x86_64, LLVM3) AMD<sup>®</sup> Kaveri
diff --git a/panels/info/info-cleanup.c b/panels/info/info-cleanup.c
index d907c55..6c0ea88 100644
--- a/panels/info/info-cleanup.c
+++ b/panels/info/info-cleanup.c
@@ -41,6 +41,7 @@ prettify_info (const char *info)
     { "Atom[(]TM[)]", "Atom<sup>\342\204\242</sup>"},
     { "Gallium .* on (AMD .*)", "\\1"},
     { "(AMD .*) [(].*[)]", "\\1"},
+    { "(AMD [A-Z])(.*)", "\\1\\L\\2\\E"},
     { "AMD", "AMD<sup>\302\256</sup>"},
     { "Graphics Controller", "Graphics"},
   };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]