diff options
author | Burt P <pburt0@gmail.com> | 2017-07-20 07:42:20 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-07-30 10:09:27 -0700 |
commit | b1ee4c6230c50611fb4a48aae48f49b0a8cc7c84 (patch) | |
tree | 67bf8d52ec88e13b9ebd4954c67c107b42c93779 /modules/devices/spd-decode.c | |
parent | 86f2267b01dcb5ffbfb8e6fb90bba4d2e55cc84a (diff) |
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 <pburt0@gmail.com>
Diffstat (limited to 'modules/devices/spd-decode.c')
-rw-r--r-- | modules/devices/spd-decode.c | 23 |
1 files changed, 13 insertions, 10 deletions
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); } |