From b1ee4c6230c50611fb4a48aae48f49b0a8cc7c84 Mon Sep 17 00:00:00 2001 From: Burt P Date: Thu, 20 Jul 2017 07:42:20 -0500 Subject: spd-decode.c: break column headers out of format strings * More easily translated. * The strings are more likely to be re-usable. * A small change to one, or to a shell param, does not lose all of them. spd-decode.c still has many labels that are untranslatable, or stuck in c-format strings. Signed-off-by: Burt P --- modules/devices/spd-decode.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'modules') diff --git a/modules/devices/spd-decode.c b/modules/devices/spd-decode.c index ac1dd52b..2db4895b 100644 --- a/modules/devices/spd-decode.c +++ b/modules/devices/spd-decode.c @@ -11,12 +11,12 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -1497,13 +1497,16 @@ void scan_spd_do(void) g_slist_free(dimm_list); g_free(spd_info); - spd_info = g_strdup_printf("[SPD]\n" - "%s\n" - "[$ShellParam$]\n" - "ViewType=1\n" - "ColumnTitle$TextValue=Bank\n" - "ColumnTitle$Extra1=Size\n" - "ColumnTitle$Extra2=Manufacturer\n" - "ColumnTitle$Value=Model\n" "ShowColumnHeaders=true\n", list); + spd_info = g_strdup_printf("[%s]\n" + "%s\n" + "[$ShellParam$]\n" + "ViewType=1\n" + "ColumnTitle$TextValue=%s\n" /* Bank */ + "ColumnTitle$Extra1=%s\n" /* Size */ + "ColumnTitle$Extra2=%s\n" /* Manufacturer */ + "ColumnTitle$Value=%s\n" /* Model */ + "ShowColumnHeaders=true\n", + _("SPD"), list, + _("Bank"), _("Size"), _("Manufacturer"), _("Model") ); g_free(list); } -- cgit v1.2.3