diff options
| author | TotalCaesar659 <x24cm5b8c54q6szxw@yandex.ru> | 2017-08-07 04:08:59 +0300 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-08-14 01:56:47 -0700 | 
| commit | 0b25c95ca21e3ea6f397146f6489456a693df80d (patch) | |
| tree | 5e3cbe06c77b96d65a9397027090429774f8c3be | |
| parent | bbc49f360ccc1c25e32396d11f32454379cb561e (diff) | |
Making PCI devices information translatable
| -rw-r--r-- | modules/devices/pci.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/modules/devices/pci.c b/modules/devices/pci.c index 91ff914d..a48c6b76 100644 --- a/modules/devices/pci.c +++ b/modules/devices/pci.c @@ -107,9 +107,9 @@ scan_pci_do(void)  	    if (freq)  		strdevice = h_strdup_cprintf("Frequency=%dMHz\n", strdevice, freq);  	    if (latency) -		strdevice = h_strdup_cprintf("Latency=%d\n", strdevice, latency); +		strdevice = h_strdup_cprintf(_("Latency=%d\n"), strdevice, latency); -	    strdevice = h_strdup_cprintf("Bus Master=%s\n", strdevice, bus_master ? "Yes" : "No"); +	    strdevice = h_strdup_cprintf(_("Bus Master=%s\n"), strdevice, bus_master ? "Yes" : "No");  	} else if (!strncmp(buf, "Kernel modules", 14)) {  	    WALK_UNTIL(' ');  	    WALK_UNTIL(':'); @@ -121,7 +121,7 @@ scan_pci_do(void)  	    buf++;  	    const gchar *oem_vendor_url = vendor_get_url(buf);              if (oem_vendor_url)  -                strdevice = h_strdup_cprintf("OEM Vendor=%s (%s)\n", +                strdevice = h_strdup_cprintf(_("OEM Vendor=%s (%s)\n"),                                              strdevice,                                              vendor_get_name(buf),                                              oem_vendor_url); @@ -204,17 +204,17 @@ scan_pci_do(void)                                  name);  	    strhash = g_strdup_printf("PCI%d", n); -	    strdevice = g_strdup_printf("[Device Information]\n" +	    strdevice = g_strdup_printf(_("[Device Information]\n"  					"Name=%s\n"  					"Class=%s\n"  					"Domain=%d\n" -					"Bus, device, function=%d, %d, %d\n", +					"Bus, device, function=%d, %d, %d\n"),  					name, category, domain, bus,  					device, function);              const gchar *url = vendor_get_url(name);              if (url) { -                strdevice = h_strdup_cprintf("Vendor=%s (%s)\n", +                strdevice = h_strdup_cprintf(_("Vendor=%s (%s)\n"),                                              strdevice,                                              vendor_get_name(name),                                              url); | 
