hardinfo

Check-in [cd126c2f50]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:upstream: import all updates.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:cd126c2f50e8ba47cfdd8fb7900bcfe03cac333d
User & Date: jamesbond 2014-06-06 19:23:28
Context
2014-06-06
19:33
fix missing RAM memory due to functions of the same name being exported in different shared libraries (fix: make the functions private). check-in: d5afcb6851 user: jamesbond tags: trunk
19:23
upstream: import all updates. check-in: cd126c2f50 user: jamesbond tags: trunk
2014-01-03
10:02
Complete spanish translation of hardinfo.pot. check-in: 87508af301 user: leandro@hardinfo.org tags: trunk
2013-12-22
16:58
stability fixes & add fatdog64 recognition check-in: 7a424d172a user: jamesbond tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to CMakeLists.txt.

1
2

3
4
5



6
7
8
9
10
11
12
13
14
15
16
17


18
19
20
21
22
23
24
..
36
37
38
39
40
41
42




43
44
45
46
47
48
49
...
165
166
167
168
169
170
171

172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
project(HardInfo)
cmake_minimum_required(VERSION 2.6)


set(HARDINFO_VERSION "0.5.2pre")




if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
	set(HARDINFO_DEBUG 1)
endif()

if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux")
	set(HARDINFO_OS "linux")
else()
	message(FATAL_ERROR "Unsupported operating system: ${CMAKE_HOST_SYSTEM_NAME}")
endif()

if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "i[3-6]86|x86_64")
	set(HARDINFO_ARCH "x86")


elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "ppc{32,64}")
	set(HARDINFO_ARCH "ppc")
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "mips")
	set(HARDINFO_ARCH "mips")
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "parisc.*")
	set(HARDINFO_ARCH "parisc")
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "sparc{32,64}")
................................................................................
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "sh{3,4}")
	set(HARDINFO_ARCH "sh")
else()
	message(FATAL_ERROR "Unsupported architecture: ${CMAKE_HOST_SYSTEM_PROCESSOR}")
endif()

message(STATUS "Building HardInfo for architecture: ${HARDINFO_OS}-${HARDINFO_ARCH}")





include(FindPkgConfig)
pkg_check_modules(GTK REQUIRED gtk+-2.0>=2.10 glib-2.0>=2.10 gthread-2.0>=2.10 gmodule-export-2.0>=2.10)
pkg_check_modules(LIBSOUP libsoup-2.4>=2.24)

include_directories(
	${CMAKE_SOURCE_DIR}
................................................................................
	hardinfo/util.c
	hardinfo/vendor.c
)
target_link_libraries(hardinfo
	${GTK_LIBRARIES}
	${LIBSOUP_LIBRARIES}
	hardinfo-shell

)
target_link_libraries(hardinfo-shell
	hardinfo-help-viewer
	hardinfo-remote
)

configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h @ONLY)
configure_file(hardinfo.desktop.cmake ${CMAKE_BINARY_DIR}/hardinfo.desktop @ONLY)

install(TARGETS hardinfo ${HARDINFO_MODULES}
	RUNTIME DESTINATION bin
	LIBRARY DESTINATION lib/hardinfo/modules
	PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
install(FILES ${CMAKE_BINARY_DIR}/hardinfo.desktop
	DESTINATION share/applications
	PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
install(FILES ${HARDINFO_RESOURCES}
	DESTINATION share/hardinfo
	PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
install(DIRECTORY pixmaps
	DESTINATION share/hardinfo
	PATTERN "*.{png,svg}"
	PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
install(DIRECTORY doc
	DESTINATION share/hardinfo
	PATTERN "*.{hlp,png}"
	PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
	


>



>
>
>
|
|








|

>
>







 







>
>
>
>







 







>










|
|



|



|



|




|



<
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
..
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
...
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214

project(HardInfo)
cmake_minimum_required(VERSION 2.6)
cmake_policy(VERSION 2.6)

set(HARDINFO_VERSION "0.5.2pre")

SET( CMAKE_MODULE_PATH  "${CMAKE_CURRENT_SOURCE_DIR}/cmake" )
include(GNUInstallDirs)

if(${CMAKE_BUILD_TYPE} MATCHES [Dd]ebug)
  set(HARDINFO_DEBUG 1)
endif()

if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux")
	set(HARDINFO_OS "linux")
else()
	message(FATAL_ERROR "Unsupported operating system: ${CMAKE_HOST_SYSTEM_NAME}")
endif()

if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "i[3-6]86")
	set(HARDINFO_ARCH "x86")
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "x86_64")
	set(HARDINFO_ARCH "x86_64")
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "ppc{32,64}")
	set(HARDINFO_ARCH "ppc")
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "mips")
	set(HARDINFO_ARCH "mips")
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "parisc.*")
	set(HARDINFO_ARCH "parisc")
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "sparc{32,64}")
................................................................................
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "sh{3,4}")
	set(HARDINFO_ARCH "sh")
else()
	message(FATAL_ERROR "Unsupported architecture: ${CMAKE_HOST_SYSTEM_PROCESSOR}")
endif()

message(STATUS "Building HardInfo for architecture: ${HARDINFO_OS}-${HARDINFO_ARCH}")

add_definitions("-std=gnu89")

add_subdirectory(po)

include(FindPkgConfig)
pkg_check_modules(GTK REQUIRED gtk+-2.0>=2.10 glib-2.0>=2.10 gthread-2.0>=2.10 gmodule-export-2.0>=2.10)
pkg_check_modules(LIBSOUP libsoup-2.4>=2.24)

include_directories(
	${CMAKE_SOURCE_DIR}
................................................................................
	hardinfo/util.c
	hardinfo/vendor.c
)
target_link_libraries(hardinfo
	${GTK_LIBRARIES}
	${LIBSOUP_LIBRARIES}
	hardinfo-shell
	m
)
target_link_libraries(hardinfo-shell
	hardinfo-help-viewer
	hardinfo-remote
)

configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h @ONLY)
configure_file(hardinfo.desktop.cmake ${CMAKE_BINARY_DIR}/hardinfo.desktop @ONLY)

install(TARGETS hardinfo ${HARDINFO_MODULES}
	RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
	LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/hardinfo/modules
	PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
install(FILES ${CMAKE_BINARY_DIR}/hardinfo.desktop
	DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications
	PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
install(FILES ${HARDINFO_RESOURCES}
	DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/hardinfo
	PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
install(DIRECTORY pixmaps
	DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/hardinfo
	PATTERN "*.{png,svg}"
	PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
install(DIRECTORY doc
	DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/hardinfo
	PATTERN "*.{hlp,png}"
	PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)

Added cmake/GNUInstallDirs.cmake.













































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# - Define GNU standard installation directories
# Provides install directory variables as defined for GNU software:
#  http://www.gnu.org/prep/standards/html_node/Directory-Variables.html
# Inclusion of this module defines the following variables:
#  CMAKE_INSTALL_<dir>      - destination for files of a given type
#  CMAKE_INSTALL_FULL_<dir> - corresponding absolute path
# where <dir> is one of:
#  BINDIR           - user executables (bin)
#  SBINDIR          - system admin executables (sbin)
#  LIBEXECDIR       - program executables (libexec)
#  SYSCONFDIR       - read-only single-machine data (etc)
#  SHAREDSTATEDIR   - modifiable architecture-independent data (com)
#  LOCALSTATEDIR    - modifiable single-machine data (var)
#  LIBDIR           - object code libraries (lib or lib64)
#  INCLUDEDIR       - C header files (include)
#  OLDINCLUDEDIR    - C header files for non-gcc (/usr/include)
#  DATAROOTDIR      - read-only architecture-independent data root (share)
#  DATADIR          - read-only architecture-independent data (DATAROOTDIR)
#  INFODIR          - info documentation (DATAROOTDIR/info)
#  LOCALEDIR        - locale-dependent data (DATAROOTDIR/locale)
#  MANDIR           - man documentation (DATAROOTDIR/man)
#  DOCDIR           - documentation root (DATAROOTDIR/doc/PROJECT_NAME)
# Each CMAKE_INSTALL_<dir> value may be passed to the DESTINATION options of
# install() commands for the corresponding file type.  If the includer does
# not define a value the above-shown default will be used and the value will
# appear in the cache for editing by the user.
# Each CMAKE_INSTALL_FULL_<dir> value contains an absolute path constructed
# from the corresponding destination by prepending (if necessary) the value
# of CMAKE_INSTALL_PREFIX.

#=============================================================================
# Copyright 2011 Nikita Krupen'ko <krnekit@gmail.com>
# Copyright 2011 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
#  License text for the above reference.)

# Installation directories
#
if(NOT DEFINED CMAKE_INSTALL_BINDIR)
  set(CMAKE_INSTALL_BINDIR "bin" CACHE PATH "user executables (bin)")
endif()

if(NOT DEFINED CMAKE_INSTALL_SBINDIR)
  set(CMAKE_INSTALL_SBINDIR "sbin" CACHE PATH "system admin executables (sbin)")
endif()

if(NOT DEFINED CMAKE_INSTALL_LIBEXECDIR)
  set(CMAKE_INSTALL_LIBEXECDIR "libexec" CACHE PATH "program executables (libexec)")
endif()

if(NOT DEFINED CMAKE_INSTALL_SYSCONFDIR)
  set(CMAKE_INSTALL_SYSCONFDIR "etc" CACHE PATH "read-only single-machine data (etc)")
endif()

if(NOT DEFINED CMAKE_INSTALL_SHAREDSTATEDIR)
  set(CMAKE_INSTALL_SHAREDSTATEDIR "com" CACHE PATH "modifiable architecture-independent data (com)")
endif()

if(NOT DEFINED CMAKE_INSTALL_LOCALSTATEDIR)
  set(CMAKE_INSTALL_LOCALSTATEDIR "var" CACHE PATH "modifiable single-machine data (var)")
endif()

if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
  set(_LIBDIR_DEFAULT "lib")
  # Override this default 'lib' with 'lib64' iff:
  #  - we are on Linux system but NOT cross-compiling
  #  - we are NOT on debian
  #  - we are on a 64 bits system
  # reason is: amd64 ABI: http://www.x86-64.org/documentation/abi.pdf
  # Note that the future of multi-arch handling may be even
  # more complicated than that: http://wiki.debian.org/Multiarch
  if(CMAKE_SYSTEM_NAME MATCHES "Linux"
      AND NOT CMAKE_CROSSCOMPILING
      AND NOT EXISTS "/etc/debian_version")
    if(NOT DEFINED CMAKE_SIZEOF_VOID_P)
      message(AUTHOR_WARNING
        "Unable to determine default CMAKE_INSTALL_LIBDIR directory because no target architecture is known. "
        "Please enable at least one language before including GNUInstallDirs.")
    else()
      if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
        set(_LIBDIR_DEFAULT "lib64")
      endif()
    endif()
  endif()
  set(CMAKE_INSTALL_LIBDIR "${_LIBDIR_DEFAULT}" CACHE PATH "object code libraries (${_LIBDIR_DEFAULT})")
endif()

if(NOT DEFINED CMAKE_INSTALL_INCLUDEDIR)
  set(CMAKE_INSTALL_INCLUDEDIR "include" CACHE PATH "C header files (include)")
endif()

if(NOT DEFINED CMAKE_INSTALL_OLDINCLUDEDIR)
  set(CMAKE_INSTALL_OLDINCLUDEDIR "/usr/include" CACHE PATH "C header files for non-gcc (/usr/include)")
endif()

if(NOT DEFINED CMAKE_INSTALL_DATAROOTDIR)
  set(CMAKE_INSTALL_DATAROOTDIR "share" CACHE PATH "read-only architecture-independent data root (share)")
endif()

#-----------------------------------------------------------------------------
# Values whose defaults are relative to DATAROOTDIR.  Store empty values in
# the cache and store the defaults in local variables if the cache values are
# not set explicitly.  This auto-updates the defaults as DATAROOTDIR changes.

if(NOT CMAKE_INSTALL_DATADIR)
  set(CMAKE_INSTALL_DATADIR "" CACHE PATH "read-only architecture-independent data (DATAROOTDIR)")
  set(CMAKE_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}")
endif()

if(NOT CMAKE_INSTALL_INFODIR)
  set(CMAKE_INSTALL_INFODIR "" CACHE PATH "info documentation (DATAROOTDIR/info)")
  set(CMAKE_INSTALL_INFODIR "${CMAKE_INSTALL_DATAROOTDIR}/info")
endif()

if(NOT CMAKE_INSTALL_LOCALEDIR)
  set(CMAKE_INSTALL_LOCALEDIR "" CACHE PATH "locale-dependent data (DATAROOTDIR/locale)")
  set(CMAKE_INSTALL_LOCALEDIR "${CMAKE_INSTALL_DATAROOTDIR}/locale")
endif()

if(NOT CMAKE_INSTALL_MANDIR)
  set(CMAKE_INSTALL_MANDIR "" CACHE PATH "man documentation (DATAROOTDIR/man)")
  set(CMAKE_INSTALL_MANDIR "${CMAKE_INSTALL_DATAROOTDIR}/man")
endif()

if(NOT CMAKE_INSTALL_DOCDIR)
  set(CMAKE_INSTALL_DOCDIR "" CACHE PATH "documentation root (DATAROOTDIR/doc/PROJECT_NAME)")
  set(CMAKE_INSTALL_DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}")
endif()

#-----------------------------------------------------------------------------

mark_as_advanced(
  CMAKE_INSTALL_BINDIR
  CMAKE_INSTALL_SBINDIR
  CMAKE_INSTALL_LIBEXECDIR
  CMAKE_INSTALL_SYSCONFDIR
  CMAKE_INSTALL_SHAREDSTATEDIR
  CMAKE_INSTALL_LOCALSTATEDIR
  CMAKE_INSTALL_LIBDIR
  CMAKE_INSTALL_INCLUDEDIR
  CMAKE_INSTALL_OLDINCLUDEDIR
  CMAKE_INSTALL_DATAROOTDIR
  CMAKE_INSTALL_DATADIR
  CMAKE_INSTALL_INFODIR
  CMAKE_INSTALL_LOCALEDIR
  CMAKE_INSTALL_MANDIR
  CMAKE_INSTALL_DOCDIR
  )

# Result directories
#
foreach(dir
    BINDIR
    SBINDIR
    LIBEXECDIR
    SYSCONFDIR
    SHAREDSTATEDIR
    LOCALSTATEDIR
    LIBDIR
    INCLUDEDIR
    OLDINCLUDEDIR
    DATAROOTDIR
    DATADIR
    INFODIR
    LOCALEDIR
    MANDIR
    DOCDIR
    )
  if(NOT IS_ABSOLUTE ${CMAKE_INSTALL_${dir}})
    set(CMAKE_INSTALL_FULL_${dir} "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_${dir}}")
  else()
    set(CMAKE_INSTALL_FULL_${dir} "${CMAKE_INSTALL_${dir}}")
  endif()
endforeach()

Added cmake/Translations.cmake.



















































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Translations.cmake, CMake macros written for Marlin, feel free to re-use them

macro(add_translations_directory NLS_PACKAGE)
    add_custom_target (i18n ALL COMMENT “Building i18n messages.”)
    find_program (MSGFMT_EXECUTABLE msgfmt)
    file (GLOB PO_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.po)
    foreach (PO_INPUT ${PO_FILES})
        get_filename_component (PO_INPUT_BASE ${PO_INPUT} NAME_WE)
        set (MO_OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${PO_INPUT_BASE}.mo)
        add_custom_command (TARGET i18n COMMAND ${MSGFMT_EXECUTABLE} -o ${MO_OUTPUT} ${PO_INPUT})

        install (FILES ${MO_OUTPUT} DESTINATION
            share/locale/${PO_INPUT_BASE}/LC_MESSAGES
            RENAME ${NLS_PACKAGE}.mo)
    endforeach (PO_INPUT ${PO_FILES})
endmacro(add_translations_directory)


macro(add_translations_catalog NLS_PACKAGE)
    add_custom_target (pot COMMENT “Building translation catalog.”)
    find_program (XGETTEXT_EXECUTABLE xgettext)


    set(C_SOURCE "")

    foreach(FILES_INPUT ${ARGN})
        file (GLOB_RECURSE SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${FILES_INPUT}/*.c)
        foreach(C_FILE ${SOURCE_FILES})
            set(C_SOURCE ${C_SOURCE} ${C_FILE})
        endforeach()
        file (GLOB_RECURSE SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${FILES_INPUT}/*.vala)
        foreach(C_FILE ${SOURCE_FILES})
            set(C_SOURCE ${C_SOURCE} ${C_FILE})
        endforeach()
    endforeach()

    add_custom_command (TARGET pot COMMAND
        ${XGETTEXT_EXECUTABLE} -d ${NLS_PACKAGE} -o ${CMAKE_CURRENT_SOURCE_DIR}/${NLS_PACKAGE}.pot
        ${VALA_SOURCE} ${C_SOURCE} --keyword="_" --keyword="N_" --from-code=UTF-8
        )
endmacro()

Changes to config.h.cmake.

6
7
8
9
10
11
12

13
14
15
16
17
18
19
20
#define ARCH			"ARCH_@HARDINFO_ARCH@"
#define OS			"@HARDINFO_OS@"
#define PLATFORM		OS "-" ARCH
#define KERNEL			"@CMAKE_SYSTEM_VERSION@"
#define HOSTNAME		""
#define ARCH_@HARDINFO_ARCH@


#define LIBPREFIX		"@CMAKE_INSTALL_PREFIX@/lib/hardinfo"
#define PREFIX			"@CMAKE_INSTALL_PREFIX@/share/hardinfo"

#cmakedefine LIBSOUP_FOUND
#cmakedefine HARDINFO_DEBUG	@HARDINFO_DEBUG@

#ifdef LIBSOUP_FOUND
#	define HAS_LIBSOUP







>
|







6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#define ARCH			"ARCH_@HARDINFO_ARCH@"
#define OS			"@HARDINFO_OS@"
#define PLATFORM		OS "-" ARCH
#define KERNEL			"@CMAKE_SYSTEM_VERSION@"
#define HOSTNAME		""
#define ARCH_@HARDINFO_ARCH@

#define LIBDIR			"@CMAKE_INSTALL_LIBDIR@"
#define LIBPREFIX		"@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/hardinfo"
#define PREFIX			"@CMAKE_INSTALL_PREFIX@/share/hardinfo"

#cmakedefine LIBSOUP_FOUND
#cmakedefine HARDINFO_DEBUG	@HARDINFO_DEBUG@

#ifdef LIBSOUP_FOUND
#	define HAS_LIBSOUP

Changes to hardinfo.desktop.cmake.

1
2
3


4
5
6
7
8
9
[Desktop Entry]
Name=System Profiler and Benchmark
Name[pt_BR]=Informações e Testes do Sistema


Exec=@CMAKE_INSTALL_PREFIX@/bin/hardinfo
Icon=@CMAKE_INSTALL_PREFIX@/share/hardinfo/pixmaps/logo.png
Terminal=false
Type=Application
StartupNotify=true
Categories=System;



>
>
|
|




1
2
3
4
5
6
7
8
9
10
11
[Desktop Entry]
Name=System Profiler and Benchmark
Name[pt_BR]=Informações e Testes do Sistema
Name[es]=Informacion y Rendimiento del Sistema
Name[fr]=Informations et Benchmarks du Système
Exec=@CMAKE_INSTALL_FULL_BINDIR@/hardinfo
Icon=@CMAKE_INSTALL_FULL_DATAROOTDIR@/hardinfo/pixmaps/logo.png
Terminal=false
Type=Application
StartupNotify=true
Categories=System;

Changes to hardinfo/binreloc.c.

589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
	/* BinReloc not initialized. */
	if (default_lib_dir != NULL)
	    return g_strdup(default_lib_dir);
	else
	    return NULL;
    }

#ifdef ARCH_x86_64
    dir = g_build_filename(prefix, "lib64", NULL);
#else
    dir = g_build_filename(prefix, "lib", NULL);
#endif

    g_free(prefix);
    return dir;
}


/** Locate the application's libexec folder.







<
<
<
|
<







589
590
591
592
593
594
595



596

597
598
599
600
601
602
603
	/* BinReloc not initialized. */
	if (default_lib_dir != NULL)
	    return g_strdup(default_lib_dir);
	else
	    return NULL;
    }




    dir = g_build_filename(prefix, LIBDIR, NULL);


    g_free(prefix);
    return dir;
}


/** Locate the application's libexec folder.

Changes to hardinfo/hardinfo.c.

28
29
30
31
32
33
34




35
36
37
38
39
40
41
..
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
...
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
...
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166

#include <binreloc.h>

ProgramParameters params = { 0 };

int main(int argc, char **argv)
{




    GSList *modules;

    DEBUG("HardInfo version " VERSION ". Debug version.");

    DEBUG("g_thread_init()");
    if (!g_thread_supported())
	g_thread_init(NULL);
................................................................................
    /* parse all command line parameters */
    parameters_init(&argc, &argv, &params);

    /* show version information and quit */
    if (params.show_version) {
	g_print("HardInfo version " VERSION "\n");
	g_print
	    ("Copyright (C) 2003-2009 Leandro A. F. Pereira. See COPYING for details.\n\n");

	g_print("Compile-time options:\n"
		"  Release version:   %s (%s)\n"
		"  BinReloc enabled:  %s\n"
		"  Data prefix:       %s\n"
		"  Library prefix:    %s\n"
		"  Compiled on:       %s %s (%s)\n",
		RELEASE ? "Yes" : "No (" VERSION ")", ARCH,
		ENABLE_BINRELOC ? "Yes" : "No",
		PREFIX, LIBPREFIX, PLATFORM, KERNEL, HOSTNAME);

	DEBUG("  Debugging is enabled.");

	/* show also available modules */
	params.list_modules = TRUE;
    }

    /* initialize the binreloc library, so we can load program data */
    if (!binreloc_init(FALSE))
	g_error("Failed to find runtime data.\n\n"
		"\342\200\242 Is HardInfo correctly installed?\n"
		"\342\200\242 See if %s and %s exists and you have read permision.",
		PREFIX, LIBPREFIX);

    /* list all module names */
    if (params.list_modules) {
	g_print("Modules:\n"
		"%-20s%-15s%-12s\n", "File Name", "Name", "Version");

	for (modules = modules_load_all(); modules;
	     modules = modules->next) {
	    ShellModule *module = (ShellModule *) modules->data;
	    ModuleAbout *ma = module_get_about(module);
	    gchar *name = g_path_get_basename(g_module_name(module->dll));

................................................................................
        xmlrpc_server_init();
        xmlrpc_server_start(NULL);
    } else if (params.run_benchmark) {
        gchar *result;
        
        result = module_call_method_param("benchmark::runBenchmark", params.run_benchmark);
        if (!result) {
          g_error("Unknown benchmark ``%s'' or libbenchmark.so not loaded", params.run_benchmark);
        } else {
          g_print("%s\n", result);
          g_free(result);
        }
    } else if (params.gui_running) {
	/* initialize gui and start gtk+ main loop */
	icon_cache_init();
................................................................................
	report = report_create_from_module_list_format(modules,
						       params.
						       report_format);
	g_print("%s", report);

	g_free(report);
    } else {
        g_error("Don't know what to do. Exiting.");
    }

    moreinfo_shutdown();

    DEBUG("finished");
    return 0;
}







>
>
>
>







 







|

|




|
|
|










|

|




|
|







 







|







 







|







28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
..
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
...
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
...
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170

#include <binreloc.h>

ProgramParameters params = { 0 };

int main(int argc, char **argv)
{
	setlocale( LC_ALL, "" );
    bindtextdomain( "hardinfo", "/usr/share/locale" );
    textdomain( "hardinfo" );
    
    GSList *modules;

    DEBUG("HardInfo version " VERSION ". Debug version.");

    DEBUG("g_thread_init()");
    if (!g_thread_supported())
	g_thread_init(NULL);
................................................................................
    /* parse all command line parameters */
    parameters_init(&argc, &argv, &params);

    /* show version information and quit */
    if (params.show_version) {
	g_print("HardInfo version " VERSION "\n");
	g_print
	    (_("Copyright (C) 2003-2009 Leandro A. F. Pereira. See COPYING for details.\n\n"));

	g_print(_("Compile-time options:\n"
		"  Release version:   %s (%s)\n"
		"  BinReloc enabled:  %s\n"
		"  Data prefix:       %s\n"
		"  Library prefix:    %s\n"
		"  Compiled on:       %s %s (%s)\n"),
		RELEASE ? _("Yes") : "No (" VERSION ")", ARCH,
		ENABLE_BINRELOC ? _("Yes") : _("No"),
		PREFIX, LIBPREFIX, PLATFORM, KERNEL, HOSTNAME);

	DEBUG("  Debugging is enabled.");

	/* show also available modules */
	params.list_modules = TRUE;
    }

    /* initialize the binreloc library, so we can load program data */
    if (!binreloc_init(FALSE))
	g_error(_("Failed to find runtime data.\n\n"
		"\342\200\242 Is HardInfo correctly installed?\n"
		"\342\200\242 See if %s and %s exists and you have read permision."),
		PREFIX, LIBPREFIX);

    /* list all module names */
    if (params.list_modules) {
	g_print(_("Modules:\n"
		"%-20s%-15s%-12s\n"), _("File Name"), _("Name"), _("Version"));

	for (modules = modules_load_all(); modules;
	     modules = modules->next) {
	    ShellModule *module = (ShellModule *) modules->data;
	    ModuleAbout *ma = module_get_about(module);
	    gchar *name = g_path_get_basename(g_module_name(module->dll));

................................................................................
        xmlrpc_server_init();
        xmlrpc_server_start(NULL);
    } else if (params.run_benchmark) {
        gchar *result;
        
        result = module_call_method_param("benchmark::runBenchmark", params.run_benchmark);
        if (!result) {
          g_error(_("Unknown benchmark ``%s'' or libbenchmark.so not loaded"), params.run_benchmark);
        } else {
          g_print("%s\n", result);
          g_free(result);
        }
    } else if (params.gui_running) {
	/* initialize gui and start gtk+ main loop */
	icon_cache_init();
................................................................................
	report = report_create_from_module_list_format(modules,
						       params.
						       report_format);
	g_print("%s", report);

	g_free(report);
    } else {
        g_error(_("Don't know what to do. Exiting."));
    }

    moreinfo_shutdown();

    DEBUG("finished");
    return 0;
}

Changes to hardinfo/util.c.

92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

110
111
112
113
114
115


116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
...
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
...
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
...
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
...
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
...
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
...
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
...
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
...
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
....
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
....
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378

    minutes = seconds / 60;
    hours = minutes / 60;
    minutes %= 60;
    days = hours / 24;
    hours %= 24;

#define plural(x) ((x > 1) ? "s" : "")

    if (days < 1) {
	if (hours < 1) {
	    return g_strdup_printf("%d minute%s", minutes,
				   plural(minutes));
	} else {
	    return g_strdup_printf("%d hour%s, %d minute%s",
				   hours,
				   plural(hours), minutes,
				   plural(minutes));

	}
    }

    return g_strdup_printf("%d day%s, %d hour%s and %d minute%s",
			   days, plural(days), hours,
			   plural(hours), minutes, plural(minutes));


}

inline gchar *size_human_readable(gfloat size)
{
    if (size < KiB)
	return g_strdup_printf("%.1f B", size);
    if (size < MiB)
	return g_strdup_printf("%.1f KiB", size / KiB);
    if (size < GiB)
	return g_strdup_printf("%.1f MiB", size / MiB);

    return g_strdup_printf("%.1f GiB", size / GiB);
}

inline char *strend(gchar * str, gchar chr)
{
    if (!str)
	return NULL;

................................................................................
log_handler(const gchar * log_domain,
	    GLogLevelFlags log_level,
	    const gchar * message, gpointer user_data)
{
    if (!params.gui_running) {
	/* No GUI running: spit the message to the terminal */
	g_print("\n\n*** %s: %s\n\n",
		(log_level & G_LOG_FLAG_FATAL) ? "Error" : "Warning",
		message);
    } else {
	/* Hooray! We have a GUI running! */
	GtkWidget *dialog;

	dialog = gtk_message_dialog_new_with_markup(NULL, GTK_DIALOG_MODAL,
						    (log_level &
................................................................................
						     G_LOG_FLAG_FATAL) ?
						    GTK_MESSAGE_ERROR :
						    GTK_MESSAGE_WARNING,
						    GTK_BUTTONS_CLOSE,
						    "<big><b>%s</b></big>\n\n%s",
						    (log_level &
						     G_LOG_FLAG_FATAL) ?
						    "Fatal Error" :
						    "Warning", message);

	gtk_dialog_run(GTK_DIALOG(dialog));
	gtk_widget_destroy(dialog);
    }
}

void parameters_init(int *argc, char ***argv, ProgramParameters * param)
................................................................................

    static GOptionEntry options[] = {
	{
	 .long_name = "generate-report",
	 .short_name = 'r',
	 .arg = G_OPTION_ARG_NONE,
	 .arg_data = &create_report,
	 .description = "creates a report and prints to standard output"},
	{
	 .long_name = "report-format",
	 .short_name = 'f',
	 .arg = G_OPTION_ARG_STRING,
	 .arg_data = &report_format,
	 .description = "chooses a report format (text, html)"},
	{
	 .long_name = "run-benchmark",
	 .short_name = 'b',
	 .arg = G_OPTION_ARG_STRING,
	 .arg_data = &run_benchmark,
	 .description = "run benchmark; requires benchmark.so to be loaded"},
	{
	 .long_name = "list-modules",
	 .short_name = 'l',
	 .arg = G_OPTION_ARG_NONE,
	 .arg_data = &list_modules,
	 .description = "lists modules"},
	{
	 .long_name = "load-module",
	 .short_name = 'm',
	 .arg = G_OPTION_ARG_STRING_ARRAY,
	 .arg_data = &use_modules,
	 .description = "specify module to load"},
	{
	 .long_name = "autoload-deps",
	 .short_name = 'a',
	 .arg = G_OPTION_ARG_NONE,
	 .arg_data = &autoload_deps,
	 .description = "automatically load module dependencies"},
#ifdef HAS_LIBSOUP
	{
	 .long_name = "xmlrpc-server",
	 .short_name = 'x',
	 .arg = G_OPTION_ARG_NONE,
	 .arg_data = &run_xmlrpc_server,
	 .description = "run in XML-RPC server mode"},
#endif	/* HAS_LIBSOUP */
	{
	 .long_name = "version",
	 .short_name = 'v',
	 .arg = G_OPTION_ARG_NONE,
	 .arg_data = &show_version,
	 .description = "shows program version and quit"},
	{NULL}
    };
    GOptionContext *ctx;

    ctx = g_option_context_new("- System Profiler and Benchmark tool");
    g_option_context_set_ignore_unknown_options(ctx, FALSE);
    g_option_context_set_help_enabled(ctx, TRUE);

    g_option_context_add_main_entries(ctx, options, *(argv)[0]);
    g_option_context_parse(ctx, argc, argv, NULL);

    g_option_context_free(ctx);

    if (*argc >= 2) {
	g_print("Unrecognized arguments.\n"
		"Try ``%s --help'' for more information.\n", *(argv)[0]);
	exit(1);
    }

    param->create_report = create_report;
    param->report_format = REPORT_FORMAT_TEXT;
    param->show_version = show_version;
    param->list_modules = list_modules;
................................................................................
	}

	g_free(cmdline);
    	
    	browser = (gchar *)browsers[i++];
    } while (browser);

    g_warning("Couldn't find a Web browser to open URL %s.", url);
}

/* Copyright: Jens Låås, SLU 2002 */
gchar *strreplacechr(gchar * string, gchar * replace, gchar new_char)
{
    gchar *s;
    for (s = string; *s; s++)
................................................................................
	    g_module_symbol(module->dll, "hi_more_info",
			    (gpointer) & (entry->morefunc));
	    g_module_symbol(module->dll, "hi_get_field",
			    (gpointer) & (entry->fieldfunc));
	    g_module_symbol(module->dll, "hi_note_func",
			    (gpointer) & (entry->notefunc));

	    entry->name = entries[i].name;
	    entry->scan_func = entries[i].scan_callback;
	    entry->func = entries[i].callback;
	    entry->number = i;
	    entry->flags = entries[i].flags;

	    module->entries = g_slist_append(module->entries, entry);

................................................................................
		    if (params.gui_running) {
			GtkWidget *dialog;

			dialog = gtk_message_dialog_new(NULL,
							GTK_DIALOG_DESTROY_WITH_PARENT,
							GTK_MESSAGE_QUESTION,
							GTK_BUTTONS_NONE,
							"Module \"%s\" depends on module \"%s\", load it?",
							module->name,
							deps[i]);
			gtk_dialog_add_buttons(GTK_DIALOG(dialog),
					       GTK_STOCK_NO,
					       GTK_RESPONSE_REJECT,
					       GTK_STOCK_OPEN,
					       GTK_RESPONSE_ACCEPT, NULL);
................................................................................
			} else {
			    g_error("HardInfo cannot run without loading the additional module.");
			    exit(1);
			}

			gtk_widget_destroy(dialog);
		    } else {
			g_error("Module \"%s\" depends on module \"%s\".",
				module->name, deps[i]);
		    }
		}
	    }
	}
    }

................................................................................
    }

    modules = modules_check_deps(modules);

    if (g_slist_length(modules) == 0) {
	if (params.use_modules == NULL) {
	    g_error
		("No module could be loaded. Check permissions on \"%s\" and try again.",
		 params.path_lib);
	} else {
	    g_error
		("No module could be loaded. Please use hardinfo -l to list all avai"
		 "lable modules and try again with a valid module list.");

	}
    }

    modules_list = g_slist_sort(modules, module_cmp);
    return modules_list;
}
................................................................................

    shell_view_set_enabled(FALSE);

    for (entry = entries[0]; entry.name; entry = entries[++i]) {
	if (i == except_entry)
	    continue;

	text = g_strdup_printf("Scanning: %s...", entry.name);
	shell_status_update(text);
	g_free(text);

	if ((scan_callback = entry.scan_callback)) {
	    scan_callback(FALSE);
	}
    }

    shell_view_set_enabled(TRUE);
    shell_status_update("Done.");
}

void module_entry_scan_all(ModuleEntry * entries)
{
    module_entry_scan_all_except(entries, -1);
}

................................................................................
}

gchar *
moreinfo_lookup_with_prefix(gchar *prefix, gchar *key)
{
	if (G_UNLIKELY(!_moreinfo)) {
		DEBUG("moreinfo not initialized");
		return;
	}
	
	if (prefix) {
		gchar *lookup_key = g_strconcat(prefix, ":", key, NULL);
		gchar *result = g_hash_table_lookup(_moreinfo, lookup_key);
		g_free(lookup_key);
		return result;







<



|
<

|
<
<
<
>


<
|
<
<
>
>





|

|

|

|







 







|







 







|
|







 







|





|





|





|





|





|






|






|




|









|
|







 







|







 







|







 







|







 







|







 







|



|
|







 







|









|







 







|







92
93
94
95
96
97
98

99
100
101
102

103
104



105
106
107

108


109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
...
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
...
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
...
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
...
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
...
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
...
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
...
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
...
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
....
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
....
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373

    minutes = seconds / 60;
    hours = minutes / 60;
    minutes %= 60;
    days = hours / 24;
    hours %= 24;



    if (days < 1) {
	if (hours < 1) {
	    return g_strdup_printf(ngettext("%d minute","%d minutes",minutes),minutes);

	} else {
		return g_strdup_printf(ngettext("%d hour, ","%d hours, ",hours),hours,



                                  ngettext("%d minute","%d minutes",minutes),minutes);
	}
    }

	return g_strdup_printf(ngettext("%d day, ","%d days, ",days),days,


                           ngettext("%d hour and ","%d hours and ",hours),hours,                          
                           ngettext("%d minute","%d minutes",minutes),minutes);
}

inline gchar *size_human_readable(gfloat size)
{
    if (size < KiB)
	return g_strdup_printf(_("%.1f B"), size);
    if (size < MiB)
	return g_strdup_printf(_("%.1f KiB"), size / KiB);
    if (size < GiB)
	return g_strdup_printf(_("%.1f MiB"), size / MiB);

    return g_strdup_printf(_("%.1f GiB"), size / GiB);
}

inline char *strend(gchar * str, gchar chr)
{
    if (!str)
	return NULL;

................................................................................
log_handler(const gchar * log_domain,
	    GLogLevelFlags log_level,
	    const gchar * message, gpointer user_data)
{
    if (!params.gui_running) {
	/* No GUI running: spit the message to the terminal */
	g_print("\n\n*** %s: %s\n\n",
		(log_level & G_LOG_FLAG_FATAL) ? _("Error") : _("Warning"),
		message);
    } else {
	/* Hooray! We have a GUI running! */
	GtkWidget *dialog;

	dialog = gtk_message_dialog_new_with_markup(NULL, GTK_DIALOG_MODAL,
						    (log_level &
................................................................................
						     G_LOG_FLAG_FATAL) ?
						    GTK_MESSAGE_ERROR :
						    GTK_MESSAGE_WARNING,
						    GTK_BUTTONS_CLOSE,
						    "<big><b>%s</b></big>\n\n%s",
						    (log_level &
						     G_LOG_FLAG_FATAL) ?
						    _("Fatal Error") :
						    _("Warning"), message);

	gtk_dialog_run(GTK_DIALOG(dialog));
	gtk_widget_destroy(dialog);
    }
}

void parameters_init(int *argc, char ***argv, ProgramParameters * param)
................................................................................

    static GOptionEntry options[] = {
	{
	 .long_name = "generate-report",
	 .short_name = 'r',
	 .arg = G_OPTION_ARG_NONE,
	 .arg_data = &create_report,
	 .description = N_("creates a report and prints to standard output")},
	{
	 .long_name = "report-format",
	 .short_name = 'f',
	 .arg = G_OPTION_ARG_STRING,
	 .arg_data = &report_format,
	 .description = N_("chooses a report format (text, html)")},
	{
	 .long_name = "run-benchmark",
	 .short_name = 'b',
	 .arg = G_OPTION_ARG_STRING,
	 .arg_data = &run_benchmark,
	 .description = N_("run benchmark; requires benchmark.so to be loaded")},
	{
	 .long_name = "list-modules",
	 .short_name = 'l',
	 .arg = G_OPTION_ARG_NONE,
	 .arg_data = &list_modules,
	 .description = N_("lists modules")},
	{
	 .long_name = "load-module",
	 .short_name = 'm',
	 .arg = G_OPTION_ARG_STRING_ARRAY,
	 .arg_data = &use_modules,
	 .description = N_("specify module to load")},
	{
	 .long_name = "autoload-deps",
	 .short_name = 'a',
	 .arg = G_OPTION_ARG_NONE,
	 .arg_data = &autoload_deps,
	 .description = N_("automatically load module dependencies")},
#ifdef HAS_LIBSOUP
	{
	 .long_name = "xmlrpc-server",
	 .short_name = 'x',
	 .arg = G_OPTION_ARG_NONE,
	 .arg_data = &run_xmlrpc_server,
	 .description = N_("run in XML-RPC server mode")},
#endif	/* HAS_LIBSOUP */
	{
	 .long_name = "version",
	 .short_name = 'v',
	 .arg = G_OPTION_ARG_NONE,
	 .arg_data = &show_version,
	 .description = N_("shows program version and quit")},
	{NULL}
    };
    GOptionContext *ctx;

    ctx = g_option_context_new(_("- System Profiler and Benchmark tool"));
    g_option_context_set_ignore_unknown_options(ctx, FALSE);
    g_option_context_set_help_enabled(ctx, TRUE);

    g_option_context_add_main_entries(ctx, options, *(argv)[0]);
    g_option_context_parse(ctx, argc, argv, NULL);

    g_option_context_free(ctx);

    if (*argc >= 2) {
	g_print(_("Unrecognized arguments.\n"
		"Try ``%s --help'' for more information.\n"), *(argv)[0]);
	exit(1);
    }

    param->create_report = create_report;
    param->report_format = REPORT_FORMAT_TEXT;
    param->show_version = show_version;
    param->list_modules = list_modules;
................................................................................
	}

	g_free(cmdline);
    	
    	browser = (gchar *)browsers[i++];
    } while (browser);

    g_warning(_("Couldn't find a Web browser to open URL %s."), url);
}

/* Copyright: Jens Låås, SLU 2002 */
gchar *strreplacechr(gchar * string, gchar * replace, gchar new_char)
{
    gchar *s;
    for (s = string; *s; s++)
................................................................................
	    g_module_symbol(module->dll, "hi_more_info",
			    (gpointer) & (entry->morefunc));
	    g_module_symbol(module->dll, "hi_get_field",
			    (gpointer) & (entry->fieldfunc));
	    g_module_symbol(module->dll, "hi_note_func",
			    (gpointer) & (entry->notefunc));

	    entry->name = _(entries[i].name); //gettext unname N_() in computer.c line 67 etc...
	    entry->scan_func = entries[i].scan_callback;
	    entry->func = entries[i].callback;
	    entry->number = i;
	    entry->flags = entries[i].flags;

	    module->entries = g_slist_append(module->entries, entry);

................................................................................
		    if (params.gui_running) {
			GtkWidget *dialog;

			dialog = gtk_message_dialog_new(NULL,
							GTK_DIALOG_DESTROY_WITH_PARENT,
							GTK_MESSAGE_QUESTION,
							GTK_BUTTONS_NONE,
							_("Module \"%s\" depends on module \"%s\", load it?"),
							module->name,
							deps[i]);
			gtk_dialog_add_buttons(GTK_DIALOG(dialog),
					       GTK_STOCK_NO,
					       GTK_RESPONSE_REJECT,
					       GTK_STOCK_OPEN,
					       GTK_RESPONSE_ACCEPT, NULL);
................................................................................
			} else {
			    g_error("HardInfo cannot run without loading the additional module.");
			    exit(1);
			}

			gtk_widget_destroy(dialog);
		    } else {
			g_error(_("Module \"%s\" depends on module \"%s\"."),
				module->name, deps[i]);
		    }
		}
	    }
	}
    }

................................................................................
    }

    modules = modules_check_deps(modules);

    if (g_slist_length(modules) == 0) {
	if (params.use_modules == NULL) {
	    g_error
		(_("No module could be loaded. Check permissions on \"%s\" and try again."),
		 params.path_lib);
	} else {
	    g_error
		(_("No module could be loaded. Please use hardinfo -l to list all avai"
		 "lable modules and try again with a valid module list."));

	}
    }

    modules_list = g_slist_sort(modules, module_cmp);
    return modules_list;
}
................................................................................

    shell_view_set_enabled(FALSE);

    for (entry = entries[0]; entry.name; entry = entries[++i]) {
	if (i == except_entry)
	    continue;

	text = g_strdup_printf(_("Scanning: %s..."), _(entry.name));
	shell_status_update(text);
	g_free(text);

	if ((scan_callback = entry.scan_callback)) {
	    scan_callback(FALSE);
	}
    }

    shell_view_set_enabled(TRUE);
    shell_status_update(_("Done."));
}

void module_entry_scan_all(ModuleEntry * entries)
{
    module_entry_scan_all_except(entries, -1);
}

................................................................................
}

gchar *
moreinfo_lookup_with_prefix(gchar *prefix, gchar *key)
{
	if (G_UNLIKELY(!_moreinfo)) {
		DEBUG("moreinfo not initialized");
		return 0;
	}
	
	if (prefix) {
		gchar *lookup_key = g_strconcat(prefix, ":", key, NULL);
		gchar *result = g_hash_table_lookup(_moreinfo, lookup_key);
		g_free(lookup_key);
		return result;

Changes to includes/computer.h.

39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
    { DB_PREFIX "yellowdog-release",	"yd"   },
    { DB_PREFIX "sabayon-release",      "sbn"  },
    { DB_PREFIX "arch-release",         "arch" },
    { DB_PREFIX "enlisy-release",       "enlsy"},
    { DB_PREFIX "SuSE-release",		"suse" },
    { DB_PREFIX "sun-release",		"sun"  },
    { DB_PREFIX "zenwalk-version",	"zen"  },
    { DB_PREFIX "puppyversion",		"ppy"  },
    { DB_PREFIX "fatdog-version",	"fatdog"  },
    { DB_PREFIX "distro-release",	"fl"   },
    { DB_PREFIX "vine-release",         "vine" },
    { DB_PREFIX "PartedMagic-version",	"pmag" },
     /*
     * RedHat must be the *last* one to be checked, since
     * some distros (like Mandrake) includes a redhat-relase







|







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
    { DB_PREFIX "yellowdog-release",	"yd"   },
    { DB_PREFIX "sabayon-release",      "sbn"  },
    { DB_PREFIX "arch-release",         "arch" },
    { DB_PREFIX "enlisy-release",       "enlsy"},
    { DB_PREFIX "SuSE-release",		"suse" },
    { DB_PREFIX "sun-release",		"sun"  },
    { DB_PREFIX "zenwalk-version",	"zen"  },
    { DB_PREFIX "DISTRO_SPECS",		"ppy"  },
    { DB_PREFIX "fatdog-version",	"fatdog"  },
    { DB_PREFIX "distro-release",	"fl"   },
    { DB_PREFIX "vine-release",         "vine" },
    { DB_PREFIX "PartedMagic-version",	"pmag" },
     /*
     * RedHat must be the *last* one to be checked, since
     * some distros (like Mandrake) includes a redhat-relase

Changes to includes/devices.h.

60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
..
84
85
86
87
88
89
90
91
92
93
94
95
96
void scan_printers_do(void);

/* Sensors */
void scan_sensors_do(void);
void sensors_init(void);
void sensors_shutdown(void);

#ifdef ARCH_x86
/* SPD */
void scan_spd_do(void);
#endif /* ARCH_x86 */

extern gchar *battery_list;
extern gchar *input_icons;
extern gchar *input_list;
................................................................................
extern gchar *usb_list;
extern GHashTable *memlabels;
extern GHashTable *_pci_devices;
extern GHashTable *sensor_compute;
extern GHashTable *sensor_labels;
extern GModule *cups;

#ifdef ARCH_x86
extern gchar *dmi_info;
extern gchar *spd_info;
#endif

#endif /* __DEVICES_H__ */







|







 







|





60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
..
84
85
86
87
88
89
90
91
92
93
94
95
96
void scan_printers_do(void);

/* Sensors */
void scan_sensors_do(void);
void sensors_init(void);
void sensors_shutdown(void);

#if defined(ARCH_x86) || defined(ARCH_x86_64)
/* SPD */
void scan_spd_do(void);
#endif /* ARCH_x86 */

extern gchar *battery_list;
extern gchar *input_icons;
extern gchar *input_list;
................................................................................
extern gchar *usb_list;
extern GHashTable *memlabels;
extern GHashTable *_pci_devices;
extern GHashTable *sensor_compute;
extern GHashTable *sensor_labels;
extern GModule *cups;

#if defined(ARCH_x86) || defined(ARCH_x86_64)
extern gchar *dmi_info;
extern gchar *spd_info;
#endif

#endif /* __DEVICES_H__ */

Changes to includes/hardinfo.h.

19
20
21
22
23
24
25




26
27
28
29
30
31
32
#ifndef __HARDINFO_H__
#define __HARDINFO_H__

#include <gtk/gtk.h>
#include "config.h"
#include "shell.h"
#include "vendor.h"





typedef enum {
  MODULE_FLAG_NONE = 0,
  MODULE_FLAG_NO_REMOTE = 1<<0,
  MODULE_FLAG_HAS_HELP = 1<<1,
} ModuleEntryFlags;








>
>
>
>







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __HARDINFO_H__
#define __HARDINFO_H__

#include <gtk/gtk.h>
#include "config.h"
#include "shell.h"
#include "vendor.h"
#include <libintl.h>
#include <locale.h>
#define _(STRING)    gettext(STRING)
#define N_(STRING) (STRING)

typedef enum {
  MODULE_FLAG_NONE = 0,
  MODULE_FLAG_NO_REMOTE = 1<<0,
  MODULE_FLAG_HAS_HELP = 1<<1,
} ModuleEntryFlags;

Changes to includes/loadgraph.h.

20
21
22
23
24
25
26






27
28
29
30
31
32
33

#ifndef __LOADGRAPH_H__
#define __LOADGRAPH_H__

#include <stdlib.h>
#include <gtk/gtk.h>
#include <math.h>







typedef struct _LoadGraph LoadGraph;

typedef enum {
    LG_COLOR_GREEN = 0x4FB05A,
    LG_COLOR_BLUE  = 0x4F58B0,
    LG_COLOR_RED   = 0xB04F4F







>
>
>
>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

#ifndef __LOADGRAPH_H__
#define __LOADGRAPH_H__

#include <stdlib.h>
#include <gtk/gtk.h>
#include <math.h>
/*#include <libintl.h>
#include <locale.h>
#define _(STRING)    gettext(STRING)
#define N_(STRING) (STRING)*/



typedef struct _LoadGraph LoadGraph;

typedef enum {
    LG_COLOR_GREEN = 0x4FB05A,
    LG_COLOR_BLUE  = 0x4F58B0,
    LG_COLOR_RED   = 0xB04F4F

Changes to includes/menu.h.

15
16
17
18
19
20
21

22
23
24
25
 *    along with this program; if not, write to the Free Software
 *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 */
#ifndef __MENU_H__
#define __MENU_H__

#include <shell.h>


void	menu_init(Shell *shell);

#endif	/* __MENU_H__ */







>




15
16
17
18
19
20
21
22
23
24
25
26
 *    along with this program; if not, write to the Free Software
 *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 */
#ifndef __MENU_H__
#define __MENU_H__

#include <shell.h>


void	menu_init(Shell *shell);

#endif	/* __MENU_H__ */

Added includes/x86_64.



>
1
./x86

Changes to modules/benchmark.c.

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
...
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
...
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
...
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
...
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
...
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
...
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
gchar *callback_bfsh();
gchar *callback_fib();
gchar *callback_cryptohash();
gchar *callback_nqueens();
gchar *callback_gui();

static ModuleEntry entries[] = {
    {"CPU Blowfish", "blowfish.png", callback_bfsh, scan_bfsh, MODULE_FLAG_NONE},
    {"CPU CryptoHash", "cryptohash.png", callback_cryptohash, scan_cryptohash, MODULE_FLAG_NONE},
    {"CPU Fibonacci", "nautilus.png", callback_fib, scan_fib, MODULE_FLAG_NONE},
    {"CPU N-Queens", "nqueens.png", callback_nqueens, scan_nqueens, MODULE_FLAG_NONE},
    {"FPU FFT", "fft.png", callback_fft, scan_fft, MODULE_FLAG_NONE},
    {"FPU Raytracing", "raytrace.png", callback_raytr, scan_raytr, MODULE_FLAG_NONE},
    {"GPU Drawing", "module.png", callback_gui, scan_gui, MODULE_FLAG_NO_REMOTE},
    {NULL}
};

static gboolean sending_benchmark_results = FALSE;

typedef struct _ParallelBenchTask ParallelBenchTask;

................................................................................

    g_strfreev(machines);
    g_free(path);
    g_key_file_free(conf);

    if (result > 0.0f) {
        processor_frequency = module_call_method("devices::getProcessorFrequency");
        return_value = g_strdup_printf("[$ShellParam$]\n"
			       	   "Zebra=1\n"
			       	   "OrderType=%d\n"
	       			   "ViewType=3\n"
	       			   "ColumnTitle$Extra1=CPU Clock\n"
			       	   "ColumnTitle$Progress=Results\n"
			       	   "ColumnTitle$TextValue=CPU\n"
			       	   "ShowColumnHeaders=true\n"
	       			   "[%s]\n"
		       		   "<big><b>This Machine</b></big>=%.3f|%s MHz\n"
			       	   "%s", order_type, benchmark, result, processor_frequency, results);
        g_free(processor_frequency);
    } else {
        return_value = g_strdup_printf("[$ShellParam$]\n"
			       	   "Zebra=1\n"
			       	   "OrderType=%d\n"
	       			   "ViewType=3\n"
	       			   "ColumnTitle$Extra1=CPU Clock\n"
			       	   "ColumnTitle$Progress=Results\n"
			       	   "ColumnTitle$TextValue=CPU\n"
			       	   "ShowColumnHeaders=true\n"
	       			   "[%s]\n"
			       	   "%s", order_type, benchmark, results);
    }
    return return_value;
}



static gchar *benchmark_include_results_reverse(gdouble result,
................................................................................
       gint bench_stdout;
       GtkWidget *bench_dialog;
       GtkWidget *bench_image;
       BenchmarkDialog *benchmark_dialog;
       GSpawnFlags spawn_flags = G_SPAWN_STDERR_TO_DEV_NULL;
       gchar *bench_status;

       bench_status = g_strdup_printf("Benchmarking: <b>%s</b>.", entries[entry].name);

       shell_view_set_enabled(FALSE);
       shell_status_update(bench_status);
       
       g_free(bench_status);

       bench_image = icon_cache_get_image("benchmark.png");
       gtk_widget_show(bench_image);

       bench_dialog = gtk_message_dialog_new(GTK_WINDOW(shell_get_main_shell()->window),
                                             GTK_DIALOG_MODAL,
                                             GTK_MESSAGE_INFO,
                                             GTK_BUTTONS_NONE,
                                             "Benchmarking. Please do not move your mouse " \
                                             "or press any keys.");
       g_object_set_data(G_OBJECT(bench_dialog), "result", "0.0");
       gtk_dialog_add_buttons(GTK_DIALOG(bench_dialog),
                              "Cancel", GTK_RESPONSE_ACCEPT, NULL);
       gtk_message_dialog_set_image(GTK_MESSAGE_DIALOG(bench_dialog), bench_image);

       while (gtk_events_pending()) {
         gtk_main_iteration();
       }

       benchmark_dialog = g_new0(BenchmarkDialog, 1);
................................................................................
          bench_results[entry] = benchmark_dialog->result;

          g_io_channel_unref(channel);
          shell_view_set_enabled(TRUE);
          shell_status_set_enabled(TRUE);
          g_free(benchmark_dialog);

          shell_status_update("Done.");

          return;
       }
       
       gtk_widget_destroy(bench_dialog);
       g_free(benchmark_dialog);
       shell_status_set_enabled(TRUE);
       shell_status_update("Done.");
    }

    setpriority(PRIO_PROCESS, 0, -20);
    benchmark_function();
    setpriority(PRIO_PROCESS, 0, old_priority);
}

................................................................................
    SCAN_END();
}

const gchar *hi_note_func(gint entry)
{
    switch (entry) {
    case BENCHMARK_CRYPTOHASH:
	return "Results in MiB/second. Higher is better.";

    case BENCHMARK_GUI:
        return "Results in HIMarks. Higher is better.";

    case BENCHMARK_FFT:
    case BENCHMARK_RAYTRACE:
    case BENCHMARK_BLOWFISH:
    case BENCHMARK_FIB:
    case BENCHMARK_NQUEENS:
	return "Results in seconds. Lower is better.";
    }

    return NULL;
}

gchar *hi_module_get_name(void)
{
    return g_strdup("Benchmarks");
}

guchar hi_module_get_weight(void)
{
    return 240;
}

................................................................................
}

ModuleAbout *hi_module_get_about(void)
{
    static ModuleAbout ma[] = {
	{
	 .author = "Leandro A. F. Pereira",
	 .description = "Perform tasks and compare with other systems",
	 .version = VERSION,
	 .license = "GNU GPL version 2"}
    };

    return ma;
}

................................................................................
    return m;
}

void hi_module_init(void)
{
    static SyncEntry se[] = {
	{
	 .fancy_name = "Send benchmark results",
	 .name = "SendBenchmarkResults",
	 .save_to = NULL,
	 .get_data = get_benchmark_results},
	{
	 .fancy_name = "Receive benchmark results",
	 .name = "RecvBenchmarkResults",
	 .save_to = "benchmark.conf",
	 .get_data = NULL}
    };

    sync_manager_add_entry(&se[0]);
    sync_manager_add_entry(&se[1]);







|
|
|
|
|
|
|







 







|









|


|








|







 







|













|
|


|







 







|







|







 







|


|






|







|







 







|







 







|




|







43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
...
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
...
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
...
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
...
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
...
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
...
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
gchar *callback_bfsh();
gchar *callback_fib();
gchar *callback_cryptohash();
gchar *callback_nqueens();
gchar *callback_gui();

static ModuleEntry entries[] = {
    {N_("CPU Blowfish"), "blowfish.png", callback_bfsh, scan_bfsh, MODULE_FLAG_NONE},
    {N_("CPU CryptoHash"), "cryptohash.png", callback_cryptohash, scan_cryptohash, MODULE_FLAG_NONE},
    {N_("CPU Fibonacci"), "nautilus.png", callback_fib, scan_fib, MODULE_FLAG_NONE},
    {N_("CPU N-Queens"), "nqueens.png", callback_nqueens, scan_nqueens, MODULE_FLAG_NONE},
    {N_("FPU FFT"), "fft.png", callback_fft, scan_fft, MODULE_FLAG_NONE},
    {N_("FPU Raytracing"), "raytrace.png", callback_raytr, scan_raytr, MODULE_FLAG_NONE},
    {N_("GPU Drawing"), "module.png", callback_gui, scan_gui, MODULE_FLAG_NO_REMOTE},
    {NULL}
};

static gboolean sending_benchmark_results = FALSE;

typedef struct _ParallelBenchTask ParallelBenchTask;

................................................................................

    g_strfreev(machines);
    g_free(path);
    g_key_file_free(conf);

    if (result > 0.0f) {
        processor_frequency = module_call_method("devices::getProcessorFrequency");
        return_value = g_strdup_printf(_("[$ShellParam$]\n"
			       	   "Zebra=1\n"
			       	   "OrderType=%d\n"
	       			   "ViewType=3\n"
	       			   "ColumnTitle$Extra1=CPU Clock\n"
			       	   "ColumnTitle$Progress=Results\n"
			       	   "ColumnTitle$TextValue=CPU\n"
			       	   "ShowColumnHeaders=true\n"
	       			   "[%s]\n"
		       		   "<big><b>This Machine</b></big>=%.3f|%s MHz\n"
			       	   "%s"), order_type, benchmark, result, processor_frequency, results);
        g_free(processor_frequency);
    } else {
        return_value = g_strdup_printf(_("[$ShellParam$]\n"
			       	   "Zebra=1\n"
			       	   "OrderType=%d\n"
	       			   "ViewType=3\n"
	       			   "ColumnTitle$Extra1=CPU Clock\n"
			       	   "ColumnTitle$Progress=Results\n"
			       	   "ColumnTitle$TextValue=CPU\n"
			       	   "ShowColumnHeaders=true\n"
	       			   "[%s]\n"
			       	   "%s"), order_type, benchmark, results);
    }
    return return_value;
}



static gchar *benchmark_include_results_reverse(gdouble result,
................................................................................
       gint bench_stdout;
       GtkWidget *bench_dialog;
       GtkWidget *bench_image;
       BenchmarkDialog *benchmark_dialog;
       GSpawnFlags spawn_flags = G_SPAWN_STDERR_TO_DEV_NULL;
       gchar *bench_status;

       bench_status = g_strdup_printf(_("Benchmarking: <b>%s</b>."), entries[entry].name);

       shell_view_set_enabled(FALSE);
       shell_status_update(bench_status);
       
       g_free(bench_status);

       bench_image = icon_cache_get_image("benchmark.png");
       gtk_widget_show(bench_image);

       bench_dialog = gtk_message_dialog_new(GTK_WINDOW(shell_get_main_shell()->window),
                                             GTK_DIALOG_MODAL,
                                             GTK_MESSAGE_INFO,
                                             GTK_BUTTONS_NONE,
                                             _("Benchmarking. Please do not move your mouse " \
                                             "or press any keys."));
       g_object_set_data(G_OBJECT(bench_dialog), "result", "0.0");
       gtk_dialog_add_buttons(GTK_DIALOG(bench_dialog),
                              _("Cancel"), GTK_RESPONSE_ACCEPT, NULL);
       gtk_message_dialog_set_image(GTK_MESSAGE_DIALOG(bench_dialog), bench_image);

       while (gtk_events_pending()) {
         gtk_main_iteration();
       }

       benchmark_dialog = g_new0(BenchmarkDialog, 1);
................................................................................
          bench_results[entry] = benchmark_dialog->result;

          g_io_channel_unref(channel);
          shell_view_set_enabled(TRUE);
          shell_status_set_enabled(TRUE);
          g_free(benchmark_dialog);

          shell_status_update(_("Done."));

          return;
       }
       
       gtk_widget_destroy(bench_dialog);
       g_free(benchmark_dialog);
       shell_status_set_enabled(TRUE);
       shell_status_update(_("Done."));
    }

    setpriority(PRIO_PROCESS, 0, -20);
    benchmark_function();
    setpriority(PRIO_PROCESS, 0, old_priority);
}

................................................................................
    SCAN_END();
}

const gchar *hi_note_func(gint entry)
{
    switch (entry) {
    case BENCHMARK_CRYPTOHASH:
	return _("Results in MiB/second. Higher is better.");

    case BENCHMARK_GUI:
        return _("Results in HIMarks. Higher is better.");

    case BENCHMARK_FFT:
    case BENCHMARK_RAYTRACE:
    case BENCHMARK_BLOWFISH:
    case BENCHMARK_FIB:
    case BENCHMARK_NQUEENS:
	return _("Results in seconds. Lower is better.");
    }

    return NULL;
}

gchar *hi_module_get_name(void)
{
    return g_strdup(_("Benchmarks"));
}

guchar hi_module_get_weight(void)
{
    return 240;
}

................................................................................
}

ModuleAbout *hi_module_get_about(void)
{
    static ModuleAbout ma[] = {
	{
	 .author = "Leandro A. F. Pereira",
	 .description = N_("Perform tasks and compare with other systems"),
	 .version = VERSION,
	 .license = "GNU GPL version 2"}
    };

    return ma;
}

................................................................................
    return m;
}

void hi_module_init(void)
{
    static SyncEntry se[] = {
	{
	 .fancy_name = N_("Send benchmark results"),
	 .name = "SendBenchmarkResults",
	 .save_to = NULL,
	 .get_data = get_benchmark_results},
	{
	 .fancy_name = N_("Receive benchmark results"),
	 .name = "RecvBenchmarkResults",
	 .save_to = "benchmark.conf",
	 .get_data = NULL}
    };

    sync_manager_add_entry(&se[0]);
    sync_manager_add_entry(&se[1]);

Changes to modules/computer.c.

61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
..
92
93
94
95
96
97
98

99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
...
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206


207
208
209
210
211
212

213
214
215
216
217
218
219
220
221
222
223
224
225
...
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
...
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
...
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
...
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
...
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
...
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
...
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
...
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
void scan_groups(gboolean reload);
void scan_env_var(gboolean reload);
#if GLIB_CHECK_VERSION(2,14,0)
void scan_dev(gboolean reload);
#endif /* GLIB_CHECK_VERSION(2,14,0) */

static ModuleEntry entries[] = {
    {"Summary", "summary.png", callback_summary, scan_summary, MODULE_FLAG_NONE},
    {"Operating System", "os.png", callback_os, scan_os, MODULE_FLAG_NONE},
    {"Kernel Modules", "module.png", callback_modules, scan_modules, MODULE_FLAG_NONE},
    {"Boots", "boot.png", callback_boots, scan_boots, MODULE_FLAG_NONE},
    {"Languages", "language.png", callback_locales, scan_locales, MODULE_FLAG_NONE},
    {"Filesystems", "dev_removable.png", callback_fs, scan_fs, MODULE_FLAG_NONE},
    {"Display", "monitor.png", callback_display, scan_display, MODULE_FLAG_NONE},
    {"Environment Variables", "environment.png", callback_env_var, scan_env_var, MODULE_FLAG_NONE},
#if GLIB_CHECK_VERSION(2,14,0)
    {"Development", "devel.png", callback_dev, scan_dev, MODULE_FLAG_NONE},
#endif /* GLIB_CHECK_VERSION(2,14,0) */
    {"Users", "users.png", callback_users, scan_users, MODULE_FLAG_NONE},
    {"Groups", "users.png", callback_groups, scan_groups, MODULE_FLAG_NONE},
    {NULL},
};

gchar *module_list = NULL;
Computer *computer = NULL;

gchar *hi_more_info(gchar * entry)
................................................................................
	return g_strdup(info);

    return g_strdup_printf("[%s]", entry);
}

gchar *hi_get_field(gchar * field)
{

    gchar *tmp;

    if (g_str_equal(field, "Memory")) {
	MemoryInfo *mi = computer_get_memory();
	tmp = g_strdup_printf("%dMB (%dMB used)", mi->total, mi->used);
	g_free(mi);
    } else if (g_str_equal(field, "Uptime")) {
	tmp = computer_get_formatted_uptime();
    } else if (g_str_equal(field, "Date/Time")) {
	time_t t = time(NULL);

	tmp = g_new0(gchar, 64);
	strftime(tmp, 64, "%c", localtime(&t));
    } else if (g_str_equal(field, "Load Average")) {
	tmp = computer_get_formatted_loadavg();
    } else {
	tmp = g_strdup("");
    }

    return tmp;
}

void scan_summary(gboolean reload)
{
    SCAN_START();
    module_entry_scan_all_except(entries, 0);
................................................................................
    int i;
    struct {
       gchar *compiler_name;
       gchar *version_command;
       gchar *regex;
       gboolean stdout;
    } detect_lang[] = {
       { "Scripting Languages", NULL, FALSE },
       { "CPython", "python -V", "\\d+\\.\\d+\\.\\d+", FALSE },
       { "Perl", "perl -v", "\\d+\\.\\d+\\.\\d+", TRUE },
       { "PHP", "php --version", "\\d+\\.\\d+\\.\\S+", TRUE},
       { "Ruby", "ruby --version", "\\d+\\.\\d+\\.\\d+", TRUE },
       { "Bash", "bash --version", "\\d+\\.\\d+\\.\\S+", TRUE},
       { "Compilers", NULL, FALSE },
       { "C (GCC)", "gcc -v", "\\d+\\.\\d+\\.\\d+", FALSE },


       { "Java", "javac -version", "\\d+\\.\\d+\\.\\d+", FALSE },
       { "CSharp (Mono, old)", "mcs --version", "\\d+\\.\\d+\\.\\d+\\.\\d+", TRUE },
       { "CSharp (Mono)", "gmcs --version", "\\d+\\.\\d+\\.\\d+\\.\\d+", TRUE },
       { "Vala", "valac --version", "\\d+\\.\\d+\\.\\d+", TRUE },
       { "Haskell (GHC)", "ghc -v", "\\d+\\.\\d+\\.\\d+", FALSE },
       { "FreePascal", "fpc --version", "\\d+\\.\\d+\\.\\S+", TRUE },

       { "Tools", NULL, FALSE },
       { "make", "make --version", "\\d+\\.\\d+", TRUE },
       { "GDB", "gdb --version", "\\d+\\.\\S+", TRUE },
       { "strace", "strace -V", "\\d+\\.\\d+\\.\\d+", TRUE },
       { "valgrind", "valgrind --version", "\\d+\\.\\d+\\.\\S+", TRUE },
       { "QMake", "qmake --version", "\\d+\\.\\S+", TRUE},
    };
    
    g_free(dev_list);
    
    dev_list = g_strdup("");
    
    for (i = 0; i < G_N_ELEMENTS(detect_lang); i++) {
................................................................................
           g_free(output);
       }
       
       if (version) {
           dev_list = h_strdup_cprintf("%s=%s\n", dev_list, detect_lang[i].compiler_name, version);
           g_free(version);
       } else {
           dev_list = h_strdup_cprintf("%s=Not found\n", dev_list, detect_lang[i].compiler_name);
       }
       
       temp = g_strdup_printf("Detecting version: %s",
                              detect_lang[i].compiler_name);
       shell_status_update(temp);
       g_free(temp);
    }
    
    SCAN_END();
}

gchar *callback_dev()
{
    return g_strdup_printf("[$ShellParam$]\n"
			   "ColumnTitle$TextValue=Program\n"
			   "ColumnTitle$Value=Version\n"
			   "ShowColumnHeaders=true\n"
                           "%s", dev_list);
}
#endif /* GLIB_CHECK_VERSION(2,14,0) */

/* Table based off imvirt by Thomas Liske <liske@ibh.de>
   Copyright (c) 2008 IBH IT-Service GmbH under GPLv2. */
gchar *computer_get_virtualization()
{
................................................................................
              }
         }
         
    }
    
    DEBUG("no virtual machine detected; assuming physical machine");
    
    return g_strdup("Physical machine");
}

gchar *callback_summary()
{
    gchar *processor_name, *alsa_cards;
    gchar *input_devices, *printers;
    gchar *storage_devices, *summary;
................................................................................
    processor_name  = module_call_method("devices::getProcessorName");
    alsa_cards      = computer_get_alsacards(computer);
    input_devices   = module_call_method("devices::getInputDevices");
    printers        = module_call_method("devices::getPrinters");
    storage_devices = module_call_method("devices::getStorageDevices");
    virt            = computer_get_virtualization();

    summary = g_strdup_printf("[$ShellParam$]\n"
			      "UpdateInterval$Memory=1000\n"
			      "UpdateInterval$Date/Time=1000\n"
			      "#ReloadInterval=5000\n"
			      "[Computer]\n"
			      "Processor=%s\n"
			      "Memory=...\n"
			      "Machine Type=%s\n"
................................................................................
			      "[Display]\n"
			      "Resolution=%dx%d pixels\n"
			      "OpenGL Renderer=%s\n"
			      "X11 Vendor=%s\n"
			      "\n%s\n"
			      "[Input Devices]\n%s\n"
			      "\n%s\n"
			      "\n%s\n",
			      processor_name,
			      virt,
			      computer->os->distro,
			      computer->os->username,
			      computer->display->width,
			      computer->display->height,
			      computer->display->ogl_renderer,
................................................................................
    g_free(virt);

    return summary;
}

gchar *callback_os()
{
    return g_strdup_printf("[$ShellParam$]\n"
			   "UpdateInterval$Uptime=10000\n"
			   "UpdateInterval$Load Average=1000\n"
			   "[Version]\n"
			   "Kernel=%s\n"
			   "Version=%s\n"
			   "C Library=%s\n"
			   "Distribution=%s\n"
................................................................................
			   "Computer Name=%s\n"
			   "User Name=%s\n"
			   "#Language=%s\n"
			   "Home Directory=%s\n"
			   "Desktop Environment=%s\n"
			   "[Misc]\n"
			   "Uptime=...\n"
			   "Load Average=...",
			   computer->os->kernel,
			   computer->os->kernel_version,
			   computer->os->libc,
			   computer->os->distro,
			   computer->os->hostname,
			   computer->os->username,
			   computer->os->language,
			   computer->os->homedir, computer->os->desktop);
}

gchar *callback_modules()
{
    return g_strdup_printf("[Loaded Modules]\n"
			   "%s"
			   "[$ShellParam$]\n"
			   "ViewType=1\n"
			   "ColumnTitle$TextValue=Name\n"
			   "ColumnTitle$Value=Description\n"
			   "ShowColumnHeaders=true\n", module_list);
}

gchar *callback_boots()
{
    return g_strdup_printf("[$ShellParam$]\n"
			   "ColumnTitle$TextValue=Date & Time\n"
			   "ColumnTitle$Value=Kernel Version\n"
			   "ShowColumnHeaders=true\n"
			   "\n"
			   "%s", computer->os->boots);
}

gchar *callback_locales()
{
    return g_strdup_printf("[$ShellParam$]\n"
			   "ViewType=1\n"
			   "ColumnTitle$TextValue=Language Code\n"
			   "ColumnTitle$Value=Name\n"
			   "ShowColumnHeaders=true\n"
			   "[Available Languages]\n"
			   "%s", computer->os->languages);
}

gchar *callback_fs()
{
    return g_strdup_printf("[$ShellParam$]\n"
			   "ViewType=4\n"
			   "ReloadInterval=5000\n"
			   "Zebra=1\n"
			   "NormalizePercentage=false\n"
			   "ColumnTitle$Extra1=Mount Point\n"
			   "ColumnTitle$Progress=Usage\n"
			   "ColumnTitle$TextValue=Device\n"
			   "ShowColumnHeaders=true\n"
			   "[Mounted File Systems]\n%s\n", fs_list);
}

gchar *callback_display()
{
    return g_strdup_printf("[Display]\n"
			   "Resolution=%dx%d pixels\n"
			   "Vendor=%s\n"
			   "Version=%s\n"
			   "[Monitors]\n"
			   "%s"
			   "[Extensions]\n"
			   "%s"
			   "[OpenGL]\n"
			   "Vendor=%s\n"
			   "Renderer=%s\n"
			   "Version=%s\n"
			   "Direct Rendering=%s\n",
			   computer->display->width,
			   computer->display->height,
			   computer->display->vendor,
			   computer->display->version,
			   computer->display->monitors,
			   computer->display->extensions,
			   computer->display->ogl_vendor,
			   computer->display->ogl_renderer,
			   computer->display->ogl_version,
			   computer->display->dri ? "Yes" : "No");
}

gchar *callback_users()
{
    return g_strdup_printf("[$ShellParam$]\n"
			   "ReloadInterval=10000\n"
			   "ViewType=1\n"
			   "[Users]\n"
			   "%s\n", users);
}

gchar *callback_groups()
{
    return g_strdup_printf("[$ShellParam$]\n"
			   "ReloadInterval=10000\n"
			   "ColumnTitle$TextValue=Name\n"
			   "ColumnTitle$Value=Group ID\n"
			   "ShowColumnHeaders=true\n"
			   "[Groups]\n"
			   "%s\n", groups);
}

gchar *get_os_kernel(void)
{
    scan_os(FALSE);
    return g_strdup(computer->os->kernel);
}
................................................................................
ModuleEntry *hi_module_get_entries(void)
{
    return entries;
}

gchar *hi_module_get_name(void)
{
    return g_strdup("Computer");
}

guchar hi_module_get_weight(void)
{
    return 80;
}

................................................................................
}

ModuleAbout *hi_module_get_about(void)
{
    static ModuleAbout ma[] = {
	{
	 .author = "Leandro A. F. Pereira",
	 .description = "Gathers high-level computer information",
	 .version = VERSION,
	 .license = "GNU GPL version 2"}
    };

    return ma;
}








|
|
|
|
|
|
|
|

|

|
|







 







>




|













|







 







|
|
|
|
|
|
|
|
>
>
|
|
|
|
|
<
>
|
|
|
|
|
|







 







|


|










|



|







 







|







 







|







 







|







 







|







 







|












|





|




|




|




|





|




|








|




|











|









|













|





|







 







|







 







|







61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
..
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
...
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214

215
216
217
218
219
220
221
222
223
224
225
226
227
228
...
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
...
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
...
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
...
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
...
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
...
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
...
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
...
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
void scan_groups(gboolean reload);
void scan_env_var(gboolean reload);
#if GLIB_CHECK_VERSION(2,14,0)
void scan_dev(gboolean reload);
#endif /* GLIB_CHECK_VERSION(2,14,0) */

static ModuleEntry entries[] = {
    {N_("Summary"), "summary.png", callback_summary, scan_summary, MODULE_FLAG_NONE},
    {N_("Operating System"), "os.png", callback_os, scan_os, MODULE_FLAG_NONE},
    {N_("Kernel Modules"), "module.png", callback_modules, scan_modules, MODULE_FLAG_NONE},
    {N_("Boots"), "boot.png", callback_boots, scan_boots, MODULE_FLAG_NONE},
    {N_("Languages"), "language.png", callback_locales, scan_locales, MODULE_FLAG_NONE},
    {N_("Filesystems"), "dev_removable.png", callback_fs, scan_fs, MODULE_FLAG_NONE},
    {N_("Display"), "monitor.png", callback_display, scan_display, MODULE_FLAG_NONE},
    {N_("Environment Variables"), "environment.png", callback_env_var, scan_env_var, MODULE_FLAG_NONE},
#if GLIB_CHECK_VERSION(2,14,0)
    {N_("Development"), "devel.png", callback_dev, scan_dev, MODULE_FLAG_NONE},
#endif /* GLIB_CHECK_VERSION(2,14,0) */
    {N_("Users"), "users.png", callback_users, scan_users, MODULE_FLAG_NONE},
    {N_("Groups"), "users.png", callback_groups, scan_groups, MODULE_FLAG_NONE},
    {NULL},
};

gchar *module_list = NULL;
Computer *computer = NULL;

gchar *hi_more_info(gchar * entry)
................................................................................
	return g_strdup(info);

    return g_strdup_printf("[%s]", entry);
}

gchar *hi_get_field(gchar * field)
{
	setlocale(LC_ALL, "C"); //Load Average is not updated if locale is not C, swithc locale to C
    gchar *tmp;

    if (g_str_equal(field, "Memory")) {
	MemoryInfo *mi = computer_get_memory();
	tmp = g_strdup_printf(_("%dMB (%dMB used)"), mi->total, mi->used);
	g_free(mi);
    } else if (g_str_equal(field, "Uptime")) {
	tmp = computer_get_formatted_uptime();
    } else if (g_str_equal(field, "Date/Time")) {
	time_t t = time(NULL);

	tmp = g_new0(gchar, 64);
	strftime(tmp, 64, "%c", localtime(&t));
    } else if (g_str_equal(field, "Load Average")) {
	tmp = computer_get_formatted_loadavg();
    } else {
	tmp = g_strdup("");
    }
    setlocale(LC_ALL, "");// switch locale back to normal
    return tmp;
}

void scan_summary(gboolean reload)
{
    SCAN_START();
    module_entry_scan_all_except(entries, 0);
................................................................................
    int i;
    struct {
       gchar *compiler_name;
       gchar *version_command;
       gchar *regex;
       gboolean stdout;
    } detect_lang[] = {
       { N_("Scripting Languages"), NULL, FALSE },
       { N_("CPython"), "python -V", "\\d+\\.\\d+\\.\\d+", FALSE },
       { N_("Perl"), "perl -v", "\\d+\\.\\d+\\.\\d+", TRUE },
       { N_("PHP"), "php --version", "\\d+\\.\\d+\\.\\S+", TRUE},
       { N_("Ruby"), "ruby --version", "\\d+\\.\\d+\\.\\d+", TRUE },
       { N_("Bash"), "bash --version", "\\d+\\.\\d+\\.\\S+", TRUE},
       { N_("Compilers"), NULL, FALSE },
       { N_("C (GCC)"), "gcc -v", "\\d+\\.\\d+\\.\\d+", FALSE },
       { N_("C (Clang)"), "clang -v", "\\d+\\.\\d+", FALSE },
       { N_("D (dmd)"), "dmd --help", "\\d+\\.\\d+", TRUE },
       { N_("Java"), "javac -version", "\\d+\\.\\d+\\.\\d+", FALSE },
       { N_("CSharp (Mono, old)"), "mcs --version", "\\d+\\.\\d+\\.\\d+\\.\\d+", TRUE },
       { N_("CSharp (Mono)"), "gmcs --version", "\\d+\\.\\d+\\.\\d+\\.\\d+", TRUE },
       { N_("Vala"), "valac --version", "\\d+\\.\\d+\\.\\d+", TRUE },
       { N_("Haskell (GHC)"), "ghc -v", "\\d+\\.\\d+\\.\\d+", FALSE },

       { N_("FreePascal"), "fpc -iV", "\\d+\\.\\d+\\.?\\d*", TRUE },
       { N_("Tools"), NULL, FALSE },
       { N_("make"), "make --version", "\\d+\\.\\d+", TRUE },
       { N_("GDB"), "gdb --version", "\\d+\\.\\S+", TRUE },
       { N_("strace"), "strace -V", "\\d+\\.\\d+\\.?\\d*", TRUE },
       { N_("valgrind"), "valgrind --version", "\\d+\\.\\d+\\.\\S+", TRUE },
       { N_("QMake"), "qmake --version", "\\d+\\.\\S+", TRUE},
    };
    
    g_free(dev_list);
    
    dev_list = g_strdup("");
    
    for (i = 0; i < G_N_ELEMENTS(detect_lang); i++) {
................................................................................
           g_free(output);
       }
       
       if (version) {
           dev_list = h_strdup_cprintf("%s=%s\n", dev_list, detect_lang[i].compiler_name, version);
           g_free(version);
       } else {
           dev_list = h_strdup_cprintf(_("%s=Not found\n"), dev_list, detect_lang[i].compiler_name);
       }
       
       temp = g_strdup_printf(_("Detecting version: %s"),
                              detect_lang[i].compiler_name);
       shell_status_update(temp);
       g_free(temp);
    }
    
    SCAN_END();
}

gchar *callback_dev()
{
    return g_strdup_printf(_("[$ShellParam$]\n"
			   "ColumnTitle$TextValue=Program\n"
			   "ColumnTitle$Value=Version\n"
			   "ShowColumnHeaders=true\n"
                           "%s"), dev_list);
}
#endif /* GLIB_CHECK_VERSION(2,14,0) */

/* Table based off imvirt by Thomas Liske <liske@ibh.de>
   Copyright (c) 2008 IBH IT-Service GmbH under GPLv2. */
gchar *computer_get_virtualization()
{
................................................................................
              }
         }
         
    }
    
    DEBUG("no virtual machine detected; assuming physical machine");
    
    return g_strdup(_("Physical machine"));
}

gchar *callback_summary()
{
    gchar *processor_name, *alsa_cards;
    gchar *input_devices, *printers;
    gchar *storage_devices, *summary;
................................................................................
    processor_name  = module_call_method("devices::getProcessorName");
    alsa_cards      = computer_get_alsacards(computer);
    input_devices   = module_call_method("devices::getInputDevices");
    printers        = module_call_method("devices::getPrinters");
    storage_devices = module_call_method("devices::getStorageDevices");
    virt            = computer_get_virtualization();

    summary = g_strdup_printf(_("[$ShellParam$]\n"
			      "UpdateInterval$Memory=1000\n"
			      "UpdateInterval$Date/Time=1000\n"
			      "#ReloadInterval=5000\n"
			      "[Computer]\n"
			      "Processor=%s\n"
			      "Memory=...\n"
			      "Machine Type=%s\n"
................................................................................
			      "[Display]\n"
			      "Resolution=%dx%d pixels\n"
			      "OpenGL Renderer=%s\n"
			      "X11 Vendor=%s\n"
			      "\n%s\n"
			      "[Input Devices]\n%s\n"
			      "\n%s\n"
			      "\n%s\n"),
			      processor_name,
			      virt,
			      computer->os->distro,
			      computer->os->username,
			      computer->display->width,
			      computer->display->height,
			      computer->display->ogl_renderer,
................................................................................
    g_free(virt);

    return summary;
}

gchar *callback_os()
{
    return g_strdup_printf(_("[$ShellParam$]\n"
			   "UpdateInterval$Uptime=10000\n"
			   "UpdateInterval$Load Average=1000\n"
			   "[Version]\n"
			   "Kernel=%s\n"
			   "Version=%s\n"
			   "C Library=%s\n"
			   "Distribution=%s\n"
................................................................................
			   "Computer Name=%s\n"
			   "User Name=%s\n"
			   "#Language=%s\n"
			   "Home Directory=%s\n"
			   "Desktop Environment=%s\n"
			   "[Misc]\n"
			   "Uptime=...\n"
			   "Load Average=..."),
			   computer->os->kernel,
			   computer->os->kernel_version,
			   computer->os->libc,
			   computer->os->distro,
			   computer->os->hostname,
			   computer->os->username,
			   computer->os->language,
			   computer->os->homedir, computer->os->desktop);
}

gchar *callback_modules()
{
    return g_strdup_printf(_("[Loaded Modules]\n"
			   "%s"
			   "[$ShellParam$]\n"
			   "ViewType=1\n"
			   "ColumnTitle$TextValue=Name\n"
			   "ColumnTitle$Value=Description\n"
			   "ShowColumnHeaders=true\n"), module_list);
}

gchar *callback_boots()
{
    return g_strdup_printf(_("[$ShellParam$]\n"
			   "ColumnTitle$TextValue=Date & Time\n"
			   "ColumnTitle$Value=Kernel Version\n"
			   "ShowColumnHeaders=true\n"
			   "\n"
			   "%s"), computer->os->boots);
}

gchar *callback_locales()
{
    return g_strdup_printf(_("[$ShellParam$]\n"
			   "ViewType=1\n"
			   "ColumnTitle$TextValue=Language Code\n"
			   "ColumnTitle$Value=Name\n"
			   "ShowColumnHeaders=true\n"
			   "[Available Languages]\n"
			   "%s"), computer->os->languages);
}

gchar *callback_fs()
{
    return g_strdup_printf(_("[$ShellParam$]\n"
			   "ViewType=4\n"
			   "ReloadInterval=5000\n"
			   "Zebra=1\n"
			   "NormalizePercentage=false\n"
			   "ColumnTitle$Extra1=Mount Point\n"
			   "ColumnTitle$Progress=Usage\n"
			   "ColumnTitle$TextValue=Device\n"
			   "ShowColumnHeaders=true\n"
			   "[Mounted File Systems]\n%s\n"), fs_list);
}

gchar *callback_display()
{
    return g_strdup_printf(_("[Display]\n"
			   "Resolution=%dx%d pixels\n"
			   "Vendor=%s\n"
			   "Version=%s\n"
			   "[Monitors]\n"
			   "%s"
			   "[Extensions]\n"
			   "%s"
			   "[OpenGL]\n"
			   "Vendor=%s\n"
			   "Renderer=%s\n"
			   "Version=%s\n"
			   "Direct Rendering=%s\n"),
			   computer->display->width,
			   computer->display->height,
			   computer->display->vendor,
			   computer->display->version,
			   computer->display->monitors,
			   computer->display->extensions,
			   computer->display->ogl_vendor,
			   computer->display->ogl_renderer,
			   computer->display->ogl_version,
			   computer->display->dri ? _("Y_es") : _("No"));
}

gchar *callback_users()
{
    return g_strdup_printf("[$ShellParam$]\n"
			   "ReloadInterval=10000\n"
			   "ViewType=1\n"
			   "[Users]\n"
			   "%s\n", users);
}

gchar *callback_groups()
{
    return g_strdup_printf(_("[$ShellParam$]\n"
			   "ReloadInterval=10000\n"
			   "ColumnTitle$TextValue=Name\n"
			   "ColumnTitle$Value=Group ID\n"
			   "ShowColumnHeaders=true\n"
			   "[Groups]\n"
			   "%s\n"), groups);
}

gchar *get_os_kernel(void)
{
    scan_os(FALSE);
    return g_strdup(computer->os->kernel);
}
................................................................................
ModuleEntry *hi_module_get_entries(void)
{
    return entries;
}

gchar *hi_module_get_name(void)
{
    return g_strdup(_("Computer"));
}

guchar hi_module_get_weight(void)
{
    return 80;
}

................................................................................
}

ModuleAbout *hi_module_get_about(void)
{
    static ModuleAbout ma[] = {
	{
	 .author = "Leandro A. F. Pereira",
	 .description = N_("Gathers high-level computer information"),
	 .version = VERSION,
	 .license = "GNU GPL version 2"}
    };

    return ma;
}

Changes to modules/computer/alsa.c.

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "hardinfo.h"
#include "computer.h"

gchar *
computer_get_alsacards(Computer * computer)
{
    GSList *p;
    gchar *tmp = g_strdup("[Audio Devices]\n");
    gint n = 0;

    if (computer->alsa) {
	for (p = computer->alsa->cards; p; p = p->next) {
	    AlsaCard *ac = (AlsaCard *) p->data;

	    tmp = h_strdup_cprintf("Audio Adapter#%d=%s\n",
	                           tmp, ++n, ac->friendly_name);
	}
    }

    return tmp;
}








|






|







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "hardinfo.h"
#include "computer.h"

gchar *
computer_get_alsacards(Computer * computer)
{
    GSList *p;
    gchar *tmp = g_strdup(_("[Audio Devices]\n"));
    gint n = 0;

    if (computer->alsa) {
	for (p = computer->alsa->cards; p; p = p->next) {
	    AlsaCard *ac = (AlsaCard *) p->data;

	    tmp = h_strdup_cprintf(_("Audio Adapter#%d=%s\n"),
	                           tmp, ++n, ac->friendly_name);
	}
    }

    return tmp;
}

Changes to modules/computer/boots.c.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
    FILE *last;
    char buffer[256];

    scan_os(FALSE);

    if (!computer->os->boots)
      computer->os->boots = g_strdup("[Boots]\n");
    else
      return;
    
    last = popen("last", "r");
    if (last) {
      while (fgets(buffer, 256, last)) {
        if (strstr(buffer, "system boot")) {







|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
    FILE *last;
    char buffer[256];

    scan_os(FALSE);

    if (!computer->os->boots)
      computer->os->boots = g_strdup(_("[Boots]\n"));
    else
      return;
    
    last = popen("last", "r");
    if (last) {
      while (fgets(buffer, 256, last)) {
        if (strstr(buffer, "system boot")) {

Changes to modules/computer/display.c.

76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
...
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
	old = output_lines;
	while (*(output_lines++)) {
            gchar **tmp = g_strsplit(*output_lines, ":", 0);

            if (tmp[1] && tmp[0]) {
              tmp[1] = g_strchug(tmp[1]);

              get_str("vendor string", di->vendor);
              get_str("X.Org version", di->version);
              get_str("XFree86 version", di->version);

              if (g_str_has_prefix(tmp[0], "number of extensions")) {
                int n;
                
                di->extensions = g_strdup("");
                
                for (n = atoi(tmp[1]); n; n--) {
................................................................................
        
        di->monitors = NULL;
        for (i = 0; i < n_monitors; i++) {
            GdkRectangle rect;
            
            gdk_screen_get_monitor_geometry(screen, i, &rect);
            
            di->monitors = h_strdup_cprintf("Monitor %d=%dx%d pixels\n",
                                            di->monitors, i, rect.width, rect.height);
        }
      } else {
          di->monitors = "";
      }
}








|
|
|







 







|







76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
...
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
	old = output_lines;
	while (*(output_lines++)) {
            gchar **tmp = g_strsplit(*output_lines, ":", 0);

            if (tmp[1] && tmp[0]) {
              tmp[1] = g_strchug(tmp[1]);

              get_str(_("vendor string"), di->vendor);
              get_str(_("X.Org version"), di->version);
              get_str(_("XFree86 version"), di->version);

              if (g_str_has_prefix(tmp[0], "number of extensions")) {
                int n;
                
                di->extensions = g_strdup("");
                
                for (n = atoi(tmp[1]); n; n--) {
................................................................................
        
        di->monitors = NULL;
        for (i = 0; i < n_monitors; i++) {
            GdkRectangle rect;
            
            gdk_screen_get_monitor_geometry(screen, i, &rect);
            
            di->monitors = h_strdup_cprintf(_("Monitor %d=%dx%d pixels\n"),
                                            di->monitors, i, rect.width, rect.height);
        }
      } else {
          di->monitors = "";
      }
}

Changes to modules/computer/environment.c.

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
    SCAN_START();
    
    gchar **envlist;
    gint i;
    
    g_free(_env);
    
    _env = g_strdup("[Environment Variables]\n");
    for (i = 0, envlist = g_listenv(); envlist[i]; i++) {
      _env = h_strdup_cprintf("%s=%s\n", _env,
                              envlist[i], g_getenv(envlist[i]));
    }
    g_strfreev(envlist);
    
    SCAN_END();
}

gchar *callback_env_var(void)
{
    return g_strdup(_env);
}







|













25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
    SCAN_START();
    
    gchar **envlist;
    gint i;
    
    g_free(_env);
    
    _env = g_strdup(_("[Environment Variables]\n"));
    for (i = 0, envlist = g_listenv(); envlist[i]; i++) {
      _env = h_strdup_cprintf("%s=%s\n", _env,
                              envlist[i], g_getenv(envlist[i]));
    }
    g_strfreev(envlist);
    
    SCAN_END();
}

gchar *callback_env_var(void)
{
    return g_strdup(_env);
}

Changes to modules/computer/loadavg.c.

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
}

gchar *
computer_get_formatted_loadavg()
{
    LoadInfo *li;
    gchar *tmp;

    li = computer_get_loadinfo();

    tmp =
	g_strdup_printf("%.2f, %.2f, %.2f", li->load1, li->load5,
			li->load15);

    g_free(li);
    return tmp;
}







<









34
35
36
37
38
39
40

41
42
43
44
45
46
47
48
49
}

gchar *
computer_get_formatted_loadavg()
{
    LoadInfo *li;
    gchar *tmp;

    li = computer_get_loadinfo();

    tmp =
	g_strdup_printf("%.2f, %.2f, %.2f", li->load1, li->load5,
			li->load15);

    g_free(li);
    return tmp;
}

Changes to modules/computer/os.c.

42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
..
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
..
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
...
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
...
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
...
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
    tmp = strstr(buf, "version ");
    if (!tmp) goto err;

    p = strchr(tmp, ',');
    if (p) *p = '\0';
    else goto err;

    return g_strdup_printf("GNU C Library version %s (%sstable)",
                           strchr(tmp, ' ') + 1,
                           strstr(buf, " stable ") ? "" : "un");
  err:
    return g_strdup("Unknown");
}

#include <gdk/gdkx.h>

void
detect_desktop_environment(OperatingSystem * os)
{
................................................................................
    if (tmp) {
	/* FIXME: this might not be true, as the gnome-panel in path
	   may not be the one that's running.
	   see where the user's running panel is and run *that* to
	   obtain the version. */
	version = popen("gnome-about --gnome-version", "r");
	if (version) {
	    (void)fscanf(version, "Version: %s", vers);
	    if (pclose(version))
	        goto unknown;
	} else {
	    goto unknown;
	}

	os->desktop = g_strdup_printf("GNOME %s", vers);
................................................................................

	os->desktop = g_strdup_printf("KDE %s", vers);
    } else {
      unknown:
        os->desktop = NULL;
        
	if (!g_getenv("DISPLAY")) {
	    os->desktop = g_strdup("Terminal");
	} else {
            GdkScreen *screen = gdk_screen_get_default();

            if (screen && GDK_IS_SCREEN(screen)) {
              const gchar *windowman;

              windowman = gdk_x11_screen_get_window_manager_name(screen);
................................................................................
                  if ((tmp = g_getenv("DESKTOP_SESSION")) && !g_str_equal(os->desktop, tmp)) {
                      g_free(os->desktop);
                      os->desktop = g_strdup(tmp);
                  }
              }

              if (!os->desktop) {
                  os->desktop = g_strdup_printf("Unknown (Window Manager: %s)",
                                                windowman);
              }
            } else {
                  os->desktop = g_strdup("Unknown");
            }
	}
    }
}

OperatingSystem *
computer_get_os(void)
................................................................................
    } else if (g_file_test("/etc/arch-release", G_FILE_TEST_EXISTS)) {
        os->distrocode = g_strdup("arch");
        os->distro = g_strdup("Arch Linux");
    } else {
        for (i = 0;; i++) {
            if (distro_db[i].file == NULL) {
                os->distrocode = g_strdup("unk");
                os->distro = g_strdup("Unknown distribution");
                break;
            }

            if (g_file_test(distro_db[i].file, G_FILE_TEST_EXISTS)) {
                FILE *distro_ver;
                char buf[128];

................................................................................
                    } else {
                        os->distro = g_strdup(buf);
                    }
                }

                if (g_str_equal(distro_db[i].codename, "ppy")) {
                  gchar *tmp;
                    tmp = g_strdup_printf("Puppy Linux %.2f", atof(os->distro) / 100.0);
                  g_free(os->distro);
                  os->distro = tmp;
                }

                if (g_str_equal(distro_db[i].codename, "fatdog")) {
                  gchar *tmp;
                    tmp = g_strdup_printf("Fatdog64 [%.10s]", os->distro);







|

|

|







 







|







 







|







 







|



|







 







|







 







|







42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
..
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
..
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
...
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
...
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
...
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
    tmp = strstr(buf, "version ");
    if (!tmp) goto err;

    p = strchr(tmp, ',');
    if (p) *p = '\0';
    else goto err;

    return g_strdup_printf(_("GNU C Library version %s (%sstable)"),
                           strchr(tmp, ' ') + 1,
                           strstr(buf, " stable ") ? "" : _("un"));
  err:
    return g_strdup(_("Unknown"));
}

#include <gdk/gdkx.h>

void
detect_desktop_environment(OperatingSystem * os)
{
................................................................................
    if (tmp) {
	/* FIXME: this might not be true, as the gnome-panel in path
	   may not be the one that's running.
	   see where the user's running panel is and run *that* to
	   obtain the version. */
	version = popen("gnome-about --gnome-version", "r");
	if (version) {
	    (void)fscanf(version, _("Version: %s"), vers);
	    if (pclose(version))
	        goto unknown;
	} else {
	    goto unknown;
	}

	os->desktop = g_strdup_printf("GNOME %s", vers);
................................................................................

	os->desktop = g_strdup_printf("KDE %s", vers);
    } else {
      unknown:
        os->desktop = NULL;
        
	if (!g_getenv("DISPLAY")) {
	    os->desktop = g_strdup(_("Terminal"));
	} else {
            GdkScreen *screen = gdk_screen_get_default();

            if (screen && GDK_IS_SCREEN(screen)) {
              const gchar *windowman;

              windowman = gdk_x11_screen_get_window_manager_name(screen);
................................................................................
                  if ((tmp = g_getenv("DESKTOP_SESSION")) && !g_str_equal(os->desktop, tmp)) {
                      g_free(os->desktop);
                      os->desktop = g_strdup(tmp);
                  }
              }

              if (!os->desktop) {
                  os->desktop = g_strdup_printf(_("Unknown (Window Manager: %s)"),
                                                windowman);
              }
            } else {
                  os->desktop = g_strdup(_("Unknown"));
            }
	}
    }
}

OperatingSystem *
computer_get_os(void)
................................................................................
    } else if (g_file_test("/etc/arch-release", G_FILE_TEST_EXISTS)) {
        os->distrocode = g_strdup("arch");
        os->distro = g_strdup("Arch Linux");
    } else {
        for (i = 0;; i++) {
            if (distro_db[i].file == NULL) {
                os->distrocode = g_strdup("unk");
                os->distro = g_strdup(_("Unknown distribution"));
                break;
            }

            if (g_file_test(distro_db[i].file, G_FILE_TEST_EXISTS)) {
                FILE *distro_ver;
                char buf[128];

................................................................................
                    } else {
                        os->distro = g_strdup(buf);
                    }
                }

                if (g_str_equal(distro_db[i].codename, "ppy")) {
                  gchar *tmp;
                    tmp = g_strdup_printf("Puppy Linux");
                  g_free(os->distro);
                  os->distro = tmp;
                }

                if (g_str_equal(distro_db[i].codename, "fatdog")) {
                  gchar *tmp;
                    tmp = g_strdup_printf("Fatdog64 [%.10s]", os->distro);

Changes to modules/devices.c.

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
..
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
...
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
...
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
...
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
...
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
...
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
...
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
...
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
gchar *callback_battery();
gchar *callback_pci();
gchar *callback_sensors();
gchar *callback_printers();
gchar *callback_storage();
gchar *callback_input();
gchar *callback_usb();
#if defined(ARCH_x86)
gchar *callback_dmi();
gchar *callback_spd();
#endif
gchar *callback_device_resources();

void scan_processors(gboolean reload);
void scan_memory(gboolean reload);
................................................................................
void scan_battery(gboolean reload);
void scan_pci(gboolean reload);
void scan_sensors(gboolean reload);
void scan_printers(gboolean reload);
void scan_storage(gboolean reload);
void scan_input(gboolean reload);
void scan_usb(gboolean reload);
#if defined(ARCH_x86)
void scan_dmi(gboolean reload);
void scan_spd(gboolean reload);
#endif
void scan_device_resources(gboolean reload);

gchar *hi_more_info(gchar *entry);

static ModuleEntry entries[] = {
    {"Processor", "processor.png", callback_processors, scan_processors, MODULE_FLAG_NONE},
    {"Memory", "memory.png", callback_memory, scan_memory, MODULE_FLAG_NONE},
    {"PCI Devices", "devices.png", callback_pci, scan_pci, MODULE_FLAG_NONE},
    {"USB Devices", "usb.png", callback_usb, scan_usb, MODULE_FLAG_NONE},
    {"Printers", "printer.png", callback_printers, scan_printers, MODULE_FLAG_NONE},
    {"Battery", "battery.png", callback_battery, scan_battery, MODULE_FLAG_NONE},
    {"Sensors", "therm.png", callback_sensors, scan_sensors, MODULE_FLAG_NONE},
    {"Input Devices", "inputdevices.png", callback_input, scan_input, MODULE_FLAG_NONE},
    {"Storage", "hdd.png", callback_storage, scan_storage, MODULE_FLAG_NONE},
#if defined(ARCH_x86)
    {"DMI", "computer.png", callback_dmi, scan_dmi, MODULE_FLAG_NONE},
    {"Memory SPD", "memory.png", callback_spd, scan_spd, MODULE_FLAG_NONE},
#endif	/* x86 or x86_64 */
    {"Resources", "resources.png", callback_device_resources, scan_device_resources, MODULE_FLAG_NONE},
    {NULL}
};

static GSList *processors = NULL;
gchar *printer_list = NULL;
gchar *printer_icons = NULL;
gchar *pci_list = NULL;
................................................................................
{
    Processor *p;

    scan_processors(FALSE);

    p = (Processor *)processors->data;
    if (p->cpu_mhz == 0.0f) {
        return g_strdup("Unknown");
    } else {
        return g_strdup_printf("%.0f", p->cpu_mhz);
    }
}

gchar *get_pci_device_description(gchar *pci_id)
{
................................................................................
    
    return NULL;
}

gchar *get_memory_total(void)
{
    scan_memory(FALSE);
    return hi_more_info("Total Memory");    
}

gchar *get_motherboard(void)
{
    char *board_name, *board_vendor;

    scan_dmi(FALSE);
................................................................................

    board_name = moreinfo_lookup("DEV:DMI:Board:Name");
    board_vendor = moreinfo_lookup("DEV:DMI:Board:Vendor");
    
    if (board_name && board_vendor && *board_name && *board_vendor)
       return g_strconcat(board_vendor, " ", board_name, NULL);
    else if (board_name && *board_name)
       return g_strconcat(board_name, " (vendor unknown)", NULL);
    else if (board_vendor && *board_vendor)
       return g_strconcat(board_vendor, " (model unknown)", NULL);
    
    return g_strdup("Unknown");
}

ShellModuleMethod *hi_exported_methods(void)
{
    static ShellModuleMethod m[] = {
        {"getProcessorCount", get_processor_count},
	{"getProcessorName", get_processor_name},
................................................................................

    if (info)
	return g_strdup(info);

    return g_strdup(field);
}

#if defined(ARCH_x86)
void scan_dmi(gboolean reload)
{
    SCAN_START();
    __scan_dmi();
    SCAN_END();
}

................................................................................
}

gchar *callback_processors()
{
    return processor_get_info(processors);
}

#if defined(ARCH_x86)
gchar *callback_dmi()
{
    return g_strdup(dmi_info);
}

gchar *callback_spd()
{
................................................................................
ModuleEntry *hi_module_get_entries(void)
{
    return entries;
}

gchar *hi_module_get_name(void)
{
    return g_strdup("Devices");
}

guchar hi_module_get_weight(void)
{
    return 85;
}

void hi_module_init(void)
{
    if (!g_file_test("/usr/share/misc/pci.ids", G_FILE_TEST_EXISTS)) {
        static SyncEntry se = {
             .fancy_name = "Update PCI ID listing",
             .name = "GetPCIIds",
             .save_to = "pci.ids",
             .get_data = NULL
        };

        sync_manager_add_entry(&se);
    }

#if defined(ARCH_x86)
    {
      static SyncEntry se = {
        .fancy_name = "Update CPU feature database",
        .name = "RecvCPUFlags",
        .save_to = "cpuflags.conf",
        .get_data = NULL
      };
      
      sync_manager_add_entry(&se);
    }
................................................................................
}

ModuleAbout *hi_module_get_about(void)
{
    static ModuleAbout ma[] = {
	{
	 .author = "Leandro A. F. Pereira",
	 .description = "Gathers information about hardware devices",
	 .version = VERSION,
	 .license = "GNU GPL version 2"}
    };

    return ma;
}

gchar **hi_module_get_dependencies(void)
{
    static gchar *deps[] = { "computer.so", NULL };

    return deps;
}







|







 







|








|
|
|
|
|
|
|
|
|
|
|
|

|







 







|







 







|







 







|

|

|







 







|







 







|







 







|











|








|


|







 







|













43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
..
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
...
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
...
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
...
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
...
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
...
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
...
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
...
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
gchar *callback_battery();
gchar *callback_pci();
gchar *callback_sensors();
gchar *callback_printers();
gchar *callback_storage();
gchar *callback_input();
gchar *callback_usb();
#if defined(ARCH_x86) || defined(ARCH_x86_64)
gchar *callback_dmi();
gchar *callback_spd();
#endif
gchar *callback_device_resources();

void scan_processors(gboolean reload);
void scan_memory(gboolean reload);
................................................................................
void scan_battery(gboolean reload);
void scan_pci(gboolean reload);
void scan_sensors(gboolean reload);
void scan_printers(gboolean reload);
void scan_storage(gboolean reload);
void scan_input(gboolean reload);
void scan_usb(gboolean reload);
#if defined(ARCH_x86) || defined(ARCH_x86_64)
void scan_dmi(gboolean reload);
void scan_spd(gboolean reload);
#endif
void scan_device_resources(gboolean reload);

gchar *hi_more_info(gchar *entry);

static ModuleEntry entries[] = {
    {N_("Processor"), "processor.png", callback_processors, scan_processors, MODULE_FLAG_NONE},
    {N_("Memory"), "memory.png", callback_memory, scan_memory, MODULE_FLAG_NONE},
    {N_("PCI Devices"), "devices.png", callback_pci, scan_pci, MODULE_FLAG_NONE},
    {N_("USB Devices"), "usb.png", callback_usb, scan_usb, MODULE_FLAG_NONE},
    {N_("Printers"), "printer.png", callback_printers, scan_printers, MODULE_FLAG_NONE},
    {N_("Battery"), "battery.png", callback_battery, scan_battery, MODULE_FLAG_NONE},
    {N_("Sensors"), "therm.png", callback_sensors, scan_sensors, MODULE_FLAG_NONE},
    {N_("Input Devices"), "inputdevices.png", callback_input, scan_input, MODULE_FLAG_NONE},
    {N_("Storage"), "hdd.png", callback_storage, scan_storage, MODULE_FLAG_NONE},
#if defined(ARCH_x86) || defined(ARCH_x86_64)
    {N_("DMI"), "computer.png", callback_dmi, scan_dmi, MODULE_FLAG_NONE},
    {N_("Memory SPD"), "memory.png", callback_spd, scan_spd, MODULE_FLAG_NONE},
#endif	/* x86 or x86_64 */
    {N_("Resources"), "resources.png", callback_device_resources, scan_device_resources, MODULE_FLAG_NONE},
    {NULL}
};

static GSList *processors = NULL;
gchar *printer_list = NULL;
gchar *printer_icons = NULL;
gchar *pci_list = NULL;
................................................................................
{
    Processor *p;

    scan_processors(FALSE);

    p = (Processor *)processors->data;
    if (p->cpu_mhz == 0.0f) {
        return g_strdup(N_("Unknown"));
    } else {
        return g_strdup_printf("%.0f", p->cpu_mhz);
    }
}

gchar *get_pci_device_description(gchar *pci_id)
{
................................................................................
    
    return NULL;
}

gchar *get_memory_total(void)
{
    scan_memory(FALSE);
    return hi_more_info(N_("Total Memory"));    
}

gchar *get_motherboard(void)
{
    char *board_name, *board_vendor;

    scan_dmi(FALSE);
................................................................................

    board_name = moreinfo_lookup("DEV:DMI:Board:Name");
    board_vendor = moreinfo_lookup("DEV:DMI:Board:Vendor");
    
    if (board_name && board_vendor && *board_name && *board_vendor)
       return g_strconcat(board_vendor, " ", board_name, NULL);
    else if (board_name && *board_name)
       return g_strconcat(board_name, _(" (vendor unknown)"), NULL);
    else if (board_vendor && *board_vendor)
       return g_strconcat(board_vendor, _(" (model unknown)"), NULL);
    
    return g_strdup(_("Unknown"));
}

ShellModuleMethod *hi_exported_methods(void)
{
    static ShellModuleMethod m[] = {
        {"getProcessorCount", get_processor_count},
	{"getProcessorName", get_processor_name},
................................................................................

    if (info)
	return g_strdup(info);

    return g_strdup(field);
}

#if defined(ARCH_x86) || defined(ARCH_x86_64)
void scan_dmi(gboolean reload)
{
    SCAN_START();
    __scan_dmi();
    SCAN_END();
}

................................................................................
}

gchar *callback_processors()
{
    return processor_get_info(processors);
}

#if defined(ARCH_x86) || defined(ARCH_x86_64)
gchar *callback_dmi()
{
    return g_strdup(dmi_info);
}

gchar *callback_spd()
{
................................................................................
ModuleEntry *hi_module_get_entries(void)
{
    return entries;
}

gchar *hi_module_get_name(void)
{
    return g_strdup(_("Devices"));
}

guchar hi_module_get_weight(void)
{
    return 85;
}

void hi_module_init(void)
{
    if (!g_file_test("/usr/share/misc/pci.ids", G_FILE_TEST_EXISTS)) {
        static SyncEntry se = {
             .fancy_name = N_("Update PCI ID listing"),
             .name = "GetPCIIds",
             .save_to = "pci.ids",
             .get_data = NULL
        };

        sync_manager_add_entry(&se);
    }

#if defined(ARCH_x86) || defined(ARCH_x86_64)
    {
      static SyncEntry se = {
        .fancy_name = N_("Update CPU feature database"),
        .name = "RecvCPUFlags",
        .save_to = "cpuflags.conf",
        .get_data = NULL
      };
      
      sync_manager_add_entry(&se);
    }
................................................................................
}

ModuleAbout *hi_module_get_about(void)
{
    static ModuleAbout ma[] = {
	{
	 .author = "Leandro A. F. Pereira",
	 .description = N_("Gathers information about hardware devices"),
	 .version = VERSION,
	 .license = "GNU GPL version 2"}
    };

    return ma;
}

gchar **hi_module_get_dependencies(void)
{
    static gchar *deps[] = { "computer.so", NULL };

    return deps;
}

Changes to modules/devices/battery.c.

174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
...
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
...
297
298
299
300
301
302
303
304
305
306
307
          
          if (g_str_equal(present, "yes")) {
            if (remaining && capacity)
               charge_rate = atof(remaining) / atof(capacity);
            else
               charge_rate = 0;

            battery_list = h_strdup_cprintf("\n[Battery: %s]\n"
                                           "State=%s (load: %s)\n"
                                           "Capacity=%s / %s (%.2f%%)\n"
                                           "Battery Technology=%s (%s)\n"
					   "Manufacturer=%s\n"
                                           "Model Number=%s\n"
                                           "Serial Number=%s\n",
                                           battery_list,
                                           entry,
                                           state, rate,
                                           remaining, capacity, charge_rate * 100.0,
                                           technology, type,
					   manufacturer,
                                           model,
................................................................................
            last_time = time(NULL);
        }
    } else {
        return;
    }

    if (stotal && sremaining) {
        battery_list = h_strdup_cprintf("\n[Battery (APM)]\n"
                                       "Charge=%d%%\n"
                                       "Remaining Charge=%s of %s\n"
                                       "Using=%s\n"
                                       "APM driver version=%s\n"
                                       "APM BIOS version=%s\n",
                                       battery_list,
                                       percentage,
                                       sremaining, stotal,
                                       ac_status[ac_bat],
                                       apm_drv_ver, apm_bios_ver);
    } else {
        battery_list = h_strdup_cprintf("\n[Battery (APM)]\n"
                                       "Charge=%d%%\n"
                                       "Using=%s\n"
                                       "APM driver version=%s\n"
                                       "APM BIOS version=%s\n",
                                       battery_list,
                                       percentage,
                                       ac_status[ac_bat],
                                       apm_drv_ver, apm_bios_ver);
    
    }
}
................................................................................
    __scan_battery_acpi();
    __scan_battery_apm();
    __scan_battery_apcupsd();
    
    if (*battery_list == '\0') {
        g_free(battery_list);
        
        battery_list = g_strdup("[No batteries]\n"
                                "No batteries found on this system=\n");
    }
}







|





|







 







|




|






|



|







 







|
|


174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
...
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
...
297
298
299
300
301
302
303
304
305
306
307
          
          if (g_str_equal(present, "yes")) {
            if (remaining && capacity)
               charge_rate = atof(remaining) / atof(capacity);
            else
               charge_rate = 0;

            battery_list = h_strdup_cprintf(_("\n[Battery: %s]\n"
                                           "State=%s (load: %s)\n"
                                           "Capacity=%s / %s (%.2f%%)\n"
                                           "Battery Technology=%s (%s)\n"
					   "Manufacturer=%s\n"
                                           "Model Number=%s\n"
                                           "Serial Number=%s\n"),
                                           battery_list,
                                           entry,
                                           state, rate,
                                           remaining, capacity, charge_rate * 100.0,
                                           technology, type,
					   manufacturer,
                                           model,
................................................................................
            last_time = time(NULL);
        }
    } else {
        return;
    }

    if (stotal && sremaining) {
        battery_list = h_strdup_cprintf(_("\n[Battery (APM)]\n"
                                       "Charge=%d%%\n"
                                       "Remaining Charge=%s of %s\n"
                                       "Using=%s\n"
                                       "APM driver version=%s\n"
                                       "APM BIOS version=%s\n"),
                                       battery_list,
                                       percentage,
                                       sremaining, stotal,
                                       ac_status[ac_bat],
                                       apm_drv_ver, apm_bios_ver);
    } else {
        battery_list = h_strdup_cprintf(_("\n[Battery (APM)]\n"
                                       "Charge=%d%%\n"
                                       "Using=%s\n"
                                       "APM driver version=%s\n"
                                       "APM BIOS version=%s\n"),
                                       battery_list,
                                       percentage,
                                       ac_status[ac_bat],
                                       apm_drv_ver, apm_bios_ver);
    
    }
}
................................................................................
    __scan_battery_acpi();
    __scan_battery_apm();
    __scan_battery_apcupsd();
    
    if (*battery_list == '\0') {
        g_free(battery_list);
        
        battery_list = g_strdup(_("[No batteries]\n"
                                "No batteries found on this system=\n"));
    }
}

Changes to modules/devices/printers.c.

74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
...
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
...
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
...
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
...
256
257
258
259
260
261
262
263
264
265
266
gchar *__cups_callback_ptype(gchar *strvalue)
{
  if (strvalue) {
    unsigned value = atoi(strvalue);
    gchar *output = g_strdup("\n");
    
    if (value & 0x0004)
      output = h_strdup_cprintf("\342\232\254 Can do black and white printing=\n", output);
    if (value & 0x0008)
      output = h_strdup_cprintf("\342\232\254 Can do color printing=\n", output);
    if (value & 0x0010)
      output = h_strdup_cprintf("\342\232\254 Can do duplexing=\n", output);
    if (value & 0x0020)
      output = h_strdup_cprintf("\342\232\254 Can do staple output=\n", output);
    if (value & 0x0040)
      output = h_strdup_cprintf("\342\232\254 Can do copies=\n", output);
    if (value & 0x0080)
      output = h_strdup_cprintf("\342\232\254 Can collate copies=\n", output);
    if (value & 0x80000)
      output = h_strdup_cprintf("\342\232\254 Printer is rejecting jobs=\n", output);
    if (value & 0x1000000)
      output = h_strdup_cprintf("\342\232\254 Printer was automatically discovered and added=\n", output);

    return output;
  } else {
    return g_strdup("Unknown");
  }
}

gchar *__cups_callback_state(gchar *value)
{
  if (!value) {
    return g_strdup("Unknown");
  }

  if (g_str_equal(value, "3")) {
    return g_strdup("Idle");
  } else if (g_str_equal(value, "4")) {
    return g_strdup("Printing a Job");
  } else if (g_str_equal(value, "5")) {
    return g_strdup("Stopped");
  } else {
    return g_strdup("Unknown");
  }
}

gchar *__cups_callback_state_change_time(gchar *value)
{
  struct tm tm;
  char buf[255];
................................................................................
  
  if (value) {
    strptime(value, "%s", &tm);
    strftime(buf, sizeof(buf), "%c", &tm);

    return g_strdup(buf);
  } else {
    return g_strdup("Unknown");
  }
}

gchar *__cups_callback_boolean(gchar *value)
{
  if (value) {
    return g_strdup(g_str_equal(value, "1") ? "Yes" : "No");
  } else {
    return g_strdup("Unknown");
  }
}

const struct {
  char *key, *name;
  gchar *(*callback)(gchar *value);
} cups_fields[] = {
................................................................................
    CUPSDest *dests;
    gchar *prn_id, *prn_moreinfo;

    g_free(printer_list);
    g_free(printer_icons);

    if (!cups_init) {
        __init_cups();
        
        printer_icons = g_strdup("");
        printer_list = g_strdup("[Printers]\n"
                                "No suitable CUPS library found=");
        return;
    }

    /* remove old devices from global device table */
    moreinfo_del_with_prefix("DEV:PRN");

    num_dests = cups_dests_get(&dests);
    if (num_dests > 0) {
	printer_list = g_strdup_printf("[Printers (CUPS)]\n");
        printer_icons = g_strdup("");
	for (i = 0; i < num_dests; i++) {
	    GHashTable *options;
	    
	    options = g_hash_table_new(g_str_hash, g_str_equal);
	    
	    for (j = 0; j < dests[i].num_options; j++) {
................................................................................
                if (cups_fields[j].callback) {
                  temp = cups_fields[j].callback(temp);
                } else {
                  if (temp) {
                    /* FIXME Do proper escaping */
                    temp = g_strdup(strreplacechr(temp, "&=", ' '));
                  } else {
                    temp = g_strdup("Unknown");
                  }
                }
                
                prn_moreinfo = h_strdup_cprintf("%s=%s\n",
                                                prn_moreinfo,
                                                cups_fields[j].name,
                                                temp);
................................................................................
            moreinfo_add_with_prefix("DEV", prn_id, prn_moreinfo);
            g_free(prn_id);
            g_hash_table_destroy(options);
	}
	
	cups_dests_free(num_dests, dests);
    } else {
	printer_list = g_strdup("[Printers]\n"
	                        "No printers found=\n");
    }
}







|

|

|

|

|

|

|

|



|






|



|

|

|

|







 







|






|

|







 







|


|
|








|







 







|







 







|
|


74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
...
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
...
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
...
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
...
256
257
258
259
260
261
262
263
264
265
266
gchar *__cups_callback_ptype(gchar *strvalue)
{
  if (strvalue) {
    unsigned value = atoi(strvalue);
    gchar *output = g_strdup("\n");
    
    if (value & 0x0004)
      output = h_strdup_cprintf(_("\342\232\254 Can do black and white printing=\n"), output);
    if (value & 0x0008)
      output = h_strdup_cprintf(_("\342\232\254 Can do color printing=\n"), output);
    if (value & 0x0010)
      output = h_strdup_cprintf(_("\342\232\254 Can do duplexing=\n"), output);
    if (value & 0x0020)
      output = h_strdup_cprintf(_("\342\232\254 Can do staple output=\n"), output);
    if (value & 0x0040)
      output = h_strdup_cprintf(_("\342\232\254 Can do copies=\n"), output);
    if (value & 0x0080)
      output = h_strdup_cprintf(_("\342\232\254 Can collate copies=\n"), output);
    if (value & 0x80000)
      output = h_strdup_cprintf(_("\342\232\254 Printer is rejecting jobs=\n"), output);
    if (value & 0x1000000)
      output = h_strdup_cprintf(_("\342\232\254 Printer was automatically discovered and added=\n"), output);

    return output;
  } else {
    return g_strdup(_("Unknown"));
  }
}

gchar *__cups_callback_state(gchar *value)
{
  if (!value) {
    return g_strdup(_("Unknown"));
  }

  if (g_str_equal(value, "3")) {
    return g_strdup(_("Idle"));
  } else if (g_str_equal(value, "4")) {
    return g_strdup(_("Printing a Job"));
  } else if (g_str_equal(value, "5")) {
    return g_strdup(_("Stopped"));
  } else {
    return g_strdup(_("Unknown"));
  }
}

gchar *__cups_callback_state_change_time(gchar *value)
{
  struct tm tm;
  char buf[255];
................................................................................
  
  if (value) {
    strptime(value, "%s", &tm);
    strftime(buf, sizeof(buf), "%c", &tm);

    return g_strdup(buf);
  } else {
    return g_strdup(_("Unknown"));
  }
}

gchar *__cups_callback_boolean(gchar *value)
{
  if (value) {
    return g_strdup(g_str_equal(value, "1") ? _("Yes") : _("No"));
  } else {
    return g_strdup(_("Unknown"));
  }
}

const struct {
  char *key, *name;
  gchar *(*callback)(gchar *value);
} cups_fields[] = {
................................................................................
    CUPSDest *dests;
    gchar *prn_id, *prn_moreinfo;

    g_free(printer_list);
    g_free(printer_icons);

    if (!cups_init) {
        init_cups();
        
        printer_icons = g_strdup("");
        printer_list = g_strdup(_("[Printers]\n"
                                "No suitable CUPS library found="));
        return;
    }

    /* remove old devices from global device table */
    moreinfo_del_with_prefix("DEV:PRN");

    num_dests = cups_dests_get(&dests);
    if (num_dests > 0) {
	printer_list = g_strdup_printf(_("[Printers (CUPS)]\n"));
        printer_icons = g_strdup("");
	for (i = 0; i < num_dests; i++) {
	    GHashTable *options;
	    
	    options = g_hash_table_new(g_str_hash, g_str_equal);
	    
	    for (j = 0; j < dests[i].num_options; j++) {
................................................................................
                if (cups_fields[j].callback) {
                  temp = cups_fields[j].callback(temp);
                } else {
                  if (temp) {
                    /* FIXME Do proper escaping */
                    temp = g_strdup(strreplacechr(temp, "&=", ' '));
                  } else {
                    temp = g_strdup(_("Unknown"));
                  }
                }
                
                prn_moreinfo = h_strdup_cprintf("%s=%s\n",
                                                prn_moreinfo,
                                                cups_fields[j].name,
                                                temp);
................................................................................
            moreinfo_add_with_prefix("DEV", prn_id, prn_moreinfo);
            g_free(prn_id);
            g_hash_table_destroy(options);
	}
	
	cups_dests_free(num_dests, dests);
    } else {
	printer_list = g_strdup(_("[Printers]\n"
	                        "No printers found=\n"));
    }
}

Changes to modules/devices/storage.c.

39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
...
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
...
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
...
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
...
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355

    /* remove old devices from global device table */
    moreinfo_del_with_prefix("DEV:SCSI");

    if (!g_file_test("/proc/scsi/scsi", G_FILE_TEST_EXISTS))
	return;

    scsi_storage_list = g_strdup("\n[SCSI Disks]\n");

    if ((proc_scsi = fopen("/proc/scsi/scsi", "r"))) {
        while (fgets(buffer, 256, proc_scsi)) {
            buf = g_strstrip(buffer);
            if (!strncmp(buf, "Host: scsi", 10)) {
                sscanf(buf,
                       "Host: scsi%d Channel: %d Id: %d Lun: %d",
................................................................................
                    }
                }
                
                gchar *devid = g_strdup_printf("SCSI%d", n);
                scsi_storage_list = h_strdup_cprintf("$%s$%s=\n", scsi_storage_list, devid, model);
                storage_icons = h_strdup_cprintf("Icon$%s$%s=%s.png\n", storage_icons, devid, model, icon);
                
                gchar *strhash = g_strdup_printf("[Device Information]\n"
                                                 "Model=%s\n", model);
                
                const gchar *url = vendor_get_url(model);
                if (url) {
                  strhash = h_strdup_cprintf("Vendor=%s (%s)\n",
                                             strhash,
                                             vendor_get_name(model),
                                             url);
                } else {
                  strhash = h_strdup_cprintf("Vendor=%s\n",
                                             strhash,
                                             vendor_get_name(model));
                }

                strhash = h_strdup_cprintf("Type=%s\n"
                                           "Revision=%s\n"
                                           "[SCSI Controller]\n"
                                           "Controller=scsi%d\n"
                                           "Channel=%d\n"
                                           "ID=%d\n" "LUN=%d\n",
                                           strhash,
                                           type,
                                           revision,
                                           scsi_controller,
                                           scsi_channel,
                                           scsi_id,
                                           scsi_lun);
................................................................................
	NULL;
    gint n = 0, i = 0, cache, nn = 0;
    gchar *capab = NULL, *speed = NULL, *driver = NULL, *ide_storage_list;

    /* remove old devices from global device table */
    moreinfo_del_with_prefix("DEV:IDE");
    
    ide_storage_list = g_strdup("\n[IDE Disks]\n");

    iface = 'a';
    for (i = 0; i <= 16; i++) {
	device = g_strdup_printf("/proc/ide/hd%c/model", iface);
	if (g_file_test(device, G_FILE_TEST_EXISTS)) {
	    gchar buf[128];

................................................................................
                                                       strstr(buf, "Does not") ? "No" : "Yes");
                           }
  	               } else if ((strstr(buf, "read") || strstr(buf, "write")) && strstr(buf, "kB/s")) {
  	                   speed = g_strconcat(speed ? speed : "",
  	                                       strreplacechr(g_strstrip(buf), ":", '='),
  	                                       "\n", NULL);
  	               } else if (strstr(buf, "Device seems to be")) {
  	                   driver = g_strdup_printf("Driver=%s\n", strchr(buf, ':') + 1);
  	               }
  	            }

  	            pclose(prcap);
                    g_timer_destroy(timer);
                }
	        
................................................................................

	    ide_storage_list = h_strdup_cprintf("$%s$%s=\n", ide_storage_list,
					 devid, model);
	    storage_icons = h_strdup_cprintf("Icon$%s$%s=%s.png\n", storage_icons, devid,
	                                  model, g_str_equal(media, "cdrom") ? \
	                                         "cdrom" : "hdd");
	    
	    gchar *strhash = g_strdup_printf("[Device Information]\n"
		                             "Model=%s\n",
					     model);
	    
	    const gchar *url = vendor_get_url(model);
	    
	    if (url) {
	      strhash = h_strdup_cprintf("Vendor=%s (%s)\n",
                                         strhash,
                                         vendor_get_name(model),
                                         url);
	    } else {
	      strhash = h_strdup_cprintf("Vendor=%s\n",
                                         strhash,
                                         vendor_get_name(model));
	    }
	    
            strhash = h_strdup_cprintf("Device Name=hd%c\n"
                                       "Media=%s\n"
                                       "Cache=%dkb\n",
                                       strhash,
                                       iface,
                                       media,
                                       cache);
            if (driver) {
                strhash = h_strdup_cprintf("%s\n", strhash, driver);
                
                g_free(driver);
                driver = NULL;
            }
            
	    if (pgeometry && lgeometry) {
		strhash = h_strdup_cprintf("[Geometry]\n"
					  "Physical=%s\n"
					  "Logical=%s\n",
					  strhash, pgeometry, lgeometry);

                g_free(pgeometry);
                pgeometry = NULL;
                g_free(lgeometry);
                lgeometry = NULL;
            }
            
            if (capab) {
                strhash = h_strdup_cprintf("[Capabilities]\n%s", strhash, capab);
                
                g_free(capab);
                capab = NULL;
            }
            
            if (speed) {
                strhash = h_strdup_cprintf("[Speeds]\n%s", strhash, speed);
                
                g_free(speed);
                speed = NULL;
            }
            
           moreinfo_add_with_prefix("DEV", devid, strhash);
           g_free(devid);







|







 







|
|



|




|




|




|







 







|







 







|







 







|
|





|




|




|

|












|

|









|






|







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
...
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
...
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
...
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
...
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355

    /* remove old devices from global device table */
    moreinfo_del_with_prefix("DEV:SCSI");

    if (!g_file_test("/proc/scsi/scsi", G_FILE_TEST_EXISTS))
	return;

    scsi_storage_list = g_strdup(_("\n[SCSI Disks]\n"));

    if ((proc_scsi = fopen("/proc/scsi/scsi", "r"))) {
        while (fgets(buffer, 256, proc_scsi)) {
            buf = g_strstrip(buffer);
            if (!strncmp(buf, "Host: scsi", 10)) {
                sscanf(buf,
                       "Host: scsi%d Channel: %d Id: %d Lun: %d",
................................................................................
                    }
                }
                
                gchar *devid = g_strdup_printf("SCSI%d", n);
                scsi_storage_list = h_strdup_cprintf("$%s$%s=\n", scsi_storage_list, devid, model);
                storage_icons = h_strdup_cprintf("Icon$%s$%s=%s.png\n", storage_icons, devid, model, icon);
                
                gchar *strhash = g_strdup_printf(_("[Device Information]\n"
                                                 "Model=%s\n"), model);
                
                const gchar *url = vendor_get_url(model);
                if (url) {
                  strhash = h_strdup_cprintf(_("Vendor=%s (%s)\n"),
                                             strhash,
                                             vendor_get_name(model),
                                             url);
                } else {
                  strhash = h_strdup_cprintf(_("Vendor=%s\n"),
                                             strhash,
                                             vendor_get_name(model));
                }

                strhash = h_strdup_cprintf(_("Type=%s\n"
                                           "Revision=%s\n"
                                           "[SCSI Controller]\n"
                                           "Controller=scsi%d\n"
                                           "Channel=%d\n"
                                           "ID=%d\n" "LUN=%d\n"),
                                           strhash,
                                           type,
                                           revision,
                                           scsi_controller,
                                           scsi_channel,
                                           scsi_id,
                                           scsi_lun);
................................................................................
	NULL;
    gint n = 0, i = 0, cache, nn = 0;
    gchar *capab = NULL, *speed = NULL, *driver = NULL, *ide_storage_list;

    /* remove old devices from global device table */
    moreinfo_del_with_prefix("DEV:IDE");
    
    ide_storage_list = g_strdup(_("\n[IDE Disks]\n"));

    iface = 'a';
    for (i = 0; i <= 16; i++) {
	device = g_strdup_printf("/proc/ide/hd%c/model", iface);
	if (g_file_test(device, G_FILE_TEST_EXISTS)) {
	    gchar buf[128];

................................................................................
                                                       strstr(buf, "Does not") ? "No" : "Yes");
                           }
  	               } else if ((strstr(buf, "read") || strstr(buf, "write")) && strstr(buf, "kB/s")) {
  	                   speed = g_strconcat(speed ? speed : "",
  	                                       strreplacechr(g_strstrip(buf), ":", '='),
  	                                       "\n", NULL);
  	               } else if (strstr(buf, "Device seems to be")) {
  	                   driver = g_strdup_printf(_("Driver=%s\n"), strchr(buf, ':') + 1);
  	               }
  	            }

  	            pclose(prcap);
                    g_timer_destroy(timer);
                }
	        
................................................................................

	    ide_storage_list = h_strdup_cprintf("$%s$%s=\n", ide_storage_list,
					 devid, model);
	    storage_icons = h_strdup_cprintf("Icon$%s$%s=%s.png\n", storage_icons, devid,
	                                  model, g_str_equal(media, "cdrom") ? \
	                                         "cdrom" : "hdd");
	    
	    gchar *strhash = g_strdup_printf(_("[Device Information]\n"
		                             "Model=%s\n"),
					     model);
	    
	    const gchar *url = vendor_get_url(model);
	    
	    if (url) {
	      strhash = h_strdup_cprintf(_("Vendor=%s (%s)\n"),
                                         strhash,
                                         vendor_get_name(model),
                                         url);
	    } else {
	      strhash = h_strdup_cprintf(_("Vendor=%s\n"),
                                         strhash,
                                         vendor_get_name(model));
	    }
	    
            strhash = h_strdup_cprintf(_("Device Name=hd%c\n"
                                       "Media=%s\n"
                                       "Cache=%dkb\n"),
                                       strhash,
                                       iface,
                                       media,
                                       cache);
            if (driver) {
                strhash = h_strdup_cprintf("%s\n", strhash, driver);
                
                g_free(driver);
                driver = NULL;
            }
            
	    if (pgeometry && lgeometry) {
		strhash = h_strdup_cprintf(_("[Geometry]\n"
					  "Physical=%s\n"
					  "Logical=%s\n"),
					  strhash, pgeometry, lgeometry);

                g_free(pgeometry);
                pgeometry = NULL;
                g_free(lgeometry);
                lgeometry = NULL;
            }
            
            if (capab) {
                strhash = h_strdup_cprintf(_("[Capabilities]\n%s"), strhash, capab);
                
                g_free(capab);
                capab = NULL;
            }
            
            if (speed) {
                strhash = h_strdup_cprintf(_("[Speeds]\n%s"), strhash, speed);
                
                g_free(speed);
                speed = NULL;
            }
            
           moreinfo_add_with_prefix("DEV", devid, strhash);
           g_free(devid);

Changes to modules/devices/usb.c.

309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329

330
331
332
333
334
335
336
...
341
342
343
344
345
346
347
















348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
			      vendor    ? g_strstrip(vendor)    : "Unknown",
			      max_power ? g_strstrip(max_power) : "Unknown",
			      version   ? g_strstrip(version)   : "Unknown",
			      dev_class ? g_strstrip(dev_class) : "Unknown",
			      vendor_id, product_id, bus);

    moreinfo_add_with_prefix("DEV", tmp, strhash);

    g_free(vendor);
    g_free(product);
    g_free(max_power);
    g_free(dev_class);
    g_free(version);
    g_free(tmp);
}

gboolean __scan_usb_lsusb(void)
{
    static gchar *lsusb_path = NULL;
    int usb_device_number = 0;
    FILE *lsusb;

    char buffer[512], *temp;

    if (!lsusb_path) {
        if (!(lsusb_path = find_program("lsusb"))) {
            DEBUG("lsusb not found");

            return FALSE;
................................................................................
    if (!(lsusb = popen(temp, "r"))) {
        DEBUG("cannot run %s", lsusb_path);

        g_free(temp);
        return FALSE;
    }

















    g_free(temp);

    if (usb_list) {
       moreinfo_del_with_prefix("DEV:USB");
	g_free(usb_list);
    }
    usb_list = g_strdup("[USB Devices]\n");

    while (fgets(buffer, sizeof(buffer), lsusb)) {
        if (g_str_has_prefix(buffer, "Bus ")) {
           __scan_usb_lsusb_add_device(buffer, lsusb, ++usb_device_number);
        }
    }
    
    pclose(lsusb);
    
    return usb_device_number > 0;
}

void __scan_usb(void)
{
    if (!__scan_usb_procfs()) {
	if (!__scan_usb_sysfs()) {
             __scan_usb_lsusb();
        }
    }
}







<













>







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>








|

|



|












309
310
311
312
313
314
315

316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
...
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
			      vendor    ? g_strstrip(vendor)    : "Unknown",
			      max_power ? g_strstrip(max_power) : "Unknown",
			      version   ? g_strstrip(version)   : "Unknown",
			      dev_class ? g_strstrip(dev_class) : "Unknown",
			      vendor_id, product_id, bus);

    moreinfo_add_with_prefix("DEV", tmp, strhash);

    g_free(vendor);
    g_free(product);
    g_free(max_power);
    g_free(dev_class);
    g_free(version);
    g_free(tmp);
}

gboolean __scan_usb_lsusb(void)
{
    static gchar *lsusb_path = NULL;
    int usb_device_number = 0;
    FILE *lsusb;
    FILE *temp_lsusb;
    char buffer[512], *temp;

    if (!lsusb_path) {
        if (!(lsusb_path = find_program("lsusb"))) {
            DEBUG("lsusb not found");

            return FALSE;
................................................................................
    if (!(lsusb = popen(temp, "r"))) {
        DEBUG("cannot run %s", lsusb_path);

        g_free(temp);
        return FALSE;
    }

    temp_lsusb = tmpfile();
    if (!temp_lsusb) {
        DEBUG("cannot create temporary file for lsusb");

        return FALSE;
    }

    while (fgets(buffer, sizeof(buffer), lsusb)) {
        fputs(buffer, temp_lsusb);
    }

    pclose(lsusb);

    // rewind file so we can read from it
    fseek(temp_lsusb, 0, SEEK_SET);

    g_free(temp);

    if (usb_list) {
       moreinfo_del_with_prefix("DEV:USB");
	g_free(usb_list);
    }
    usb_list = g_strdup("[USB Devices]\n");

    while (fgets(buffer, sizeof(buffer), temp_lsusb)) {
        if (g_str_has_prefix(buffer, "Bus ")) {
           __scan_usb_lsusb_add_device(buffer, temp_lsusb, ++usb_device_number);
        }
    }
    
    fclose(temp_lsusb);
    
    return usb_device_number > 0;
}

void __scan_usb(void)
{
    if (!__scan_usb_procfs()) {
	if (!__scan_usb_sysfs()) {
             __scan_usb_lsusb();
        }
    }
}

Changes to modules/devices/x86/processor.c.

138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
...
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
...
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
...
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
static gchar *__cache_get_info_as_string(Processor *processor)
{
    gchar *result = g_strdup("");
    GSList *cache_list;
    ProcessorCache *cache;
    
    if (!processor->cache) {
        return g_strdup("Cache information not available=\n");
    }
    
    for (cache_list = processor->cache; cache_list; cache_list = cache_list->next) {
        cache = (ProcessorCache *)cache_list->data;
        
        result = h_strdup_cprintf("Level %d (%s)=%d-way set-associative, %d sets, %dKB size\n",
                                  result,
................................................................................
gchar *processor_get_detailed_info(Processor * processor)
{
    gchar *tmp, *ret, *cache_info;

    tmp = processor_get_capabilities_from_flags(processor->flags);
    cache_info = __cache_get_info_as_string(processor);
    
    ret = g_strdup_printf("[Processor]\n"
			  "Name=%s\n"
			  "Family, model, stepping=%d, %d, %d (%s)\n"
			  "Vendor=%s\n"
			  "[Configuration]\n"
			  "Cache Size=%dkb\n"
			  "Frequency=%.2fMHz\n"
			  "BogoMIPS=%.2f\n"
................................................................................
			  "HLT Bug=%s\n"
			  "F00F Bug=%s\n"
			  "Coma Bug=%s\n"
			  "Has FPU=%s\n"
			  "[Cache]\n"
			  "%s\n"
			  "[Capabilities]\n"
			  "%s",
			  processor->model_name,
			  processor->family,
			  processor->model,
			  processor->stepping,
			  processor->strmodel,
			  vendor_get_name(processor->vendor_id),
			  processor->cache_size,
................................................................................
	GSList *l;

	tmp = g_strdup("");

	for (l = processors; l; l = l->next) {
	    processor = (Processor *) l->data;

	    tmp = g_strdup_printf("%s$CPU%d$%s=%.2fMHz\n",
				  tmp, processor->id,
				  processor->model_name,
				  processor->cpu_mhz);

	    hashkey = g_strdup_printf("CPU%d", processor->id);
	    moreinfo_add_with_prefix("DEV", hashkey,
				processor_get_detailed_info(processor));







|







 







|







 







|







 







|







138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
...
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
...
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
...
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
static gchar *__cache_get_info_as_string(Processor *processor)
{
    gchar *result = g_strdup("");
    GSList *cache_list;
    ProcessorCache *cache;
    
    if (!processor->cache) {
        return g_strdup(_("Cache information not available=\n"));
    }
    
    for (cache_list = processor->cache; cache_list; cache_list = cache_list->next) {
        cache = (ProcessorCache *)cache_list->data;
        
        result = h_strdup_cprintf("Level %d (%s)=%d-way set-associative, %d sets, %dKB size\n",
                                  result,
................................................................................
gchar *processor_get_detailed_info(Processor * processor)
{
    gchar *tmp, *ret, *cache_info;

    tmp = processor_get_capabilities_from_flags(processor->flags);
    cache_info = __cache_get_info_as_string(processor);
    
    ret = g_strdup_printf(_("[Processor]\n"
			  "Name=%s\n"
			  "Family, model, stepping=%d, %d, %d (%s)\n"
			  "Vendor=%s\n"
			  "[Configuration]\n"
			  "Cache Size=%dkb\n"
			  "Frequency=%.2fMHz\n"
			  "BogoMIPS=%.2f\n"
................................................................................
			  "HLT Bug=%s\n"
			  "F00F Bug=%s\n"
			  "Coma Bug=%s\n"
			  "Has FPU=%s\n"
			  "[Cache]\n"
			  "%s\n"
			  "[Capabilities]\n"
			  "%s"),
			  processor->model_name,
			  processor->family,
			  processor->model,
			  processor->stepping,
			  processor->strmodel,
			  vendor_get_name(processor->vendor_id),
			  processor->cache_size,
................................................................................
	GSList *l;

	tmp = g_strdup("");

	for (l = processors; l; l = l->next) {
	    processor = (Processor *) l->data;

	    tmp = g_strdup_printf(_("%s$CPU%d$%s=%.2fMHz\n"),
				  tmp, processor->id,
				  processor->model_name,
				  processor->cpu_mhz);

	    hashkey = g_strdup_printf("CPU%d", processor->id);
	    moreinfo_add_with_prefix("DEV", hashkey,
				processor_get_detailed_info(processor));

Added modules/devices/x86_64.



>
1
./x86

Changes to modules/network.c.

52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
...
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
...
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
...
425
426
427
428
429
430
431
432
433
434
435
436
437
438
void scan_dns(gboolean reload);
void scan_connections(gboolean reload);
void scan_shares(gboolean reload);
void scan_arp(gboolean reload);
void scan_statistics(gboolean reload);

static ModuleEntry entries[] = {
    {"Interfaces", "network-interface.png", callback_network, scan_network, MODULE_FLAG_NONE},
    {"IP Connections", "network-connections.png", callback_connections, scan_connections, MODULE_FLAG_NONE},
    {"Routing Table", "network.png", callback_route, scan_route, MODULE_FLAG_NONE},
    {"ARP Table", "module.png", callback_arp, scan_arp, MODULE_FLAG_NONE},
    {"DNS Servers", "dns.png", callback_dns, scan_dns, MODULE_FLAG_NONE},
    {"Statistics", "network-statistics.png", callback_statistics, scan_statistics, MODULE_FLAG_NONE},
    {"Shared Directories", "shares.png", callback_shares, scan_shares, MODULE_FLAG_NONE},
    {NULL},
};

void scan_shares(gboolean reload)
{
    SCAN_START();
    scan_samba();
................................................................................
    }
    
    SCAN_END();
}

gchar *callback_arp()
{
    return g_strdup_printf("[ARP Table]\n"
                           "%s\n"
                           "[$ShellParam$]\n"
                           "ReloadInterval=3000\n"
                           "ColumnTitle$TextValue=IP Address\n"
                           "ColumnTitle$Value=Interface\n"
                           "ColumnTitle$Extra1=MAC Address\n"
                           "ShowColumnHeaders=true\n",
                           __arp_table);
}

gchar *callback_shares()
{
    return g_strdup_printf("[SAMBA]\n"
			   "%s\n"
			   "[NFS]\n"
			   "%s", smb_shares_list, nfs_shares_list);
}

gchar *callback_dns()
{
    return g_strdup_printf("[Name servers]\n"
                           "%s\n"
                           "[$ShellParam$]\n"
                           "ColumnTitle$TextValue=IP Address\n"
                           "ColumnTitle$Value=Name\n"
                           "ShowColumnHeaders=true\n", __nameservers);
}

gchar *callback_connections()
{
    return g_strdup_printf("[Connections]\n"
                           "%s\n"
                           "[$ShellParam$]\n"
                           "ReloadInterval=3000\n"
                           "ColumnTitle$TextValue=Local Address\n"
                           "ColumnTitle$Value=Protocol\n"
                           "ColumnTitle$Extra1=Foreign Address\n"
                           "ColumnTitle$Extra2=State\n"
                           "ShowColumnHeaders=true\n",
                           __connections);
}

gchar *callback_network()
{
    return g_strdup_printf("%s\n"
                           "[$ShellParam$]\n"
			   "ReloadInterval=3000\n"
			   "ViewType=1\n"
			   "ColumnTitle$TextValue=Interface\n"
			   "ColumnTitle$Value=IP Address\n"
			   "ColumnTitle$Extra1=Sent\n"
			   "ColumnTitle$Extra2=Received\n"
			   "ShowColumnHeaders=true\n"
			   "%s",
			   network_interfaces,
			   network_icons);
}

gchar *callback_route()
{
    return g_strdup_printf("[IP routing table]\n"
                           "%s\n"
                           "[$ShellParam$]\n"
                           "ViewType=0\n"
                           "ReloadInterval=3000\n"
                           "ColumnTitle$TextValue=Destination / Gateway\n"
                           "ColumnTitle$Value=Interface\n"
                           "ColumnTitle$Extra1=Flags\n"
                           "ColumnTitle$Extra2=Mask\n"
                           "ShowColumnHeaders=true\n",
                           __routing_table);
}

gchar *callback_statistics()
{
    return g_strdup_printf("%s\n"
                           "[$ShellParam$]\n"
................................................................................
ModuleEntry *hi_module_get_entries(void)
{
    return entries;
}

gchar *hi_module_get_name(void)
{
    return g_strdup("Network");
}

guchar hi_module_get_weight(void)
{
    return 160;
}

................................................................................
}

ModuleAbout *hi_module_get_about(void)
{
    static ModuleAbout ma[] = {
	{
	 .author = "Leandro A. F. Pereira",
	 .description = "Gathers information about this computer's network connection",
	 .version = VERSION,
	 .license = "GNU GPL version 2"}
    };

    return ma;
}







|
|
|
|
|
|
|







 







|






|













|




|




|







|





|








|






|








|







 







|







 







|






52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
...
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
...
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
...
425
426
427
428
429
430
431
432
433
434
435
436
437
438
void scan_dns(gboolean reload);
void scan_connections(gboolean reload);
void scan_shares(gboolean reload);
void scan_arp(gboolean reload);
void scan_statistics(gboolean reload);

static ModuleEntry entries[] = {
    {N_("Interfaces"), "network-interface.png", callback_network, scan_network, MODULE_FLAG_NONE},
    {N_("IP Connections"), "network-connections.png", callback_connections, scan_connections, MODULE_FLAG_NONE},
    {N_("Routing Table"), "network.png", callback_route, scan_route, MODULE_FLAG_NONE},
    {N_("ARP Table"), "module.png", callback_arp, scan_arp, MODULE_FLAG_NONE},
    {N_("DNS Servers"), "dns.png", callback_dns, scan_dns, MODULE_FLAG_NONE},
    {N_("Statistics"), "network-statistics.png", callback_statistics, scan_statistics, MODULE_FLAG_NONE},
    {N_("Shared Directories"), "shares.png", callback_shares, scan_shares, MODULE_FLAG_NONE},
    {NULL},
};

void scan_shares(gboolean reload)
{
    SCAN_START();
    scan_samba();
................................................................................
    }
    
    SCAN_END();
}

gchar *callback_arp()
{
    return g_strdup_printf(_("[ARP Table]\n"
                           "%s\n"
                           "[$ShellParam$]\n"
                           "ReloadInterval=3000\n"
                           "ColumnTitle$TextValue=IP Address\n"
                           "ColumnTitle$Value=Interface\n"
                           "ColumnTitle$Extra1=MAC Address\n"
                           "ShowColumnHeaders=true\n"),
                           __arp_table);
}

gchar *callback_shares()
{
    return g_strdup_printf("[SAMBA]\n"
			   "%s\n"
			   "[NFS]\n"
			   "%s", smb_shares_list, nfs_shares_list);
}

gchar *callback_dns()
{
    return g_strdup_printf(_("[Name servers]\n"
                           "%s\n"
                           "[$ShellParam$]\n"
                           "ColumnTitle$TextValue=IP Address\n"
                           "ColumnTitle$Value=Name\n"
                           "ShowColumnHeaders=true\n"), __nameservers);
}

gchar *callback_connections()
{
    return g_strdup_printf(_("[Connections]\n"
                           "%s\n"
                           "[$ShellParam$]\n"
                           "ReloadInterval=3000\n"
                           "ColumnTitle$TextValue=Local Address\n"
                           "ColumnTitle$Value=Protocol\n"
                           "ColumnTitle$Extra1=Foreign Address\n"
                           "ColumnTitle$Extra2=State\n"
                           "ShowColumnHeaders=true\n"),
                           __connections);
}

gchar *callback_network()
{
    return g_strdup_printf(_("%s\n"
                           "[$ShellParam$]\n"
			   "ReloadInterval=3000\n"
			   "ViewType=1\n"
			   "ColumnTitle$TextValue=Interface\n"
			   "ColumnTitle$Value=IP Address\n"
			   "ColumnTitle$Extra1=Sent\n"
			   "ColumnTitle$Extra2=Received\n"
			   "ShowColumnHeaders=true\n"
			   "%s"),
			   network_interfaces,
			   network_icons);
}

gchar *callback_route()
{
    return g_strdup_printf(_("[IP routing table]\n"
                           "%s\n"
                           "[$ShellParam$]\n"
                           "ViewType=0\n"
                           "ReloadInterval=3000\n"
                           "ColumnTitle$TextValue=Destination / Gateway\n"
                           "ColumnTitle$Value=Interface\n"
                           "ColumnTitle$Extra1=Flags\n"
                           "ColumnTitle$Extra2=Mask\n"
                           "ShowColumnHeaders=true\n"),
                           __routing_table);
}

gchar *callback_statistics()
{
    return g_strdup_printf("%s\n"
                           "[$ShellParam$]\n"
................................................................................
ModuleEntry *hi_module_get_entries(void)
{
    return entries;
}

gchar *hi_module_get_name(void)
{
    return g_strdup(_("Network"));
}

guchar hi_module_get_weight(void)
{
    return 160;
}

................................................................................
}

ModuleAbout *hi_module_get_about(void)
{
    static ModuleAbout ma[] = {
	{
	 .author = "Leandro A. F. Pereira",
	 .description = N_("Gathers information about this computer's network connection"),
	 .version = VERSION,
	 .license = "GNU GPL version 2"}
    };

    return ma;
}

Added po/CMakeLists.txt.







>
>
>
1
2
3
include(Translations)
add_translations_directory("hardinfo")
add_translations_catalog("hardinfo" ../shell/ ../modules/ ../hardinfo/ ../remote/ ../help-viewer/ )

Added po/HOWTO.txt.





>
>
1
2
update .pot : make pot in build/
update .po files after .pot update : ?

Added po/es.po.

























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: hardinfo\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-05 17:29+0100\n"
"PO-Revision-Date: 2013-02-18 17:11-0300\n"
"Last-Translator: Fernando López <flopez@linti.unlp.edu.ar>\n"
"Language-Team: Fernando López <soportelihuen@linti.unlp.edu.ar>\n"
"Language: Spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Language: Spanish\n"

#: shell//report.c:492
msgid "Save File"
msgstr "Guardar archivo"

#: shell//report.c:616
msgid "Cannot create ReportContext. Programming bug?"
msgstr "No se puede crear ReportContext. ¿Error del programa?"

#: shell//report.c:634
msgid "Open the report with your web browser?"
msgstr "¿Abrir el reporte en el navegador web?"

#: shell//report.c:662
msgid "Generating report..."
msgstr "Generando reporte..."

#: shell//report.c:672
msgid "Report saved."
msgstr "Reporte guardado."

#: shell//report.c:674
msgid "Error while creating the report."
msgstr "Error creando el reporte."

#: shell//report.c:776
msgid "Generate Report"
msgstr "Generar reporte"

#: shell//report.c:793
msgid ""
"<big><b>Generate Report</b></big>\n"
"Please choose the information that you wish to view in your report:"
msgstr ""
"<big><b>Generar reporte</b></big>\n"
"Por favor elija la información que desea ver en el reporte:"

#: shell//report.c:853
msgid "Select _None"
msgstr "_Deseleccionar todo"

#: shell//report.c:860
msgid "Select _All"
msgstr "_Seleccionar todo"

#: shell//report.c:878
msgid "_Generate"
msgstr "_Generar"

#: shell//menu.c:35
msgid "_Information"
msgstr "_Información"

#: shell//menu.c:36
msgid "_Remote"
msgstr "_Remoto"

#: shell//menu.c:37
msgid "_View"
msgstr "_Ver"

#: shell//menu.c:38
msgid "_Help"
msgstr "_Ayuda"

#: shell//menu.c:39
msgid "About _Modules"
msgstr "Acerca de los _módulos"

#: shell//menu.c:43
msgid "Generate _Report"
msgstr "Generar _reporte"

#: shell//menu.c:48
msgid "_Network Updater..."
msgstr "_Actualizador por red..."

#: shell//menu.c:53
msgid "_Open..."
msgstr "_Abrir..."

#: shell//menu.c:58
msgid "_Connect to..."
msgstr "_Conectar a..."

#: shell//menu.c:63
msgid "_Manage hosts..."
msgstr "_Configurar hosts..."

#: shell//menu.c:68
msgid "_Local computer"
msgstr "_Equipo local"

#: shell//menu.c:73
msgid "_Copy to Clipboard"
msgstr "_Copiar al portapapeles"

#: shell//menu.c:74
msgid "Copy to clipboard"
msgstr "Copiar al portapapeles"

#: shell//menu.c:78
msgid "_Save image as..."
msgstr "_Guardar imagen como..."

#: shell//menu.c:83
msgid "_Refresh"
msgstr "_Refrescar"

#: shell//menu.c:88
msgid "Contents"
msgstr "Contenidos"

#: shell//menu.c:93
#: shell//shell.c:1790
#: shell//shell.c:1807
msgid "Context help"
msgstr "Ayuda contextual"

#: shell//menu.c:98
msgid "_Open HardInfo Web Site"
msgstr "_Abrir sitio web de Hardinfo"

#: shell//menu.c:103
msgid "_Report bug"
msgstr "_Reportar un error"

#: shell//menu.c:108
msgid "_Donate to the project"
msgstr "_Donar al proyecto"

#: shell//menu.c:113
msgid "_About HardInfo"
msgstr "_Acerca de Hardinfo"

#: shell//menu.c:114
msgid "Displays program version information"
msgstr "Muestra la información de versión del programa"

#: shell//menu.c:118
msgid "_Quit"
msgstr "_Salir"

#: shell//menu.c:125
msgid "_Side Pane"
msgstr "_Panel lateral"

#: shell//menu.c:126
msgid "Toggles side pane visibility"
msgstr "Cambia la visibilidad del panel lateral"

#: shell//menu.c:129
msgid "_Toolbar"
msgstr "_Barra de herramientas"

#: shell//menu.c:133
msgid "_Accept connections"
msgstr "_Aceptar conexiones"

#: shell//callbacks.c:71
#, c-format
msgid "Remote: <b>%s</b>"
msgstr "Remoto: <b>%s</b>"

#: shell//callbacks.c:117
msgid "Disconnecting..."
msgstr "Desconectando..."

#: shell//callbacks.c:120
msgid "Unloading modules..."
msgstr "Descargando módulos..."

#: shell//callbacks.c:123
msgid "Loading local modules..."
msgstr "Cargando módulos locales..."

#: shell//callbacks.c:130
#: shell//callbacks.c:162
#: shell//shell.c:314
#: shell//shell.c:814
#: shell//shell.c:1796
#: modules//benchmark.c:431
#: modules//benchmark.c:439
#: hardinfo//util.c:1106
msgid "Done."
msgstr "Hecho."

#: shell//callbacks.c:142
msgid "Save Image"
msgstr "Guardar imagen"

#: shell//callbacks.c:158
msgid "Saving image..."
msgstr "Guardando imagen"

#: shell//callbacks.c:236
msgid "No context help available."
msgstr "No hay ayuda contextual disponible"

#: shell//callbacks.c:318
#, c-format
msgid "%s Module"
msgstr "%s módulo"

#: shell//callbacks.c:325
#, c-format
msgid ""
"Written by %s\n"
"Licensed under %s"
msgstr ""
"Escrito por %s\n"
"Licencia %s"

#: shell//callbacks.c:339
#, c-format
msgid "No about information is associated with the %s module."
msgstr "No hay información \"acerca de\" asociada al módulo %s."

#: shell//callbacks.c:353
msgid "Author:"
msgstr "Autor:"

#: shell//callbacks.c:356
msgid "Contributors:"
msgstr "Contribuyentes:"

#: shell//callbacks.c:360
msgid "Based on work by:"
msgstr "Basado en el trabajo de:"

#: shell//callbacks.c:361
msgid "MD5 implementation by Colin Plumb (see md5.c for details)"
msgstr "Implementación de MD5 por Colin Plumb (ver md5.c para detalles)"

#: shell//callbacks.c:362
msgid "SHA1 implementation by Steve Reid (see sha1.c for details)"
msgstr "Implementación de SHA1 por Steve Reid (ver sha1.c para detalles)"

#: shell//callbacks.c:363
msgid "Blowfish implementation by Paul Kocher (see blowfich.c for details)"
msgstr ""
"Implementación de Blowfish por Paul Kocher (ver blowfich.c para detalles)"

#: shell//callbacks.c:364
msgid "Raytracing benchmark by John Walker (see fbench.c for details)"
msgstr ""
"Benchmark de trazado de rayos por John Walker (ver fbench.c para detalles)"

#: shell//callbacks.c:365
msgid "FFT benchmark by Scott Robert Ladd (see fftbench.c for details)"
msgstr "Benchmark  de FFT por Scott Robert Ladd (ver fftbench.c para detalles)"

#: shell//callbacks.c:366
msgid "Some code partly based on x86cpucaps by Osamu Kayasono"
msgstr "Parte del código parcialmente basado en x86cpucaps por Osamu Kayasono"

#: shell//callbacks.c:367
msgid "Vendor list based on GtkSysInfo by Pissens Sebastien"
msgstr "Lista de proveedores basada en GtkSysInfo por Pissens Sebastien"

#: shell//callbacks.c:368
msgid "DMI support based on code by Stewart Adam"
msgstr "Soporte DMI basado en código de Stewart Adam"

#: shell//callbacks.c:369
msgid "SCSI support based on code by Pascal F. Martin"
msgstr "Soporte SCSI basado en código de Pascal F. Martin"

#: shell//callbacks.c:373
msgid "Jakub Szypulka"
msgstr ""

#: shell//callbacks.c:374
msgid "Tango Project"
msgstr "Proyecto Tango"

#: shell//callbacks.c:375
msgid "The GNOME Project"
msgstr "El proyecto GNOME"

#: shell//callbacks.c:376
msgid "VMWare, Inc. (USB icon from VMWare Workstation 6)"
msgstr "VMWare, Inc. (icono USB de VMWare Workstation 6)"

#: shell//callbacks.c:387
msgid "System information and benchmark tool"
msgstr "Herramienta de información del sistema y benchmark"

#: shell//callbacks.c:392
msgid ""
"HardInfo is free software; you can redistribute it and/or modify it under "
"the terms of the GNU General Public License as published by the Free "
"Software Foundation, version 2.\n"
"\n"
"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.\n"
"\n"
"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., 51 "
"Franklin St, Fifth Floor, Boston, MA  02110-1301 USA"
msgstr ""

#: shell//shell.c:407
#, c-format
msgid "%s - System Information"
msgstr "%s - Información del sistema"

#: shell//shell.c:412
msgid "System Information"
msgstr "Información del sistema"

#: shell//shell.c:801
msgid "Loading modules..."
msgstr "Cargando módulos..."

#: shell//shell.c:1650
#, c-format
msgid "<b>%s → Summary</b>"
msgstr "<b>%s → Resumen</b>"

#: shell//shell.c:1758
msgid "Updating..."
msgstr "Actualizando..."

#: shell//syncmanager.c:69
msgid ""
"<big><b>Synchronize with Central Database</b></big>\n"
"The following information may be synchronized with the HardInfo central "
"database."
msgstr ""
"<big><b>Sincronizar con base de datos central</b></big>\n"
"La siguiente información puede ser sincronizada con la base de datos "
"central de Hardinfo."

#: shell//syncmanager.c:72
msgid ""
"<big><b>Synchronizing</b></big>\n"
"This may take some time."
msgstr ""
"<big><b>Sincronizando</b></big>\n"
"Esto puede tomar algún tiempo."

#: shell//syncmanager.c:132
msgid ""
"HardInfo was compiled without libsoup support. (Network Updater requires it.)"
msgstr ""
"HardInfo fue compilado sin soporte para libsoup. (El actualizador por red lo "
"requiere.)"

#: shell//syncmanager.c:161
#: shell//syncmanager.c:185
#, c-format
msgid "%s (error #%d)"
msgstr "%s (error #%d)"

#: shell//syncmanager.c:170
#: shell//syncmanager.c:194
msgid "Could not parse XML-RPC response"
msgstr "No se pudo procesar la respuesta XML-RPC"

#: shell//syncmanager.c:267
#, c-format
msgid ""
"Server says it supports API version %d, but this version of HardInfo only "
"supports API version %d."
msgstr ""
"El servidor dice que soporta la versión de la API %d, pero esta versión de "
"HardInfo solo soporta la versión de la API %d."

#: shell//syncmanager.c:362
msgid "Contacting HardInfo Central Database"
msgstr "Contactando base de datos central de Hardinfo"

#: shell//syncmanager.c:363
msgid "Cleaning up"
msgstr "Limpiando"

#: shell//syncmanager.c:480
#, c-format
msgid "<s>%s</s> <i>(canceled)</i>"
msgstr "<s>%s</s> <i>(cancelado)</i>"

#: shell//syncmanager.c:497
#, c-format
msgid "<b><s>%s</s></b> <i>(failed)</i>"
msgstr "<b><s>%s</s></b> <i>(falló)</i>"

#: shell//syncmanager.c:509
#, c-format
msgid ""
"Failed while performing \"%s\". Please file a bug report if this problem "
"persists. (Use the Help→Report bug option.)\n"
"\n"
"Details: %s"
msgstr ""
"Falló realizando \"%s\". Por favor reporte el error si este problema "
"persiste. (Use la opción Ayuda→Reportar error.)\n"
"\n"
"Detalles: %s"

#: shell//syncmanager.c:518
#, c-format
msgid ""
"Failed while performing \"%s\". Please file a bug report if this problem "
"persists. (Use the Help→Report bug option.)"
msgstr ""
"Falló realizando \"%s\". Por favor reporte el error si este problema "
"persiste. (Use la opción Ayuda→Reportar error.)"

#: shell//syncmanager.c:646
msgid "Network Updater"
msgstr "Actualizador por red"

#: shell//syncmanager.c:727
msgid "_Synchronize"
msgstr "_Sincronizar"

#: modules//computer.c:68
msgid "Summary"
msgstr "Resumen"

#: modules//computer.c:69
msgid "Operating System"
msgstr "Sistema operativo"

#: modules//computer.c:70
msgid "Kernel Modules"
msgstr "Módulos del kernel"

#: modules//computer.c:71
msgid "Boots"
msgstr "Arranques"

#: modules//computer.c:72
msgid "Languages"
msgstr "Idiomas"

#: modules//computer.c:73
msgid "Filesystems"
msgstr "Sistemas de archivos"

#: modules//computer.c:74
msgid "Display"
msgstr "Pantalla"

#: modules//computer.c:75
msgid "Environment Variables"
msgstr "Variables de entorno"

#: modules//computer.c:77
msgid "Development"
msgstr "Desarrollo"

#: modules//computer.c:79
msgid "Users"
msgstr "Usuarios"

#: modules//computer.c:80
msgid "Groups"
msgstr "Grupos"

#: modules//computer.c:104
#, c-format
msgid "%dMB (%dMB used)"
msgstr "%dMB (%dMB usados)"

#: modules//computer.c:200
msgid "Scripting Languages"
msgstr "Lenguajes de scripting"

#: modules//computer.c:201
msgid "CPython"
msgstr ""

#: modules//computer.c:202
msgid "Perl"
msgstr ""

#: modules//computer.c:203
msgid "PHP"
msgstr ""

#: modules//computer.c:204
msgid "Ruby"
msgstr ""

#: modules//computer.c:205
msgid "Bash"
msgstr ""

#: modules//computer.c:206
msgid "Compilers"
msgstr "Compiladores"

#: modules//computer.c:207
msgid "C (GCC)"
msgstr ""

#: modules//computer.c:208
msgid "Java"
msgstr ""

#: modules//computer.c:209
msgid "CSharp (Mono, old)"
msgstr "CSharp (Mono, antiguo)"

#: modules//computer.c:210
msgid "CSharp (Mono)"
msgstr ""

#: modules//computer.c:211
msgid "Vala"
msgstr ""

#: modules//computer.c:212
msgid "Haskell (GHC)"
msgstr ""

#: modules//computer.c:213
msgid "FreePascal"
msgstr ""

#: modules//computer.c:214
msgid "Tools"
msgstr "Herramientas"

#: modules//computer.c:262
#, c-format
msgid "%s=Not found\n"
msgstr "%s=No encontrado\n"

#: modules//computer.c:265
#, c-format
msgid "Detecting version: %s"
msgstr "Detectando versión: %s"

#: modules//computer.c:276
#, c-format
msgid ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Program\n"
"ColumnTitle$Value=Version\n"
"ShowColumnHeaders=true\n"
"%s"
msgstr ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Programa\n"
"ColumnTitle$Value=Versión\n"
"ShowColumnHeaders=true\n"
"%s"

#: modules//computer.c:356
msgid "Physical machine"
msgstr "Equipo físico"

#: modules//computer.c:373
#, c-format
msgid ""
"[$ShellParam$]\n"
"UpdateInterval$Memory=1000\n"
"UpdateInterval$Date/Time=1000\n"
"#ReloadInterval=5000\n"
"[Computer]\n"
"Processor=%s\n"
"Memory=...\n"
"Machine Type=%s\n"
"Operating System=%s\n"
"User Name=%s\n"
"Date/Time=...\n"
"[Display]\n"
"Resolution=%dx%d pixels\n"
"OpenGL Renderer=%s\n"
"X11 Vendor=%s\n"
"\n"
"%s\n"
"[Input Devices]\n"
"%s\n"
"\n"
"%s\n"
"\n"
"%s\n"
msgstr ""
"[$ShellParam$]\n"
"UpdateInterval$Memoria=1000\n"
"UpdateInterval$Fecha/Hora=1000\n"
"#ReloadInterval=5000\n"
"[Equipo]\n"
"Procesador=%s\n"
"Memoria=...\n"
"Tipo de equipo=%s\n"
"Sistema operativo=%s\n"
"Nombre de usuario=%s\n"
"Fecha/Hora=...\n"
"[Pantalla]\n"
"Resolución=%dx%d pixels\n"
"OpenGL Renderer=%s\n"
"Proveedor X11=%s\n"
"\n"
"%s\n"
"[Dispositivos de entrada]\n"
"%s\n"
"\n"
"%s\n"
"\n"
"%s\n"

#: modules//computer.c:415
#, c-format
msgid ""
"[$ShellParam$]\n"
"UpdateInterval$Uptime=10000\n"
"UpdateInterval$Load Average=1000\n"
"[Version]\n"
"Kernel=%s\n"
"Version=%s\n"
"C Library=%s\n"
"Distribution=%s\n"
"[Current Session]\n"
"Computer Name=%s\n"
"User Name=%s\n"
"#Language=%s\n"
"Home Directory=%s\n"
"Desktop Environment=%s\n"
"[Misc]\n"
"Uptime=...\n"
"Load Average=..."
msgstr ""
"[$ShellParam$]\n"
"UpdateInterval$Uptime=10000\n"
"UpdateInterval$Load Average=1000\n"
"[Versión]\n"
"Núcleo=%s\n"
"Versión=%s\n"
"Biblioteca C=%s\n"
"Distribución=%s\n"
"[Sesión actual]\n"
"Nombre del equipo=%s\n"
"Nombre de usuario=%s\n"
"#Idioma=%s\n"
"Directorio personal=%s\n"
"Entorno de escritorio=%s\n"
"[Misc]\n"
"Uptime=...\n"
"Load Average=..."

#: modules//computer.c:444
#, c-format
msgid ""
"[Loaded Modules]\n"
"%s[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Name\n"
"ColumnTitle$Value=Description\n"
"ShowColumnHeaders=true\n"
msgstr ""
"[Módulos cargados]\n"
"%s[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Nombre\n"
"ColumnTitle$Value=Descripción\n"
"ShowColumnHeaders=true\n"

#: modules//computer.c:455
#, c-format
msgid ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Date & Time\n"
"ColumnTitle$Value=Kernel Version\n"
"ShowColumnHeaders=true\n"
"\n"
"%s"
msgstr ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Fecha y hora\n"
"ColumnTitle$Value=Versión del núcleo\n"
"ShowColumnHeaders=true\n"
"\n"
"%s"

#: modules//computer.c:465
#, c-format
msgid ""
"[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Language Code\n"
"ColumnTitle$Value=Name\n"
"ShowColumnHeaders=true\n"
"[Available Languages]\n"
"%s"
msgstr ""
"[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Código del idioma\n"
"ColumnTitle$Value=Nombre\n"
"ShowColumnHeaders=true\n"
"[Idiomas disponibles]\n"
"%s"

#: modules//computer.c:476
#, c-format
msgid ""
"[$ShellParam$]\n"
"ViewType=4\n"
"ReloadInterval=5000\n"
"Zebra=1\n"
"NormalizePercentage=false\n"
"ColumnTitle$Extra1=Mount Point\n"
"ColumnTitle$Progress=Usage\n"
"ColumnTitle$TextValue=Device\n"
"ShowColumnHeaders=true\n"
"[Mounted File Systems]\n"
"%s\n"
msgstr ""
"[$ShellParam$]\n"
"ViewType=4\n"
"ReloadInterval=5000\n"
"Zebra=1\n"
"NormalizePercentage=false\n"
"ColumnTitle$Extra1=Punto de montaje\n"
"ColumnTitle$Progress=Uso\n"
"ColumnTitle$TextValue=Dispositivo\n"
"ShowColumnHeaders=true\n"
"[Sistemas de archivos montados]\n"
"%s\n"

#: modules//computer.c:490
#, c-format
msgid ""
"[Display]\n"
"Resolution=%dx%d pixels\n"
"Vendor=%s\n"
"Version=%s\n"
"[Monitors]\n"
"%s[Extensions]\n"
"%s[OpenGL]\n"
"Vendor=%s\n"
"Renderer=%s\n"
"Version=%s\n"
"Direct Rendering=%s\n"
msgstr ""
"[Pantalla]\n"
"Resolución=%dx%d pixels\n"
"Proveedor=%s\n"
"Versión=%s\n"
"[Monitores]\n"
"%s[Extensiones]\n"
"%s[OpenGL]\n"
"Proveedor=%s\n"
"Renderer=%s\n"
"Versión=%s\n"
"Direct Rendering=%s\n"

#: modules//computer.c:512
msgid "Y_es"
msgstr "_Sí"

#: modules//computer.c:512
#: modules//devices/printers.c:138
#: hardinfo//hardinfo.c:63
msgid "No"
msgstr "_No"

#: modules//computer.c:526
#, c-format
msgid ""
"[$ShellParam$]\n"
"ReloadInterval=10000\n"
"ColumnTitle$TextValue=Name\n"
"ColumnTitle$Value=Group ID\n"
"ShowColumnHeaders=true\n"
"[Groups]\n"
"%s\n"
msgstr ""
"[$ShellParam$]\n"
"ReloadInterval=10000\n"
"ColumnTitle$TextValue=Nombre\n"
"ColumnTitle$Value=ID del grupo\n"
"ShowColumnHeaders=true\n"
"[Grupos]\n"
"%s\n"

#: modules//computer.c:606
msgid "Computer"
msgstr "Equipo"

#: modules//computer.c:700
msgid "Gathers high-level computer information"
msgstr "Obtiene información del equipo de alto nivel"

#: modules//devices.c:74
msgid "Processor"
msgstr "Procesador"

#: modules//devices.c:75
msgid "Memory"
msgstr "Memoria"

#: modules//devices.c:76
msgid "PCI Devices"
msgstr "Dispositivos PCI"

#: modules//devices.c:77
msgid "USB Devices"
msgstr "Dispositivos USB"

#: modules//devices.c:78
msgid "Printers"
msgstr "Impresoras"

#: modules//devices.c:79
msgid "Battery"
msgstr "Batería"

#: modules//devices.c:80
msgid "Sensors"
msgstr "Sensores"

#: modules//devices.c:81
msgid "Input Devices"
msgstr "Dispositivos de entrada"

#: modules//devices.c:82
msgid "Storage"
msgstr "Almacenamiento"

#: modules//devices.c:84
msgid "DMI"
msgstr ""

#: modules//devices.c:85
msgid "Memory SPD"
msgstr "Memoria SPD"

#: modules//devices.c:87
msgid "Resources"
msgstr "Recursos"

#: modules//devices.c:154
#: modules//devices.c:197
#: modules//computer/os.c:53
#: modules//computer/os.c:130
#: modules//devices/printers.c:99
#: modules//devices/printers.c:106
#: modules//devices/printers.c:116
#: modules//devices/printers.c:131
#: modules//devices/printers.c:140
#: modules//devices/printers.c:243
msgid "Unknown"
msgstr "Desconocido"

#: modules//devices.c:178
msgid "Total Memory"
msgstr "Memoria total"

#: modules//devices.c:193
msgid " (vendor unknown)"
msgstr " (proveedor desconocido)"

#: modules//devices.c:195
msgid " (model unknown)"
msgstr " (modelo desconocido)"

#: modules//devices.c:412
msgid "Devices"
msgstr "Dispositivos"

#: modules//devices.c:424
msgid "Update PCI ID listing"
msgstr "Actualizar listado de ids PCI"

#: modules//devices.c:436
msgid "Update CPU feature database"
msgstr "Actualizar base de datos de características de CPU"

#: modules//devices.c:464
msgid "Gathers information about hardware devices"
msgstr "Obtiene información acerca de los dispositivos de hardware"

#: modules//computer/boots.c:33
msgid "[Boots]\n"
msgstr "[Arranques]\n"

#: modules//computer/environment.c:32
msgid "[Environment Variables]\n"
msgstr "[Variables de entorno]\n"

#: modules//computer/display.c:83
msgid "vendor string"
msgstr "cadena del proveedor"

#: modules//computer/display.c:84
msgid "X.Org version"
msgstr "Versión de X.Org"

#: modules//computer/display.c:85
msgid "XFree86 version"
msgstr "Versión de XFree86"

#: modules//computer/display.c:122
#, c-format
msgid "Monitor %d=%dx%d pixels\n"
msgstr "Monitor %d=%dx%d pixels\n"

#: modules//computer/alsa.c:26
msgid "[Audio Devices]\n"
msgstr "[Dispositivos de audio]\n"

#: modules//computer/alsa.c:33
#, c-format
msgid "Audio Adapter#%d=%s\n"
msgstr "Adaptador de audio#%d=%s\n"

#: modules//computer/os.c:49
#, c-format
msgid "GNU C Library version %s (%sstable)"
msgstr "Versión de la biblioteca GNU C %s (%sestable)"

#: modules//computer/os.c:51
msgid "un"
msgstr "in"

#: modules//computer/os.c:72
#, c-format
msgid "Version: %s"
msgstr "Versión: %s"

#: modules//computer/os.c:106
msgid "Terminal"
msgstr "Terminal"

#: modules//computer/os.c:126
#, c-format
msgid "Unknown (Window Manager: %s)"
msgstr "Desconocido (Gestor de ventanas: %s)"

#: modules//computer/os.c:166
msgid "Unknown distribution"
msgstr "Distribución desconocida"

#: modules//devices/battery.c:181
#, c-format
msgid ""
"\n"
"[Battery: %s]\n"
"State=%s (load: %s)\n"
"Capacity=%s / %s (%.2f%%)\n"
"Battery Technology=%s (%s)\n"
"Manufacturer=%s\n"
"Model Number=%s\n"
"Serial Number=%s\n"
msgstr ""
"\n"
"[Batería: %s]\n"
"Estado=%s (carga: %s)\n"
"Capacidad=%s / %s (%.2f%%)\n"
"Tecnología de la batería=%s (%s)\n"
"Fabricante=%s\n"
"Numero de modelo=%s\n"
"Numero de serie=%s\n"

#: modules//devices/battery.c:266
#, c-format
msgid ""
"\n"
"[Battery (APM)]\n"
"Charge=%d%%\n"
"Remaining Charge=%s of %s\n"
"Using=%s\n"
"APM driver version=%s\n"
"APM BIOS version=%s\n"
msgstr ""
"\n"
"[Batería (APM)]\n"
"Carga=%d%%\n"
"Carga restante=%s of %s\n"
"Usando=%s\n"
"Versión del driver APM=%s\n"
"APM BIOS version=%s\n"

#: modules//devices/battery.c:278
#, c-format
msgid ""
"\n"
"[Battery (APM)]\n"
"Charge=%d%%\n"
"Using=%s\n"
"APM driver version=%s\n"
"APM BIOS version=%s\n"
msgstr ""
"\n"
"[Batería (APM)]\n"
"Carga=%d%%\n"
"Usando=%s\n"
"Versión del driver APM=%s\n"
"Versión del BIOS APM=%s\n"

#: modules//devices/battery.c:304
msgid ""
"[No batteries]\n"
"No batteries found on this system=\n"
msgstr ""
"[Sin baterías]\n"
"No se encontraron baterías en este sistema=\n"

#: modules//devices/printers.c:81
msgid "⚬ Can do black and white printing=\n"
msgstr "⚬ Puede imprimir en blanco y negro=\n"

#: modules//devices/printers.c:83
msgid "⚬ Can do color printing=\n"
msgstr "⚬ Puede imprimir en color=\n"

#: modules//devices/printers.c:85
msgid "⚬ Can do duplexing=\n"
msgstr "⚬ Can do duplexing=\n"

#: modules//devices/printers.c:87
msgid "⚬ Can do staple output=\n"
msgstr "⚬ Puede engrapar la salida=\n"

#: modules//devices/printers.c:89
msgid "⚬ Can do copies=\n"
msgstr "⚬ Puede hacer copias=\n"

#: modules//devices/printers.c:91
msgid "⚬ Can collate copies=\n"
msgstr "⚬ Puede compaginar copias=\n"

#: modules//devices/printers.c:93
msgid "⚬ Printer is rejecting jobs=\n"
msgstr "⚬ La impresora está rechazando trabajos=\n"

#: modules//devices/printers.c:95
msgid "⚬ Printer was automatically discovered and added=\n"
msgstr "⚬ La impresora fue encontrada automáticamente y agregada=\n"

#: modules//devices/printers.c:110
msgid "Idle"
msgstr "Ocioso"

#: modules//devices/printers.c:112
msgid "Printing a Job"
msgstr "Imprimiendo un trabajo"

#: modules//devices/printers.c:114
msgid "Stopped"
msgstr "Detenido"

#: modules//devices/printers.c:138
#: hardinfo//hardinfo.c:62
#: hardinfo//hardinfo.c:63
msgid "Yes"
msgstr "Sí"

#: modules//devices/printers.c:190
msgid ""
"[Printers]\n"
"No suitable CUPS library found="
msgstr ""
"[Impresoras]\n"
"No se encontró ninguna biblioteca CUPS usable="

#: modules//devices/printers.c:200
msgid "[Printers (CUPS)]\n"
msgstr "[Impresoras (CUPS)]\n"

#: modules//devices/printers.c:263
msgid ""
"[Printers]\n"
"No printers found=\n"
msgstr ""
"[Impresoras]\n"
"No se encontraron impresoras=\n"

#: modules//devices/storage.c:46
msgid ""
"\n"
"[SCSI Disks]\n"
msgstr ""
"\n"
"[Discos SCSI]\n"

#: modules//devices/storage.c:110
#: modules//devices/storage.c:297
#, c-format
msgid ""
"[Device Information]\n"
"Model=%s\n"
msgstr ""
"[Información de dispositivo]\n"
"Modelo=%s\n"

#: modules//devices/storage.c:115
#: modules//devices/storage.c:304
#, c-format
msgid "Vendor=%s (%s)\n"
msgstr "Proveedor=%s (%s)\n"

#: modules//devices/storage.c:120
#: modules//devices/storage.c:309
#, c-format
msgid "Vendor=%s\n"
msgstr "Proveedor=%s\n"

#: modules//devices/storage.c:125
#, c-format
msgid ""
"Type=%s\n"
"Revision=%s\n"
"[SCSI Controller]\n"
"Controller=scsi%d\n"
"Channel=%d\n"
"ID=%d\n"
"LUN=%d\n"
msgstr ""
"Tipo=%s\n"
"Revisión=%s\n"
"[Controladora SCSI]\n"
"Controladora=scsi%d\n"
"Canal=%d\n"
"ID=%d\n"
"LUN=%d\n"

#: modules//devices/storage.c:169
msgid ""
"\n"
"[IDE Disks]\n"
msgstr ""
"\n"
"[Discos IDE]\n"

#: modules//devices/storage.c:242
#, c-format
msgid "Driver=%s\n"
msgstr "Driver=%s\n"

#: modules//devices/storage.c:314
#, c-format
msgid ""
"Device Name=hd%c\n"
"Media=%s\n"
"Cache=%dkb\n"
msgstr ""
"Nombre del dispositivo=hd%c\n"
"Medio=%s\n"
"Cache=%dkb\n"

#: modules//devices/storage.c:329
#, c-format
msgid ""
"[Geometry]\n"
"Physical=%s\n"
"Logical=%s\n"
msgstr ""
"[Geometría]\n"
"Física=%s\n"
"Lógica=%s\n"

#: modules//devices/storage.c:341
#, c-format
msgid ""
"[Capabilities]\n"
"%s"
msgstr ""
"[Capacidades]\n"
"%s"

#: modules//devices/storage.c:348
#, c-format
msgid ""
"[Speeds]\n"
"%s"
msgstr ""
"[Velocidades]\n"
"%s"

#: modules//network.c:59
msgid "Interfaces"
msgstr "Interfaces"

#: modules//network.c:60
msgid "IP Connections"
msgstr "Conexiones IP"

#: modules//network.c:61
msgid "Routing Table"
msgstr "Tabla de ruteo"

#: modules//network.c:62
msgid "ARP Table"
msgstr "Tabla ARP"

#: modules//network.c:63
msgid "DNS Servers"
msgstr "Servidores DNS"

#: modules//network.c:64
msgid "Statistics"
msgstr "Estadísticas"

#: modules//network.c:65
msgid "Shared Directories"
msgstr "Directorios compartidos"

#: modules//network.c:300
#, c-format
msgid ""
"[ARP Table]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=IP Address\n"
"ColumnTitle$Value=Interface\n"
"ColumnTitle$Extra1=MAC Address\n"
"ShowColumnHeaders=true\n"
msgstr ""
"[Tabla ARP]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Dirección IP\n"
"ColumnTitle$Value=Interfaz\n"
"ColumnTitle$Extra1=Dirección MAC\n"
"ShowColumnHeaders=true\n"

#: modules//network.c:321
#, c-format
msgid ""
"[Name servers]\n"
"%s\n"
"[$ShellParam$]\n"
"ColumnTitle$TextValue=IP Address\n"
"ColumnTitle$Value=Name\n"
"ShowColumnHeaders=true\n"
msgstr ""
"[Servidores de nombres]\n"
"%s\n"
"[$ShellParam$]\n"
"ColumnTitle$TextValue=IP Address\n"
"ColumnTitle$Value=Name\n"
"ShowColumnHeaders=true\n"

#: modules//network.c:331
#, c-format
msgid ""
"[Connections]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Local Address\n"
"ColumnTitle$Value=Protocol\n"
"ColumnTitle$Extra1=Foreign Address\n"
"ColumnTitle$Extra2=State\n"
"ShowColumnHeaders=true\n"
msgstr ""
"[Conexiones]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Local Address\n"
"ColumnTitle$Value=Protocol\n"
"ColumnTitle$Extra1=Foreign Address\n"
"ColumnTitle$Extra2=State\n"
"ShowColumnHeaders=true\n"

#: modules//network.c:345
#, c-format
msgid ""
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Interface\n"
"ColumnTitle$Value=IP Address\n"
"ColumnTitle$Extra1=Sent\n"
"ColumnTitle$Extra2=Received\n"
"ShowColumnHeaders=true\n"
"%s"
msgstr ""
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Interfaz\n"
"ColumnTitle$Value=Dirección IP\n"
"ColumnTitle$Extra1=Enviado\n"
"ColumnTitle$Extra2=Recibido\n"
"ShowColumnHeaders=true\n"
"%s"

#: modules//network.c:361
#, c-format
msgid ""
"[IP routing table]\n"
"%s\n"
"[$ShellParam$]\n"
"ViewType=0\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Destination / Gateway\n"
"ColumnTitle$Value=Interface\n"
"ColumnTitle$Extra1=Flags\n"
"ColumnTitle$Extra2=Mask\n"
"ShowColumnHeaders=true\n"
msgstr ""
"[Tabla de ruteo IP]\n"
"%s\n"
"[$ShellParam$]\n"
"ViewType=0\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Destino / Puerta de enlace\n"
"ColumnTitle$Value=Interfaz\n"
"ColumnTitle$Extra1=Flags\n"
"ColumnTitle$Extra2=Máscara\n"
"ShowColumnHeaders=true\n"

#: modules//network.c:399
msgid "Network"
msgstr "Red"

#: modules//network.c:432
msgid "Gathers information about this computer's network connection"
msgstr "Obtiene información sobre la conexión de red de esta computadora"

#: modules//benchmark.c:50
msgid "CPU Blowfish"
msgstr ""

#: modules//benchmark.c:51
msgid "CPU CryptoHash"
msgstr ""

#: modules//benchmark.c:52
msgid "CPU Fibonacci"
msgstr ""

#: modules//benchmark.c:53
msgid "CPU N-Queens"
msgstr "CPU N-Reinas"

#: modules//benchmark.c:54
msgid "FPU FFT"
msgstr ""

#: modules//benchmark.c:55
msgid "FPU Raytracing"
msgstr "FPU trazado de rayos"

#: modules//benchmark.c:56
msgid "GPU Drawing"
msgstr "GPU dibujo"

#: modules//benchmark.c:222
#, c-format
msgid ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=CPU Clock\n"
"ColumnTitle$Progress=Results\n"
"ColumnTitle$TextValue=CPU\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"<big><b>This Machine</b></big>=%.3f|%s MHz\n"
"%s"
msgstr ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=Reloj de la CPU\n"
"ColumnTitle$Progress=Resultados\n"
"ColumnTitle$TextValue=CPU\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"<big><b>Este equipo</b></big>=%.3f|%s MHz\n"
"%s"

#: modules//benchmark.c:235
#, c-format
msgid ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=CPU Clock\n"
"ColumnTitle$Progress=Results\n"
"ColumnTitle$TextValue=CPU\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"%s"
msgstr ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=Reloj del equipo CPU\n"
"ColumnTitle$Progress=Resultados\n"
"ColumnTitle$TextValue=CPU\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"%s"

#: modules//benchmark.c:363
#, c-format
msgid "Benchmarking: <b>%s</b>."
msgstr "Ejecutando benchmark: <b>%s</b>."

#: modules//benchmark.c:377
msgid "Benchmarking. Please do not move your mouse or press any keys."
msgstr "Ejecutando benchmarks. Por favor no mueva el mouse ni use el teclado."

#: modules//benchmark.c:381
msgid "Cancel"
msgstr "Cancelar"

#: modules//benchmark.c:511
msgid "Results in MiB/second. Higher is better."
msgstr "Resultados en MiB/segundo. Más alto es mejor."

#: modules//benchmark.c:514
msgid "Results in HIMarks. Higher is better."
msgstr "Resultados en HIMarks. Más alto es mejor."

#: modules//benchmark.c:521
msgid "Results in seconds. Lower is better."
msgstr "Resultados en segundos. Más bajo es mejor."

#: modules//benchmark.c:529
msgid "Benchmarks"
msgstr "Benchmarks"

#: modules//benchmark.c:547
msgid "Perform tasks and compare with other systems"
msgstr "Realizar tareas y comparar con otros sistemas"

#: modules//benchmark.c:634
msgid "Send benchmark results"
msgstr "Enviar resultados de los benchmark"

#: modules//benchmark.c:639
msgid "Receive benchmark results"
msgstr "Recibir resultados de los benchmark"

#: hardinfo//util.c:102
#: hardinfo//util.c:105
#: hardinfo//util.c:110
#, c-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d minuto"
msgstr[1] "%d minutos"

#: hardinfo//util.c:104
#, c-format
msgid "%d hour, "
msgid_plural "%d hours, "
msgstr[0] "%d hora, "
msgstr[1] "%d horas, "

#: hardinfo//util.c:108
#, c-format
msgid "%d day, "
msgid_plural "%d days, "
msgstr[0] "%d día, "
msgstr[1] "%d días, "

#: hardinfo//util.c:109
#, c-format
msgid "%d hour and "
msgid_plural "%d hours and "
msgstr[0] "%d hora y "
msgstr[1] "%d horas y "

#: hardinfo//util.c:116
#, c-format
msgid "%.1f B"
msgstr ""

#: hardinfo//util.c:118
#, c-format
msgid "%.1f KiB"
msgstr ""

#: hardinfo//util.c:120
#, c-format
msgid "%.1f MiB"
msgstr ""

#: hardinfo//util.c:122
#, c-format
msgid "%.1f GiB"
msgstr ""

#: hardinfo//util.c:336
msgid "Error"
msgstr "Error"

#: hardinfo//util.c:336
#: hardinfo//util.c:352
msgid "Warning"
msgstr "Advertencia"

#: hardinfo//util.c:351
msgid "Fatal Error"
msgstr "Error fatal"

#: hardinfo//util.c:376
msgid "creates a report and prints to standard output"
msgstr "crea un reporte y lo imprime en la salida estándar"

#: hardinfo//util.c:382
msgid "chooses a report format (text, html)"
msgstr "elige un formato para el reporte (texto, html)"

#: hardinfo//util.c:388
msgid "run benchmark; requires benchmark.so to be loaded"
msgstr "correr benchmark; requiere benchmark.so para ser cargado"

#: hardinfo//util.c:394
msgid "lists modules"
msgstr "lista los módulos"

#: hardinfo//util.c:400
msgid "specify module to load"
msgstr "especificar módulo a cargar"

#: hardinfo//util.c:406
msgid "automatically load module dependencies"
msgstr "cargar automáticamente las dependencias de los módulos"

#: hardinfo//util.c:413
msgid "run in XML-RPC server mode"
msgstr "correr en modo servidor XML-RPC"

#: hardinfo//util.c:420
msgid "shows program version and quit"
msgstr "muestra la versión del programa y sale"

#: hardinfo//util.c:425
msgid "- System Profiler and Benchmark tool"
msgstr "- Analizador de sistema y herramienta de benchmark"

#: hardinfo//util.c:435
#, c-format
msgid ""
"Unrecognized arguments.\n"
"Try ``%s --help'' for more information.\n"
msgstr ""
"Argumentos no reconocidos.\n"
"Intente ``%s --help'' para más información.\n"

#: hardinfo//util.c:501
#, c-format
msgid "Couldn't find a Web browser to open URL %s."
msgstr "No se pudo encontrar un navegador Web para abrir la URL %s."

#: hardinfo//util.c:848
#, c-format
msgid "Module \"%s\" depends on module \"%s\", load it?"
msgstr "El módulo \"%s\" depende del módulo \"%s\", ¿desea cargarlo?"

#: hardinfo//util.c:871
#, c-format
msgid "Module \"%s\" depends on module \"%s\"."
msgstr "El módulo \"%s\" depende del módulo \"%s\"."

#: hardinfo//util.c:916
#, c-format
msgid "No module could be loaded. Check permissions on \"%s\" and try again."
msgstr ""
"No se puede cargar ningún módulo. Verifique los permisos en \"%s\" y "
"pruebe de nuevo."

#: hardinfo//util.c:920
msgid ""
"No module could be loaded. Please use hardinfo -l to list all available "
"modules and try again with a valid module list."
msgstr ""
"No se pudo cargar ningún módulo. Por favor use hardinfo -l para listar "
"todoslos módulos disponibles e intente de nuevo con una lista válida de "
"módulos."

#: hardinfo//util.c:1096
#, c-format
msgid "Scanning: %s..."
msgstr "Escaneando: %s..."

#: hardinfo//hardinfo.c:54
msgid ""
"Copyright (C) 2003-2009 Leandro A. F. Pereira. See COPYING for details.\n"
"\n"
msgstr ""
"Copyright (C) 2003-2009 Leandro A. F. Pereira. Vea COPYING para más "
"detalles.\n"
"\n"

#: hardinfo//hardinfo.c:56
#, c-format
msgid ""
"Compile-time options:\n"
"  Release version:   %s (%s)\n"
"  BinReloc enabled:  %s\n"
"  Data prefix:       %s\n"
"  Library prefix:    %s\n"
"  Compiled on:       %s %s (%s)\n"
msgstr ""
"Opciones de compilado:\n"
"  Versión:                %s (%s)\n"
"  BinReloc habilitado:    %s\n"
"  Prefijo de datos:       %s\n"
"  Prefijo de bibliotecas: %s\n"
"  Compilado en:           %s %s (%s)\n"

#: hardinfo//hardinfo.c:74
#, c-format
msgid ""
"Failed to find runtime data.\n"
"\n"
"• Is HardInfo correctly installed?\n"
"• See if %s and %s exists and you have read permision."
msgstr ""
"Falló en encontrar datos del programa.\n"
"\n"
"• ¿HardInfo está correctamente instalado?\n"
"• Vea si %s y %s existen y usted tiene permisos de lectura."

#: hardinfo//hardinfo.c:81
#, c-format
msgid ""
"Modules:\n"
"%-20s%-15s%-12s\n"
msgstr ""
"Módulos:\n"
"%-20s%-15s%-12s\n"

#: hardinfo//hardinfo.c:82
msgid "File Name"
msgstr "Nombre de archivo"

#: hardinfo//hardinfo.c:82
msgid "Name"
msgstr "Nombre"

#: hardinfo//hardinfo.c:82
msgid "Version"
msgstr "Versión"

#: hardinfo//hardinfo.c:135
#, c-format
msgid "Unknown benchmark ``%s'' or libbenchmark.so not loaded"
msgstr "Benchmark desconocido ``%s'' o no se cargó libbenchmark.so"

#: hardinfo//hardinfo.c:163
msgid "Don't know what to do. Exiting."
msgstr "No se puede determinar que hacer. Saliendo."

Added po/fr.po.











































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-05 17:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"

#: shell//callbacks.c:71
#, c-format
msgid "Remote: <b>%s</b>"
msgstr ""

#: shell//callbacks.c:117
msgid "Disconnecting..."
msgstr "Déconnexion ..."

#: shell//callbacks.c:120
msgid "Unloading modules..."
msgstr "Déchargement des modules"

#: shell//callbacks.c:123
msgid "Loading local modules..."
msgstr "Chargement des modules locaux"

#: shell//callbacks.c:130
#: shell//callbacks.c:162
#: shell//shell.c:314
#: shell//shell.c:814
#: shell//shell.c:1796
#: modules//benchmark.c:431
#: modules//benchmark.c:439
#: hardinfo//util.c:1106
msgid "Done."
msgstr "Fait."

#: shell//callbacks.c:142
msgid "Save Image"
msgstr "Sauvergarder l'Image"

#: shell//callbacks.c:158
msgid "Saving image..."
msgstr "Sauvegarde de l'image"

#: shell//callbacks.c:236
msgid "No context help available."
msgstr "Pas d'aide du contexte disponible"

#: shell//callbacks.c:318
#, c-format
msgid "%s Module"
msgstr "%s Module"

#: shell//callbacks.c:325
#, c-format
msgid ""
"Written by %s\n"
"Licensed under %s"
msgstr ""
"Ecrit par %s\n"
"Sous Licence %s"

#: shell//callbacks.c:339
#, c-format
msgid "No about information is associated with the %s module."
msgstr "Pas d'information associés au module %s."

#: shell//callbacks.c:353
msgid "Author:"
msgstr "Auteur:"

#: shell//callbacks.c:356
msgid "Contributors:"
msgstr "Contributeur"

#: shell//callbacks.c:360
msgid "Based on work by:"
msgstr "Basé sur le travail de:"

#: shell//callbacks.c:361
msgid "MD5 implementation by Colin Plumb (see md5.c for details)"
msgstr "Implémentation de MD5 par Colin Plumb (voir md5.c pour les détails)"

#: shell//callbacks.c:362
msgid "SHA1 implementation by Steve Reid (see sha1.c for details)"
msgstr "implémentation de SHA1 par Steve Reid (voir sha1.c pour les détails)"

#: shell//callbacks.c:363
msgid "Blowfish implementation by Paul Kocher (see blowfich.c for details)"
msgstr ""

#: shell//callbacks.c:364
msgid "Raytracing benchmark by John Walker (see fbench.c for details)"
msgstr ""

#: shell//callbacks.c:365
msgid "FFT benchmark by Scott Robert Ladd (see fftbench.c for details)"
msgstr ""

#: shell//callbacks.c:366
msgid "Some code partly based on x86cpucaps by Osamu Kayasono"
msgstr ""

#: shell//callbacks.c:367
msgid "Vendor list based on GtkSysInfo by Pissens Sebastien"
msgstr ""

#: shell//callbacks.c:368
msgid "DMI support based on code by Stewart Adam"
msgstr ""

#: shell//callbacks.c:369
msgid "SCSI support based on code by Pascal F. Martin"
msgstr ""

#: shell//callbacks.c:373
msgid "Jakub Szypulka"
msgstr ""

#: shell//callbacks.c:374
msgid "Tango Project"
msgstr ""

#: shell//callbacks.c:375
msgid "The GNOME Project"
msgstr ""

#: shell//callbacks.c:376
msgid "VMWare, Inc. (USB icon from VMWare Workstation 6)"
msgstr ""

#: shell//callbacks.c:387
msgid "System information and benchmark tool"
msgstr ""

#: shell//callbacks.c:392
msgid ""
"HardInfo is free software; you can redistribute it and/or modify it under "
"the terms of the GNU General Public License as published by the Free "
"Software Foundation, version 2.\n"
"\n"
"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.\n"
"\n"
"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., 51 "
"Franklin St, Fifth Floor, Boston, MA  02110-1301 USA"
msgstr ""

#: shell//menu.c:35
msgid "_Information"
msgstr ""

#: shell//menu.c:36
msgid "_Remote"
msgstr ""

#: shell//menu.c:37
msgid "_View"
msgstr ""

#: shell//menu.c:38
msgid "_Help"
msgstr ""

#: shell//menu.c:39
msgid "About _Modules"
msgstr ""

#: shell//menu.c:43
msgid "Generate _Report"
msgstr ""

#: shell//menu.c:48
msgid "_Network Updater..."
msgstr ""

#: shell//menu.c:53
msgid "_Open..."
msgstr ""

#: shell//menu.c:58
msgid "_Connect to..."
msgstr ""

#: shell//menu.c:63
msgid "_Manage hosts..."
msgstr ""

#: shell//menu.c:68
msgid "_Local computer"
msgstr ""

#: shell//menu.c:73
msgid "_Copy to Clipboard"
msgstr ""

#: shell//menu.c:74
msgid "Copy to clipboard"
msgstr ""

#: shell//menu.c:78
msgid "_Save image as..."
msgstr ""

#: shell//menu.c:83
msgid "_Refresh"
msgstr ""

#: shell//menu.c:88
msgid "Contents"
msgstr ""

#: shell//menu.c:93
#: shell//shell.c:1790
#: shell//shell.c:1807
msgid "Context help"
msgstr ""

#: shell//menu.c:98
msgid "_Open HardInfo Web Site"
msgstr ""

#: shell//menu.c:103
msgid "_Report bug"
msgstr "_Rapporter un bug"

#: shell//menu.c:108
msgid "_Donate to the project"
msgstr ""

#: shell//menu.c:113
msgid "_About HardInfo"
msgstr ""

#: shell//menu.c:114
msgid "Displays program version information"
msgstr ""

#: shell//menu.c:118
msgid "_Quit"
msgstr ""

#: shell//menu.c:125
msgid "_Side Pane"
msgstr ""

#: shell//menu.c:126
msgid "Toggles side pane visibility"
msgstr ""

#: shell//menu.c:129
msgid "_Toolbar"
msgstr ""

#: shell//menu.c:133
msgid "_Accept connections"
msgstr ""

#: shell//report.c:492
msgid "Save File"
msgstr ""

#: shell//report.c:616
msgid "Cannot create ReportContext. Programming bug?"
msgstr ""

#: shell//report.c:634
msgid "Open the report with your web browser?"
msgstr ""

#: shell//report.c:662
msgid "Generating report..."
msgstr ""

#: shell//report.c:672
msgid "Report saved."
msgstr ""

#: shell//report.c:674
msgid "Error while creating the report."
msgstr ""

#: shell//report.c:776
msgid "Generate Report"
msgstr ""

#: shell//report.c:793
msgid ""
"<big><b>Generate Report</b></big>\n"
"Please choose the information that you wish to view in your report:"
msgstr ""

#: shell//report.c:853
msgid "Select _None"
msgstr ""

#: shell//report.c:860
msgid "Select _All"
msgstr ""

#: shell//report.c:878
msgid "_Generate"
msgstr ""

#: shell//shell.c:407
#, c-format
msgid "%s - System Information"
msgstr ""

#: shell//shell.c:412
msgid "System Information"
msgstr ""

#: shell//shell.c:801
msgid "Loading modules..."
msgstr ""

#: shell//shell.c:1650
#, c-format
msgid "<b>%s → Summary</b>"
msgstr ""

#: shell//shell.c:1758
msgid "Updating..."
msgstr ""

#: shell//syncmanager.c:69
msgid ""
"<big><b>Synchronize with Central Database</b></big>\n"
"The following information may be synchronized with the HardInfo central "
"database."
msgstr ""

#: shell//syncmanager.c:72
msgid ""
"<big><b>Synchronizing</b></big>\n"
"This may take some time."
msgstr ""

#: shell//syncmanager.c:132
msgid ""
"HardInfo was compiled without libsoup support. (Network Updater requires it.)"
msgstr ""

#: shell//syncmanager.c:161
#: shell//syncmanager.c:185
#, c-format
msgid "%s (error #%d)"
msgstr ""

#: shell//syncmanager.c:170
#: shell//syncmanager.c:194
msgid "Could not parse XML-RPC response"
msgstr ""

#: shell//syncmanager.c:267
#, c-format
msgid ""
"Server says it supports API version %d, but this version of HardInfo only "
"supports API version %d."
msgstr ""

#: shell//syncmanager.c:362
msgid "Contacting HardInfo Central Database"
msgstr ""

#: shell//syncmanager.c:363
msgid "Cleaning up"
msgstr ""

#: shell//syncmanager.c:480
#, c-format
msgid "<s>%s</s> <i>(canceled)</i>"
msgstr ""

#: shell//syncmanager.c:497
#, c-format
msgid "<b><s>%s</s></b> <i>(failed)</i>"
msgstr ""

#: shell//syncmanager.c:509
#, c-format
msgid ""
"Failed while performing \"%s\". Please file a bug report if this problem "
"persists. (Use the Help→Report bug option.)\n"
"\n"
"Details: %s"
msgstr ""

#: shell//syncmanager.c:518
#, c-format
msgid ""
"Failed while performing \"%s\". Please file a bug report if this problem "
"persists. (Use the Help→Report bug option.)"
msgstr ""

#: shell//syncmanager.c:646
msgid "Network Updater"
msgstr ""

#: shell//syncmanager.c:727
msgid "_Synchronize"
msgstr ""

#: modules//benchmark.c:50
msgid "CPU Blowfish"
msgstr ""

#: modules//benchmark.c:51
msgid "CPU CryptoHash"
msgstr ""

#: modules//benchmark.c:52
msgid "CPU Fibonacci"
msgstr ""

#: modules//benchmark.c:53
msgid "CPU N-Queens"
msgstr ""

#: modules//benchmark.c:54
msgid "FPU FFT"
msgstr ""

#: modules//benchmark.c:55
msgid "FPU Raytracing"
msgstr ""

#: modules//benchmark.c:56
msgid "GPU Drawing"
msgstr ""

#: modules//benchmark.c:222
#, c-format
msgid ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=CPU Clock\n"
"ColumnTitle$Progress=Results\n"
"ColumnTitle$TextValue=CPU\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"<big><b>This Machine</b></big>=%.3f|%s MHz\n"
"%s"
msgstr ""

#: modules//benchmark.c:235
#, c-format
msgid ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=CPU Clock\n"
"ColumnTitle$Progress=Results\n"
"ColumnTitle$TextValue=CPU\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"%s"
msgstr ""

#: modules//benchmark.c:363
#, c-format
msgid "Benchmarking: <b>%s</b>."
msgstr ""

#: modules//benchmark.c:377
msgid "Benchmarking. Please do not move your mouse or press any keys."
msgstr ""

#: modules//benchmark.c:381
msgid "Cancel"
msgstr ""

#: modules//benchmark.c:511
msgid "Results in MiB/second. Higher is better."
msgstr ""

#: modules//benchmark.c:514
msgid "Results in HIMarks. Higher is better."
msgstr ""

#: modules//benchmark.c:521
msgid "Results in seconds. Lower is better."
msgstr ""

#: modules//benchmark.c:529
msgid "Benchmarks"
msgstr ""

#: modules//benchmark.c:547
msgid "Perform tasks and compare with other systems"
msgstr ""

#: modules//benchmark.c:634
msgid "Send benchmark results"
msgstr ""

#: modules//benchmark.c:639
msgid "Receive benchmark results"
msgstr ""

#: modules//computer/alsa.c:26
msgid "[Audio Devices]\n"
msgstr ""

#: modules//computer/alsa.c:33
#, c-format
msgid "Audio Adapter#%d=%s\n"
msgstr ""

#: modules//computer/boots.c:33
msgid "[Boots]\n"
msgstr ""

#: modules//computer/display.c:83
msgid "vendor string"
msgstr ""

#: modules//computer/display.c:84
msgid "X.Org version"
msgstr ""

#: modules//computer/display.c:85
msgid "XFree86 version"
msgstr ""

#: modules//computer/display.c:122
#, c-format
msgid "Monitor %d=%dx%d pixels\n"
msgstr ""

#: modules//computer/environment.c:32
msgid "[Environment Variables]\n"
msgstr ""

#: modules//computer/os.c:49
#, c-format
msgid "GNU C Library version %s (%sstable)"
msgstr ""

#: modules//computer/os.c:51
msgid "un"
msgstr ""

#: modules//computer/os.c:53
#: modules//computer/os.c:130
#: modules//devices/printers.c:99
#: modules//devices/printers.c:106
#: modules//devices/printers.c:116
#: modules//devices/printers.c:131
#: modules//devices/printers.c:140
#: modules//devices/printers.c:243
#: modules//devices.c:154
#: modules//devices.c:197
msgid "Unknown"
msgstr ""

#: modules//computer/os.c:72
#, c-format
msgid "Version: %s"
msgstr ""

#: modules//computer/os.c:106
msgid "Terminal"
msgstr ""

#: modules//computer/os.c:126
#, c-format
msgid "Unknown (Window Manager: %s)"
msgstr ""

#: modules//computer/os.c:166
msgid "Unknown distribution"
msgstr ""

#: modules//computer.c:68
msgid "Summary"
msgstr ""

#: modules//computer.c:69
msgid "Operating System"
msgstr ""

#: modules//computer.c:70
msgid "Kernel Modules"
msgstr ""

#: modules//computer.c:71
msgid "Boots"
msgstr ""

#: modules//computer.c:72
msgid "Languages"
msgstr ""

#: modules//computer.c:73
msgid "Filesystems"
msgstr ""

#: modules//computer.c:74
msgid "Display"
msgstr ""

#: modules//computer.c:75
msgid "Environment Variables"
msgstr ""

#: modules//computer.c:77
msgid "Development"
msgstr ""

#: modules//computer.c:79
msgid "Users"
msgstr ""

#: modules//computer.c:80
msgid "Groups"
msgstr ""

#: modules//computer.c:104
#, c-format
msgid "%dMB (%dMB used)"
msgstr ""

#: modules//computer.c:200
msgid "Scripting Languages"
msgstr ""

#: modules//computer.c:201
msgid "CPython"
msgstr ""

#: modules//computer.c:202
msgid "Perl"
msgstr ""

#: modules//computer.c:203
msgid "PHP"
msgstr ""

#: modules//computer.c:204
msgid "Ruby"
msgstr ""

#: modules//computer.c:205
msgid "Bash"
msgstr ""

#: modules//computer.c:206
msgid "Compilers"
msgstr ""

#: modules//computer.c:207
msgid "C (GCC)"
msgstr ""

#: modules//computer.c:208
msgid "Java"
msgstr ""

#: modules//computer.c:209
msgid "CSharp (Mono, old)"
msgstr ""

#: modules//computer.c:210
msgid "CSharp (Mono)"
msgstr ""

#: modules//computer.c:211
msgid "Vala"
msgstr ""

#: modules//computer.c:212
msgid "Haskell (GHC)"
msgstr ""

#: modules//computer.c:213
msgid "FreePascal"
msgstr ""

#: modules//computer.c:214
msgid "Tools"
msgstr ""

#: modules//computer.c:262
#, c-format
msgid "%s=Not found\n"
msgstr ""

#: modules//computer.c:265
#, c-format
msgid "Detecting version: %s"
msgstr ""

#: modules//computer.c:276
#, c-format
msgid ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Program\n"
"ColumnTitle$Value=Version\n"
"ShowColumnHeaders=true\n"
"%s"
msgstr ""

#: modules//computer.c:356
msgid "Physical machine"
msgstr ""

#: modules//computer.c:373
#, c-format
msgid ""
"[$ShellParam$]\n"
"UpdateInterval$Memory=1000\n"
"UpdateInterval$Date/Time=1000\n"
"#ReloadInterval=5000\n"
"[Computer]\n"
"Processor=%s\n"
"Memory=...\n"
"Machine Type=%s\n"
"Operating System=%s\n"
"User Name=%s\n"
"Date/Time=...\n"
"[Display]\n"
"Resolution=%dx%d pixels\n"
"OpenGL Renderer=%s\n"
"X11 Vendor=%s\n"
"\n"
"%s\n"
"[Input Devices]\n"
"%s\n"
"\n"
"%s\n"
"\n"
"%s\n"
msgstr ""

#: modules//computer.c:415
#, c-format
msgid ""
"[$ShellParam$]\n"
"UpdateInterval$Uptime=10000\n"
"UpdateInterval$Load Average=1000\n"
"[Version]\n"
"Kernel=%s\n"
"Version=%s\n"
"C Library=%s\n"
"Distribution=%s\n"
"[Current Session]\n"
"Computer Name=%s\n"
"User Name=%s\n"
"#Language=%s\n"
"Home Directory=%s\n"
"Desktop Environment=%s\n"
"[Misc]\n"
"Uptime=...\n"
"Load Average=..."
msgstr ""

#: modules//computer.c:444
#, c-format
msgid ""
"[Loaded Modules]\n"
"%s[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Name\n"
"ColumnTitle$Value=Description\n"
"ShowColumnHeaders=true\n"
msgstr ""

#: modules//computer.c:455
#, c-format
msgid ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Date & Time\n"
"ColumnTitle$Value=Kernel Version\n"
"ShowColumnHeaders=true\n"
"\n"
"%s"
msgstr ""

#: modules//computer.c:465
#, c-format
msgid ""
"[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Language Code\n"
"ColumnTitle$Value=Name\n"
"ShowColumnHeaders=true\n"
"[Available Languages]\n"
"%s"
msgstr ""

#: modules//computer.c:476
#, c-format
msgid ""
"[$ShellParam$]\n"
"ViewType=4\n"
"ReloadInterval=5000\n"
"Zebra=1\n"
"NormalizePercentage=false\n"
"ColumnTitle$Extra1=Mount Point\n"
"ColumnTitle$Progress=Usage\n"
"ColumnTitle$TextValue=Device\n"
"ShowColumnHeaders=true\n"
"[Mounted File Systems]\n"
"%s\n"
msgstr ""

#: modules//computer.c:490
#, c-format
msgid ""
"[Display]\n"
"Resolution=%dx%d pixels\n"
"Vendor=%s\n"
"Version=%s\n"
"[Monitors]\n"
"%s[Extensions]\n"
"%s[OpenGL]\n"
"Vendor=%s\n"
"Renderer=%s\n"
"Version=%s\n"
"Direct Rendering=%s\n"
msgstr ""

#: modules//computer.c:512
msgid "Y_es"
msgstr ""

#: modules//computer.c:512
#: modules//devices/printers.c:138
#: hardinfo//hardinfo.c:63
msgid "No"
msgstr ""

#: modules//computer.c:526
#, c-format
msgid ""
"[$ShellParam$]\n"
"ReloadInterval=10000\n"
"ColumnTitle$TextValue=Name\n"
"ColumnTitle$Value=Group ID\n"
"ShowColumnHeaders=true\n"
"[Groups]\n"
"%s\n"
msgstr ""

#: modules//computer.c:606
msgid "Computer"
msgstr ""

#: modules//computer.c:700
msgid "Gathers high-level computer information"
msgstr ""

#: modules//devices/battery.c:181
#, c-format
msgid ""
"\n"
"[Battery: %s]\n"
"State=%s (load: %s)\n"
"Capacity=%s / %s (%.2f%%)\n"
"Battery Technology=%s (%s)\n"
"Manufacturer=%s\n"
"Model Number=%s\n"
"Serial Number=%s\n"
msgstr ""

#: modules//devices/battery.c:266
#, c-format
msgid ""
"\n"
"[Battery (APM)]\n"
"Charge=%d%%\n"
"Remaining Charge=%s of %s\n"
"Using=%s\n"
"APM driver version=%s\n"
"APM BIOS version=%s\n"
msgstr ""

#: modules//devices/battery.c:278
#, c-format
msgid ""
"\n"
"[Battery (APM)]\n"
"Charge=%d%%\n"
"Using=%s\n"
"APM driver version=%s\n"
"APM BIOS version=%s\n"
msgstr ""

#: modules//devices/battery.c:304
msgid ""
"[No batteries]\n"
"No batteries found on this system=\n"
msgstr ""

#: modules//devices/printers.c:81
msgid "⚬ Can do black and white printing=\n"
msgstr ""

#: modules//devices/printers.c:83
msgid "⚬ Can do color printing=\n"
msgstr ""

#: modules//devices/printers.c:85
msgid "⚬ Can do duplexing=\n"
msgstr ""

#: modules//devices/printers.c:87
msgid "⚬ Can do staple output=\n"
msgstr ""

#: modules//devices/printers.c:89
msgid "⚬ Can do copies=\n"
msgstr ""

#: modules//devices/printers.c:91
msgid "⚬ Can collate copies=\n"
msgstr ""

#: modules//devices/printers.c:93
msgid "⚬ Printer is rejecting jobs=\n"
msgstr ""

#: modules//devices/printers.c:95
msgid "⚬ Printer was automatically discovered and added=\n"
msgstr ""

#: modules//devices/printers.c:110
msgid "Idle"
msgstr ""

#: modules//devices/printers.c:112
msgid "Printing a Job"
msgstr ""

#: modules//devices/printers.c:114
msgid "Stopped"
msgstr ""

#: modules//devices/printers.c:138
#: hardinfo//hardinfo.c:62
#: hardinfo//hardinfo.c:63
msgid "Yes"
msgstr ""

#: modules//devices/printers.c:190
msgid ""
"[Printers]\n"
"No suitable CUPS library found="
msgstr ""

#: modules//devices/printers.c:200
msgid "[Printers (CUPS)]\n"
msgstr ""

#: modules//devices/printers.c:263
msgid ""
"[Printers]\n"
"No printers found=\n"
msgstr ""

#: modules//devices/storage.c:46
msgid ""
"\n"
"[SCSI Disks]\n"
msgstr ""

#: modules//devices/storage.c:110
#: modules//devices/storage.c:297
#, c-format
msgid ""
"[Device Information]\n"
"Model=%s\n"
msgstr ""

#: modules//devices/storage.c:115
#: modules//devices/storage.c:304
#, c-format
msgid "Vendor=%s (%s)\n"
msgstr ""

#: modules//devices/storage.c:120
#: modules//devices/storage.c:309
#, c-format
msgid "Vendor=%s\n"
msgstr ""

#: modules//devices/storage.c:125
#, c-format
msgid ""
"Type=%s\n"
"Revision=%s\n"
"[SCSI Controller]\n"
"Controller=scsi%d\n"
"Channel=%d\n"
"ID=%d\n"
"LUN=%d\n"
msgstr ""

#: modules//devices/storage.c:169
msgid ""
"\n"
"[IDE Disks]\n"
msgstr ""

#: modules//devices/storage.c:242
#, c-format
msgid "Driver=%s\n"
msgstr ""

#: modules//devices/storage.c:314
#, c-format
msgid ""
"Device Name=hd%c\n"
"Media=%s\n"
"Cache=%dkb\n"
msgstr ""

#: modules//devices/storage.c:329
#, c-format
msgid ""
"[Geometry]\n"
"Physical=%s\n"
"Logical=%s\n"
msgstr ""

#: modules//devices/storage.c:341
#, c-format
msgid ""
"[Capabilities]\n"
"%s"
msgstr ""

#: modules//devices/storage.c:348
#, c-format
msgid ""
"[Speeds]\n"
"%s"
msgstr ""

#: modules//devices.c:74
msgid "Processor"
msgstr ""

#: modules//devices.c:75
msgid "Memory"
msgstr ""

#: modules//devices.c:76
msgid "PCI Devices"
msgstr ""

#: modules//devices.c:77
msgid "USB Devices"
msgstr ""

#: modules//devices.c:78
msgid "Printers"
msgstr ""

#: modules//devices.c:79
msgid "Battery"
msgstr ""

#: modules//devices.c:80
msgid "Sensors"
msgstr ""

#: modules//devices.c:81
msgid "Input Devices"
msgstr ""

#: modules//devices.c:82
msgid "Storage"
msgstr ""

#: modules//devices.c:84
msgid "DMI"
msgstr ""

#: modules//devices.c:85
msgid "Memory SPD"
msgstr ""

#: modules//devices.c:87
msgid "Resources"
msgstr ""

#: modules//devices.c:178
msgid "Total Memory"
msgstr ""

#: modules//devices.c:193
msgid " (vendor unknown)"
msgstr ""

#: modules//devices.c:195
msgid " (model unknown)"
msgstr ""

#: modules//devices.c:412
msgid "Devices"
msgstr ""

#: modules//devices.c:424
msgid "Update PCI ID listing"
msgstr ""

#: modules//devices.c:436
msgid "Update CPU feature database"
msgstr ""

#: modules//devices.c:464
msgid "Gathers information about hardware devices"
msgstr ""

#: modules//network.c:59
msgid "Interfaces"
msgstr ""

#: modules//network.c:60
msgid "IP Connections"
msgstr ""

#: modules//network.c:61
msgid "Routing Table"
msgstr ""

#: modules//network.c:62
msgid "ARP Table"
msgstr ""

#: modules//network.c:63
msgid "DNS Servers"
msgstr ""

#: modules//network.c:64
msgid "Statistics"
msgstr ""

#: modules//network.c:65
msgid "Shared Directories"
msgstr ""

#: modules//network.c:300
#, c-format
msgid ""
"[ARP Table]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=IP Address\n"
"ColumnTitle$Value=Interface\n"
"ColumnTitle$Extra1=MAC Address\n"
"ShowColumnHeaders=true\n"
msgstr ""

#: modules//network.c:321
#, c-format
msgid ""
"[Name servers]\n"
"%s\n"
"[$ShellParam$]\n"
"ColumnTitle$TextValue=IP Address\n"
"ColumnTitle$Value=Name\n"
"ShowColumnHeaders=true\n"
msgstr ""

#: modules//network.c:331
#, c-format
msgid ""
"[Connections]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Local Address\n"
"ColumnTitle$Value=Protocol\n"
"ColumnTitle$Extra1=Foreign Address\n"
"ColumnTitle$Extra2=State\n"
"ShowColumnHeaders=true\n"
msgstr ""

#: modules//network.c:345
#, c-format
msgid ""
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Interface\n"
"ColumnTitle$Value=IP Address\n"
"ColumnTitle$Extra1=Sent\n"
"ColumnTitle$Extra2=Received\n"
"ShowColumnHeaders=true\n"
"%s"
msgstr ""

#: modules//network.c:361
#, c-format
msgid ""
"[IP routing table]\n"
"%s\n"
"[$ShellParam$]\n"
"ViewType=0\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Destination / Gateway\n"
"ColumnTitle$Value=Interface\n"
"ColumnTitle$Extra1=Flags\n"
"ColumnTitle$Extra2=Mask\n"
"ShowColumnHeaders=true\n"
msgstr ""

#: modules//network.c:399
msgid "Network"
msgstr ""

#: modules//network.c:432
msgid "Gathers information about this computer's network connection"
msgstr ""

#: hardinfo//hardinfo.c:54
msgid ""
"Copyright (C) 2003-2009 Leandro A. F. Pereira. See COPYING for details.\n"
"\n"
msgstr ""

#: hardinfo//hardinfo.c:56
#, c-format
msgid ""
"Compile-time options:\n"
"  Release version:   %s (%s)\n"
"  BinReloc enabled:  %s\n"
"  Data prefix:       %s\n"
"  Library prefix:    %s\n"
"  Compiled on:       %s %s (%s)\n"
msgstr ""

#: hardinfo//hardinfo.c:74
#, c-format
msgid ""
"Failed to find runtime data.\n"
"\n"
"• Is HardInfo correctly installed?\n"
"• See if %s and %s exists and you have read permision."
msgstr ""

#: hardinfo//hardinfo.c:81
#, c-format
msgid ""
"Modules:\n"
"%-20s%-15s%-12s\n"
msgstr ""

#: hardinfo//hardinfo.c:82
msgid "File Name"
msgstr ""

#: hardinfo//hardinfo.c:82
msgid "Name"
msgstr ""

#: hardinfo//hardinfo.c:82
msgid "Version"
msgstr ""

#: hardinfo//hardinfo.c:135
#, c-format
msgid "Unknown benchmark ``%s'' or libbenchmark.so not loaded"
msgstr ""

#: hardinfo//hardinfo.c:163
msgid "Don't know what to do. Exiting."
msgstr ""

#: hardinfo//util.c:102
#: hardinfo//util.c:105
#: hardinfo//util.c:110
#, c-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] ""
msgstr[1] ""

#: hardinfo//util.c:104
#, c-format
msgid "%d hour, "
msgid_plural "%d hours, "
msgstr[0] ""
msgstr[1] ""

#: hardinfo//util.c:108
#, c-format
msgid "%d day, "
msgid_plural "%d days, "
msgstr[0] ""
msgstr[1] ""

#: hardinfo//util.c:109
#, c-format
msgid "%d hour and "
msgid_plural "%d hours and "
msgstr[0] ""
msgstr[1] ""

#: hardinfo//util.c:116
#, c-format
msgid "%.1f B"
msgstr ""

#: hardinfo//util.c:118
#, c-format
msgid "%.1f KiB"
msgstr ""

#: hardinfo//util.c:120
#, c-format
msgid "%.1f MiB"
msgstr ""

#: hardinfo//util.c:122
#, c-format
msgid "%.1f GiB"
msgstr ""

#: hardinfo//util.c:336
msgid "Error"
msgstr ""

#: hardinfo//util.c:336
#: hardinfo//util.c:352
msgid "Warning"
msgstr ""

#: hardinfo//util.c:351
msgid "Fatal Error"
msgstr ""

#: hardinfo//util.c:376
msgid "creates a report and prints to standard output"
msgstr ""

#: hardinfo//util.c:382
msgid "chooses a report format (text, html)"
msgstr ""

#: hardinfo//util.c:388
msgid "run benchmark; requires benchmark.so to be loaded"
msgstr ""

#: hardinfo//util.c:394
msgid "lists modules"
msgstr ""

#: hardinfo//util.c:400
msgid "specify module to load"
msgstr ""

#: hardinfo//util.c:406
msgid "automatically load module dependencies"
msgstr ""

#: hardinfo//util.c:413
msgid "run in XML-RPC server mode"
msgstr ""

#: hardinfo//util.c:420
msgid "shows program version and quit"
msgstr ""

#: hardinfo//util.c:425
msgid "- System Profiler and Benchmark tool"
msgstr ""

#: hardinfo//util.c:435
#, c-format
msgid ""
"Unrecognized arguments.\n"
"Try ``%s --help'' for more information.\n"
msgstr ""

#: hardinfo//util.c:501
#, c-format
msgid "Couldn't find a Web browser to open URL %s."
msgstr ""

#: hardinfo//util.c:848
#, c-format
msgid "Module \"%s\" depends on module \"%s\", load it?"
msgstr ""

#: hardinfo//util.c:871
#, c-format
msgid "Module \"%s\" depends on module \"%s\"."
msgstr ""

#: hardinfo//util.c:916
#, c-format
msgid "No module could be loaded. Check permissions on \"%s\" and try again."
msgstr ""

#: hardinfo//util.c:920
msgid ""
"No module could be loaded. Please use hardinfo -l to list all available "
"modules and try again with a valid module list."
msgstr ""

#: hardinfo//util.c:1096
#, c-format
msgid "Scanning: %s..."
msgstr ""

Added po/hardinfo.pot.







































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-05 17:29+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"

#: shell//report.c:492
msgid "Save File"
msgstr ""

#: shell//report.c:616
msgid "Cannot create ReportContext. Programming bug?"
msgstr ""

#: shell//report.c:634
msgid "Open the report with your web browser?"
msgstr ""

#: shell//report.c:662
msgid "Generating report..."
msgstr ""

#: shell//report.c:672
msgid "Report saved."
msgstr ""

#: shell//report.c:674
msgid "Error while creating the report."
msgstr ""

#: shell//report.c:776
msgid "Generate Report"
msgstr ""

#: shell//report.c:793
msgid ""
"<big><b>Generate Report</b></big>\n"
"Please choose the information that you wish to view in your report:"
msgstr ""

#: shell//report.c:853
msgid "Select _None"
msgstr ""

#: shell//report.c:860
msgid "Select _All"
msgstr ""

#: shell//report.c:878
msgid "_Generate"
msgstr ""

#: shell//menu.c:35
msgid "_Information"
msgstr ""

#: shell//menu.c:36
msgid "_Remote"
msgstr ""

#: shell//menu.c:37
msgid "_View"
msgstr ""

#: shell//menu.c:38
msgid "_Help"
msgstr ""

#: shell//menu.c:39
msgid "About _Modules"
msgstr ""

#: shell//menu.c:43
msgid "Generate _Report"
msgstr ""

#: shell//menu.c:48
msgid "_Network Updater..."
msgstr ""

#: shell//menu.c:53
msgid "_Open..."
msgstr ""

#: shell//menu.c:58
msgid "_Connect to..."
msgstr ""

#: shell//menu.c:63
msgid "_Manage hosts..."
msgstr ""

#: shell//menu.c:68
msgid "_Local computer"
msgstr ""

#: shell//menu.c:73
msgid "_Copy to Clipboard"
msgstr ""

#: shell//menu.c:74
msgid "Copy to clipboard"
msgstr ""

#: shell//menu.c:78
msgid "_Save image as..."
msgstr ""

#: shell//menu.c:83
msgid "_Refresh"
msgstr ""

#: shell//menu.c:88
msgid "Contents"
msgstr ""

#: shell//menu.c:93
#: shell//shell.c:1790
#: shell//shell.c:1807
msgid "Context help"
msgstr ""

#: shell//menu.c:98
msgid "_Open HardInfo Web Site"
msgstr ""

#: shell//menu.c:103
msgid "_Report bug"
msgstr ""

#: shell//menu.c:108
msgid "_Donate to the project"
msgstr ""

#: shell//menu.c:113
msgid "_About HardInfo"
msgstr ""

#: shell//menu.c:114
msgid "Displays program version information"
msgstr ""

#: shell//menu.c:118
msgid "_Quit"
msgstr ""

#: shell//menu.c:125
msgid "_Side Pane"
msgstr ""

#: shell//menu.c:126
msgid "Toggles side pane visibility"
msgstr ""

#: shell//menu.c:129
msgid "_Toolbar"
msgstr ""

#: shell//menu.c:133
msgid "_Accept connections"
msgstr ""

#: shell//callbacks.c:71
#, c-format
msgid "Remote: <b>%s</b>"
msgstr ""

#: shell//callbacks.c:117
msgid "Disconnecting..."
msgstr ""

#: shell//callbacks.c:120
msgid "Unloading modules..."
msgstr ""

#: shell//callbacks.c:123
msgid "Loading local modules..."
msgstr ""

#: shell//callbacks.c:130
#: shell//callbacks.c:162
#: shell//shell.c:314
#: shell//shell.c:814
#: shell//shell.c:1796
#: modules//benchmark.c:431
#: modules//benchmark.c:439
#: hardinfo//util.c:1106
msgid "Done."
msgstr ""

#: shell//callbacks.c:142
msgid "Save Image"
msgstr ""

#: shell//callbacks.c:158
msgid "Saving image..."
msgstr ""

#: shell//callbacks.c:236
msgid "No context help available."
msgstr ""

#: shell//callbacks.c:318
#, c-format
msgid "%s Module"
msgstr ""

#: shell//callbacks.c:325
#, c-format
msgid ""
"Written by %s\n"
"Licensed under %s"
msgstr ""

#: shell//callbacks.c:339
#, c-format
msgid "No about information is associated with the %s module."
msgstr ""

#: shell//callbacks.c:353
msgid "Author:"
msgstr ""

#: shell//callbacks.c:356
msgid "Contributors:"
msgstr ""

#: shell//callbacks.c:360
msgid "Based on work by:"
msgstr ""

#: shell//callbacks.c:361
msgid "MD5 implementation by Colin Plumb (see md5.c for details)"
msgstr ""

#: shell//callbacks.c:362
msgid "SHA1 implementation by Steve Reid (see sha1.c for details)"
msgstr ""

#: shell//callbacks.c:363
msgid "Blowfish implementation by Paul Kocher (see blowfich.c for details)"
msgstr ""

#: shell//callbacks.c:364
msgid "Raytracing benchmark by John Walker (see fbench.c for details)"
msgstr ""

#: shell//callbacks.c:365
msgid "FFT benchmark by Scott Robert Ladd (see fftbench.c for details)"
msgstr ""

#: shell//callbacks.c:366
msgid "Some code partly based on x86cpucaps by Osamu Kayasono"
msgstr ""

#: shell//callbacks.c:367
msgid "Vendor list based on GtkSysInfo by Pissens Sebastien"
msgstr ""

#: shell//callbacks.c:368
msgid "DMI support based on code by Stewart Adam"
msgstr ""

#: shell//callbacks.c:369
msgid "SCSI support based on code by Pascal F. Martin"
msgstr ""

#: shell//callbacks.c:373
msgid "Jakub Szypulka"
msgstr ""

#: shell//callbacks.c:374
msgid "Tango Project"
msgstr ""

#: shell//callbacks.c:375
msgid "The GNOME Project"
msgstr ""

#: shell//callbacks.c:376
msgid "VMWare, Inc. (USB icon from VMWare Workstation 6)"
msgstr ""

#: shell//callbacks.c:387
msgid "System information and benchmark tool"
msgstr ""

#: shell//callbacks.c:392
msgid ""
"HardInfo is free software; you can redistribute it and/or modify it under "
"the terms of the GNU General Public License as published by the Free "
"Software Foundation, version 2.\n"
"\n"
"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.\n"
"\n"
"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., 51 "
"Franklin St, Fifth Floor, Boston, MA  02110-1301 USA"
msgstr ""

#: shell//shell.c:407
#, c-format
msgid "%s - System Information"
msgstr ""

#: shell//shell.c:412
msgid "System Information"
msgstr ""

#: shell//shell.c:801
msgid "Loading modules..."
msgstr ""

#: shell//shell.c:1650
#, c-format
msgid "<b>%s → Summary</b>"
msgstr ""

#: shell//shell.c:1758
msgid "Updating..."
msgstr ""

#: shell//syncmanager.c:69
msgid ""
"<big><b>Synchronize with Central Database</b></big>\n"
"The following information may be synchronized with the HardInfo central "
"database."
msgstr ""

#: shell//syncmanager.c:72
msgid ""
"<big><b>Synchronizing</b></big>\n"
"This may take some time."
msgstr ""

#: shell//syncmanager.c:132
msgid ""
"HardInfo was compiled without libsoup support. (Network Updater requires it.)"
msgstr ""

#: shell//syncmanager.c:161
#: shell//syncmanager.c:185
#, c-format
msgid "%s (error #%d)"
msgstr ""

#: shell//syncmanager.c:170
#: shell//syncmanager.c:194
msgid "Could not parse XML-RPC response"
msgstr ""

#: shell//syncmanager.c:267
#, c-format
msgid ""
"Server says it supports API version %d, but this version of HardInfo only "
"supports API version %d."
msgstr ""

#: shell//syncmanager.c:362
msgid "Contacting HardInfo Central Database"
msgstr ""

#: shell//syncmanager.c:363
msgid "Cleaning up"
msgstr ""

#: shell//syncmanager.c:480
#, c-format
msgid "<s>%s</s> <i>(canceled)</i>"
msgstr ""

#: shell//syncmanager.c:497
#, c-format
msgid "<b><s>%s</s></b> <i>(failed)</i>"
msgstr ""

#: shell//syncmanager.c:509
#, c-format
msgid ""
"Failed while performing \"%s\". Please file a bug report if this problem "
"persists. (Use the Help→Report bug option.)\n"
"\n"
"Details: %s"
msgstr ""

#: shell//syncmanager.c:518
#, c-format
msgid ""
"Failed while performing \"%s\". Please file a bug report if this problem "
"persists. (Use the Help→Report bug option.)"
msgstr ""

#: shell//syncmanager.c:646
msgid "Network Updater"
msgstr ""

#: shell//syncmanager.c:727
msgid "_Synchronize"
msgstr ""

#: modules//computer.c:68
msgid "Summary"
msgstr ""

#: modules//computer.c:69
msgid "Operating System"
msgstr ""

#: modules//computer.c:70
msgid "Kernel Modules"
msgstr ""

#: modules//computer.c:71
msgid "Boots"
msgstr ""

#: modules//computer.c:72
msgid "Languages"
msgstr ""

#: modules//computer.c:73
msgid "Filesystems"
msgstr ""

#: modules//computer.c:74
msgid "Display"
msgstr ""

#: modules//computer.c:75
msgid "Environment Variables"
msgstr ""

#: modules//computer.c:77
msgid "Development"
msgstr ""

#: modules//computer.c:79
msgid "Users"
msgstr ""

#: modules//computer.c:80
msgid "Groups"
msgstr ""

#: modules//computer.c:104
#, c-format
msgid "%dMB (%dMB used)"
msgstr ""

#: modules//computer.c:200
msgid "Scripting Languages"
msgstr ""

#: modules//computer.c:201
msgid "CPython"
msgstr ""

#: modules//computer.c:202
msgid "Perl"
msgstr ""

#: modules//computer.c:203
msgid "PHP"
msgstr ""

#: modules//computer.c:204
msgid "Ruby"
msgstr ""

#: modules//computer.c:205
msgid "Bash"
msgstr ""

#: modules//computer.c:206
msgid "Compilers"
msgstr ""

#: modules//computer.c:207
msgid "C (GCC)"
msgstr ""

#: modules//computer.c:208
msgid "Java"
msgstr ""

#: modules//computer.c:209
msgid "CSharp (Mono, old)"
msgstr ""

#: modules//computer.c:210
msgid "CSharp (Mono)"
msgstr ""

#: modules//computer.c:211
msgid "Vala"
msgstr ""

#: modules//computer.c:212
msgid "Haskell (GHC)"
msgstr ""

#: modules//computer.c:213
msgid "FreePascal"
msgstr ""

#: modules//computer.c:214
msgid "Tools"
msgstr ""

#: modules//computer.c:262
#, c-format
msgid "%s=Not found\n"
msgstr ""

#: modules//computer.c:265
#, c-format
msgid "Detecting version: %s"
msgstr ""

#: modules//computer.c:276
#, c-format
msgid ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Program\n"
"ColumnTitle$Value=Version\n"
"ShowColumnHeaders=true\n"
"%s"
msgstr ""

#: modules//computer.c:356
msgid "Physical machine"
msgstr ""

#: modules//computer.c:373
#, c-format
msgid ""
"[$ShellParam$]\n"
"UpdateInterval$Memory=1000\n"
"UpdateInterval$Date/Time=1000\n"
"#ReloadInterval=5000\n"
"[Computer]\n"
"Processor=%s\n"
"Memory=...\n"
"Machine Type=%s\n"
"Operating System=%s\n"
"User Name=%s\n"
"Date/Time=...\n"
"[Display]\n"
"Resolution=%dx%d pixels\n"
"OpenGL Renderer=%s\n"
"X11 Vendor=%s\n"
"\n"
"%s\n"
"[Input Devices]\n"
"%s\n"
"\n"
"%s\n"
"\n"
"%s\n"
msgstr ""

#: modules//computer.c:415
#, c-format
msgid ""
"[$ShellParam$]\n"
"UpdateInterval$Uptime=10000\n"
"UpdateInterval$Load Average=1000\n"
"[Version]\n"
"Kernel=%s\n"
"Version=%s\n"
"C Library=%s\n"
"Distribution=%s\n"
"[Current Session]\n"
"Computer Name=%s\n"
"User Name=%s\n"
"#Language=%s\n"
"Home Directory=%s\n"
"Desktop Environment=%s\n"
"[Misc]\n"
"Uptime=...\n"
"Load Average=..."
msgstr ""

#: modules//computer.c:444
#, c-format
msgid ""
"[Loaded Modules]\n"
"%s[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Name\n"
"ColumnTitle$Value=Description\n"
"ShowColumnHeaders=true\n"
msgstr ""

#: modules//computer.c:455
#, c-format
msgid ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Date & Time\n"
"ColumnTitle$Value=Kernel Version\n"
"ShowColumnHeaders=true\n"
"\n"
"%s"
msgstr ""

#: modules//computer.c:465
#, c-format
msgid ""
"[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Language Code\n"
"ColumnTitle$Value=Name\n"
"ShowColumnHeaders=true\n"
"[Available Languages]\n"
"%s"
msgstr ""

#: modules//computer.c:476
#, c-format
msgid ""
"[$ShellParam$]\n"
"ViewType=4\n"
"ReloadInterval=5000\n"
"Zebra=1\n"
"NormalizePercentage=false\n"
"ColumnTitle$Extra1=Mount Point\n"
"ColumnTitle$Progress=Usage\n"
"ColumnTitle$TextValue=Device\n"
"ShowColumnHeaders=true\n"
"[Mounted File Systems]\n"
"%s\n"
msgstr ""

#: modules//computer.c:490
#, c-format
msgid ""
"[Display]\n"
"Resolution=%dx%d pixels\n"
"Vendor=%s\n"
"Version=%s\n"
"[Monitors]\n"
"%s[Extensions]\n"
"%s[OpenGL]\n"
"Vendor=%s\n"
"Renderer=%s\n"
"Version=%s\n"
"Direct Rendering=%s\n"
msgstr ""

#: modules//computer.c:512
msgid "Y_es"
msgstr ""

#: modules//computer.c:512
#: modules//devices/printers.c:138
#: hardinfo//hardinfo.c:63
msgid "No"
msgstr ""

#: modules//computer.c:526
#, c-format
msgid ""
"[$ShellParam$]\n"
"ReloadInterval=10000\n"
"ColumnTitle$TextValue=Name\n"
"ColumnTitle$Value=Group ID\n"
"ShowColumnHeaders=true\n"
"[Groups]\n"
"%s\n"
msgstr ""

#: modules//computer.c:606
msgid "Computer"
msgstr ""

#: modules//computer.c:700
msgid "Gathers high-level computer information"
msgstr ""

#: modules//devices.c:74
msgid "Processor"
msgstr ""

#: modules//devices.c:75
msgid "Memory"
msgstr ""

#: modules//devices.c:76
msgid "PCI Devices"
msgstr ""

#: modules//devices.c:77
msgid "USB Devices"
msgstr ""

#: modules//devices.c:78
msgid "Printers"
msgstr ""

#: modules//devices.c:79
msgid "Battery"
msgstr ""

#: modules//devices.c:80
msgid "Sensors"
msgstr ""

#: modules//devices.c:81
msgid "Input Devices"
msgstr ""

#: modules//devices.c:82
msgid "Storage"
msgstr ""

#: modules//devices.c:84
msgid "DMI"
msgstr ""

#: modules//devices.c:85
msgid "Memory SPD"
msgstr ""

#: modules//devices.c:87
msgid "Resources"
msgstr ""

#: modules//devices.c:154
#: modules//devices.c:197
#: modules//computer/os.c:53
#: modules//computer/os.c:130
#: modules//devices/printers.c:99
#: modules//devices/printers.c:106
#: modules//devices/printers.c:116
#: modules//devices/printers.c:131
#: modules//devices/printers.c:140
#: modules//devices/printers.c:243
msgid "Unknown"
msgstr ""

#: modules//devices.c:178
msgid "Total Memory"
msgstr ""

#: modules//devices.c:193
msgid " (vendor unknown)"
msgstr ""

#: modules//devices.c:195
msgid " (model unknown)"
msgstr ""

#: modules//devices.c:412
msgid "Devices"
msgstr ""

#: modules//devices.c:424
msgid "Update PCI ID listing"
msgstr ""

#: modules//devices.c:436
msgid "Update CPU feature database"
msgstr ""

#: modules//devices.c:464
msgid "Gathers information about hardware devices"
msgstr ""

#: modules//computer/boots.c:33
msgid "[Boots]\n"
msgstr ""

#: modules//computer/environment.c:32
msgid "[Environment Variables]\n"
msgstr ""

#: modules//computer/display.c:83
msgid "vendor string"
msgstr ""

#: modules//computer/display.c:84
msgid "X.Org version"
msgstr ""

#: modules//computer/display.c:85
msgid "XFree86 version"
msgstr ""

#: modules//computer/display.c:122
#, c-format
msgid "Monitor %d=%dx%d pixels\n"
msgstr ""

#: modules//computer/alsa.c:26
msgid "[Audio Devices]\n"
msgstr ""

#: modules//computer/alsa.c:33
#, c-format
msgid "Audio Adapter#%d=%s\n"
msgstr ""

#: modules//computer/os.c:49
#, c-format
msgid "GNU C Library version %s (%sstable)"
msgstr ""

#: modules//computer/os.c:51
msgid "un"
msgstr ""

#: modules//computer/os.c:72
#, c-format
msgid "Version: %s"
msgstr ""

#: modules//computer/os.c:106
msgid "Terminal"
msgstr ""

#: modules//computer/os.c:126
#, c-format
msgid "Unknown (Window Manager: %s)"
msgstr ""

#: modules//computer/os.c:166
msgid "Unknown distribution"
msgstr ""

#: modules//devices/battery.c:181
#, c-format
msgid ""
"\n"
"[Battery: %s]\n"
"State=%s (load: %s)\n"
"Capacity=%s / %s (%.2f%%)\n"
"Battery Technology=%s (%s)\n"
"Manufacturer=%s\n"
"Model Number=%s\n"
"Serial Number=%s\n"
msgstr ""

#: modules//devices/battery.c:266
#, c-format
msgid ""
"\n"
"[Battery (APM)]\n"
"Charge=%d%%\n"
"Remaining Charge=%s of %s\n"
"Using=%s\n"
"APM driver version=%s\n"
"APM BIOS version=%s\n"
msgstr ""

#: modules//devices/battery.c:278
#, c-format
msgid ""
"\n"
"[Battery (APM)]\n"
"Charge=%d%%\n"
"Using=%s\n"
"APM driver version=%s\n"
"APM BIOS version=%s\n"
msgstr ""

#: modules//devices/battery.c:304
msgid ""
"[No batteries]\n"
"No batteries found on this system=\n"
msgstr ""

#: modules//devices/printers.c:81
msgid "⚬ Can do black and white printing=\n"
msgstr ""

#: modules//devices/printers.c:83
msgid "⚬ Can do color printing=\n"
msgstr ""

#: modules//devices/printers.c:85
msgid "⚬ Can do duplexing=\n"
msgstr ""

#: modules//devices/printers.c:87
msgid "⚬ Can do staple output=\n"
msgstr ""

#: modules//devices/printers.c:89
msgid "⚬ Can do copies=\n"
msgstr ""

#: modules//devices/printers.c:91
msgid "⚬ Can collate copies=\n"
msgstr ""

#: modules//devices/printers.c:93
msgid "⚬ Printer is rejecting jobs=\n"
msgstr ""

#: modules//devices/printers.c:95
msgid "⚬ Printer was automatically discovered and added=\n"
msgstr ""

#: modules//devices/printers.c:110
msgid "Idle"
msgstr ""

#: modules//devices/printers.c:112
msgid "Printing a Job"
msgstr ""

#: modules//devices/printers.c:114
msgid "Stopped"
msgstr ""

#: modules//devices/printers.c:138
#: hardinfo//hardinfo.c:62
#: hardinfo//hardinfo.c:63
msgid "Yes"
msgstr ""

#: modules//devices/printers.c:190
msgid ""
"[Printers]\n"
"No suitable CUPS library found="
msgstr ""

#: modules//devices/printers.c:200
msgid "[Printers (CUPS)]\n"
msgstr ""

#: modules//devices/printers.c:263
msgid ""
"[Printers]\n"
"No printers found=\n"
msgstr ""

#: modules//devices/storage.c:46
msgid ""
"\n"
"[SCSI Disks]\n"
msgstr ""

#: modules//devices/storage.c:110
#: modules//devices/storage.c:297
#, c-format
msgid ""
"[Device Information]\n"
"Model=%s\n"
msgstr ""

#: modules//devices/storage.c:115
#: modules//devices/storage.c:304
#, c-format
msgid "Vendor=%s (%s)\n"
msgstr ""

#: modules//devices/storage.c:120
#: modules//devices/storage.c:309
#, c-format
msgid "Vendor=%s\n"
msgstr ""

#: modules//devices/storage.c:125
#, c-format
msgid ""
"Type=%s\n"
"Revision=%s\n"
"[SCSI Controller]\n"
"Controller=scsi%d\n"
"Channel=%d\n"
"ID=%d\n"
"LUN=%d\n"
msgstr ""

#: modules//devices/storage.c:169
msgid ""
"\n"
"[IDE Disks]\n"
msgstr ""

#: modules//devices/storage.c:242
#, c-format
msgid "Driver=%s\n"
msgstr ""

#: modules//devices/storage.c:314
#, c-format
msgid ""
"Device Name=hd%c\n"
"Media=%s\n"
"Cache=%dkb\n"
msgstr ""

#: modules//devices/storage.c:329
#, c-format
msgid ""
"[Geometry]\n"
"Physical=%s\n"
"Logical=%s\n"
msgstr ""

#: modules//devices/storage.c:341
#, c-format
msgid ""
"[Capabilities]\n"
"%s"
msgstr ""

#: modules//devices/storage.c:348
#, c-format
msgid ""
"[Speeds]\n"
"%s"
msgstr ""

#: modules//network.c:59
msgid "Interfaces"
msgstr ""

#: modules//network.c:60
msgid "IP Connections"
msgstr ""

#: modules//network.c:61
msgid "Routing Table"
msgstr ""

#: modules//network.c:62
msgid "ARP Table"
msgstr ""

#: modules//network.c:63
msgid "DNS Servers"
msgstr ""

#: modules//network.c:64
msgid "Statistics"
msgstr ""

#: modules//network.c:65
msgid "Shared Directories"
msgstr ""

#: modules//network.c:300
#, c-format
msgid ""
"[ARP Table]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=IP Address\n"
"ColumnTitle$Value=Interface\n"
"ColumnTitle$Extra1=MAC Address\n"
"ShowColumnHeaders=true\n"
msgstr ""

#: modules//network.c:321
#, c-format
msgid ""
"[Name servers]\n"
"%s\n"
"[$ShellParam$]\n"
"ColumnTitle$TextValue=IP Address\n"
"ColumnTitle$Value=Name\n"
"ShowColumnHeaders=true\n"
msgstr ""

#: modules//network.c:331
#, c-format
msgid ""
"[Connections]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Local Address\n"
"ColumnTitle$Value=Protocol\n"
"ColumnTitle$Extra1=Foreign Address\n"
"ColumnTitle$Extra2=State\n"
"ShowColumnHeaders=true\n"
msgstr ""

#: modules//network.c:345
#, c-format
msgid ""
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Interface\n"
"ColumnTitle$Value=IP Address\n"
"ColumnTitle$Extra1=Sent\n"
"ColumnTitle$Extra2=Received\n"
"ShowColumnHeaders=true\n"
"%s"
msgstr ""

#: modules//network.c:361
#, c-format
msgid ""
"[IP routing table]\n"
"%s\n"
"[$ShellParam$]\n"
"ViewType=0\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Destination / Gateway\n"
"ColumnTitle$Value=Interface\n"
"ColumnTitle$Extra1=Flags\n"
"ColumnTitle$Extra2=Mask\n"
"ShowColumnHeaders=true\n"
msgstr ""

#: modules//network.c:399
msgid "Network"
msgstr ""

#: modules//network.c:432
msgid "Gathers information about this computer's network connection"
msgstr ""

#: modules//benchmark.c:50
msgid "CPU Blowfish"
msgstr ""

#: modules//benchmark.c:51
msgid "CPU CryptoHash"
msgstr ""

#: modules//benchmark.c:52
msgid "CPU Fibonacci"
msgstr ""

#: modules//benchmark.c:53
msgid "CPU N-Queens"
msgstr ""

#: modules//benchmark.c:54
msgid "FPU FFT"
msgstr ""

#: modules//benchmark.c:55
msgid "FPU Raytracing"
msgstr ""

#: modules//benchmark.c:56
msgid "GPU Drawing"
msgstr ""

#: modules//benchmark.c:222
#, c-format
msgid ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=CPU Clock\n"
"ColumnTitle$Progress=Results\n"
"ColumnTitle$TextValue=CPU\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"<big><b>This Machine</b></big>=%.3f|%s MHz\n"
"%s"
msgstr ""

#: modules//benchmark.c:235
#, c-format
msgid ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=CPU Clock\n"
"ColumnTitle$Progress=Results\n"
"ColumnTitle$TextValue=CPU\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"%s"
msgstr ""

#: modules//benchmark.c:363
#, c-format
msgid "Benchmarking: <b>%s</b>."
msgstr ""

#: modules//benchmark.c:377
msgid "Benchmarking. Please do not move your mouse or press any keys."
msgstr ""

#: modules//benchmark.c:381
msgid "Cancel"
msgstr ""

#: modules//benchmark.c:511
msgid "Results in MiB/second. Higher is better."
msgstr ""

#: modules//benchmark.c:514
msgid "Results in HIMarks. Higher is better."
msgstr ""

#: modules//benchmark.c:521
msgid "Results in seconds. Lower is better."
msgstr ""

#: modules//benchmark.c:529
msgid "Benchmarks"
msgstr ""

#: modules//benchmark.c:547
msgid "Perform tasks and compare with other systems"
msgstr ""

#: modules//benchmark.c:634
msgid "Send benchmark results"
msgstr ""

#: modules//benchmark.c:639
msgid "Receive benchmark results"
msgstr ""

#: hardinfo//util.c:102
#: hardinfo//util.c:105
#: hardinfo//util.c:110
#, c-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] ""
msgstr[1] ""

#: hardinfo//util.c:104
#, c-format
msgid "%d hour, "
msgid_plural "%d hours, "
msgstr[0] ""
msgstr[1] ""

#: hardinfo//util.c:108
#, c-format
msgid "%d day, "
msgid_plural "%d days, "
msgstr[0] ""
msgstr[1] ""

#: hardinfo//util.c:109
#, c-format
msgid "%d hour and "
msgid_plural "%d hours and "
msgstr[0] ""
msgstr[1] ""

#: hardinfo//util.c:116
#, c-format
msgid "%.1f B"
msgstr ""

#: hardinfo//util.c:118
#, c-format
msgid "%.1f KiB"
msgstr ""

#: hardinfo//util.c:120
#, c-format
msgid "%.1f MiB"
msgstr ""

#: hardinfo//util.c:122
#, c-format
msgid "%.1f GiB"
msgstr ""

#: hardinfo//util.c:336
msgid "Error"
msgstr ""

#: hardinfo//util.c:336
#: hardinfo//util.c:352
msgid "Warning"
msgstr ""

#: hardinfo//util.c:351
msgid "Fatal Error"
msgstr ""

#: hardinfo//util.c:376
msgid "creates a report and prints to standard output"
msgstr ""

#: hardinfo//util.c:382
msgid "chooses a report format (text, html)"
msgstr ""

#: hardinfo//util.c:388
msgid "run benchmark; requires benchmark.so to be loaded"
msgstr ""

#: hardinfo//util.c:394
msgid "lists modules"
msgstr ""

#: hardinfo//util.c:400
msgid "specify module to load"
msgstr ""

#: hardinfo//util.c:406
msgid "automatically load module dependencies"
msgstr ""

#: hardinfo//util.c:413
msgid "run in XML-RPC server mode"
msgstr ""

#: hardinfo//util.c:420
msgid "shows program version and quit"
msgstr ""

#: hardinfo//util.c:425
msgid "- System Profiler and Benchmark tool"
msgstr ""

#: hardinfo//util.c:435
#, c-format
msgid ""
"Unrecognized arguments.\n"
"Try ``%s --help'' for more information.\n"
msgstr ""

#: hardinfo//util.c:501
#, c-format
msgid "Couldn't find a Web browser to open URL %s."
msgstr ""

#: hardinfo//util.c:848
#, c-format
msgid "Module \"%s\" depends on module \"%s\", load it?"
msgstr ""

#: hardinfo//util.c:871
#, c-format
msgid "Module \"%s\" depends on module \"%s\"."
msgstr ""

#: hardinfo//util.c:916
#, c-format
msgid "No module could be loaded. Check permissions on \"%s\" and try again."
msgstr ""

#: hardinfo//util.c:920
msgid ""
"No module could be loaded. Please use hardinfo -l to list all available "
"modules and try again with a valid module list."
msgstr ""

#: hardinfo//util.c:1096
#, c-format
msgid "Scanning: %s..."
msgstr ""

#: hardinfo//hardinfo.c:54
msgid ""
"Copyright (C) 2003-2009 Leandro A. F. Pereira. See COPYING for details.\n"
"\n"
msgstr ""

#: hardinfo//hardinfo.c:56
#, c-format
msgid ""
"Compile-time options:\n"
"  Release version:   %s (%s)\n"
"  BinReloc enabled:  %s\n"
"  Data prefix:       %s\n"
"  Library prefix:    %s\n"
"  Compiled on:       %s %s (%s)\n"
msgstr ""

#: hardinfo//hardinfo.c:74
#, c-format
msgid ""
"Failed to find runtime data.\n"
"\n"
"• Is HardInfo correctly installed?\n"
"• See if %s and %s exists and you have read permision."
msgstr ""

#: hardinfo//hardinfo.c:81
#, c-format
msgid ""
"Modules:\n"
"%-20s%-15s%-12s\n"
msgstr ""

#: hardinfo//hardinfo.c:82
msgid "File Name"
msgstr ""

#: hardinfo//hardinfo.c:82
msgid "Name"
msgstr ""

#: hardinfo//hardinfo.c:82
msgid "Version"
msgstr ""

#: hardinfo//hardinfo.c:135
#, c-format
msgid "Unknown benchmark ``%s'' or libbenchmark.so not loaded"
msgstr ""

#: hardinfo//hardinfo.c:163
msgid "Don't know what to do. Exiting."
msgstr ""

Added po/ru.po.









































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
msgid ""
msgstr ""
"Project-Id-Version: hardinfo puppy\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-09-01 22:24+0300\n"
"PO-Revision-Date: \n"
"Last-Translator: Sergey Rodin <rodin.s@rambler.ru>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Language: Russian\n"
"X-Poedit-Country: UKRAINE\n"
"X-Poedit-SourceCharset: utf-8\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"

#: shell/callbacks.c:71
#, c-format
msgid "Remote: <b>%s</b>"
msgstr "Удалённо: <b>%s</b>"

#: shell/callbacks.c:117
msgid "Disconnecting..."
msgstr "Отключение..."

#: shell/callbacks.c:120
msgid "Unloading modules..."
msgstr "Выгрузка модулей..."

#: shell/callbacks.c:123
msgid "Loading local modules..."
msgstr "Загрузка локальных модулей..."

#: shell/callbacks.c:130
#: shell/callbacks.c:162
#: shell/shell.c:314
#: shell/shell.c:814
#: shell/shell.c:1796
#: modules/benchmark.c:431
#: modules/benchmark.c:439
#: hardinfo/util.c:1106
msgid "Done."
msgstr "Выполнено."

#: shell/callbacks.c:142
msgid "Save Image"
msgstr "Сохранить изображение"

#: shell/callbacks.c:158
msgid "Saving image..."
msgstr "Сохранение изображения..."

#: shell/callbacks.c:236
msgid "No context help available."
msgstr "Контекстная справка недоступна"

#: shell/callbacks.c:318
#, c-format
msgid "%s Module"
msgstr "%s модуль"

#: shell/callbacks.c:325
#, c-format
msgid ""
"Written by %s\n"
"Licensed under %s"
msgstr ""
"Автор программы %s\n"
"Лицензия %s"

#: shell/callbacks.c:339
#, c-format
msgid "No about information is associated with the %s module."
msgstr "Нет информации о модуле %s."

#: shell/callbacks.c:353
msgid "Author:"
msgstr "Автор:"

#: shell/callbacks.c:356
msgid "Contributors:"
msgstr "Участники:"

#: shell/callbacks.c:360
msgid "Based on work by:"
msgstr "Основан на работах:"

#: shell/callbacks.c:361
msgid "MD5 implementation by Colin Plumb (see md5.c for details)"
msgstr "Реализация MD5 Колина Пламба (подробности  md5.c)"

#: shell/callbacks.c:362
msgid "SHA1 implementation by Steve Reid (see sha1.c for details)"
msgstr "Реализация SHA1 Стива Рейда (см. подробности в sha1.c) "

#: shell/callbacks.c:363
msgid "Blowfish implementation by Paul Kocher (see blowfich.c for details)"
msgstr "Реализация Blowfish Пола Кочера (см. подробности в blowfich.c)"

#: shell/callbacks.c:364
msgid "Raytracing benchmark by John Walker (see fbench.c for details)"
msgstr ""

#: shell/callbacks.c:365
msgid "FFT benchmark by Scott Robert Ladd (see fftbench.c for details)"
msgstr ""

#: shell/callbacks.c:366
msgid "Some code partly based on x86cpucaps by Osamu Kayasono"
msgstr ""

#: shell/callbacks.c:367
msgid "Vendor list based on GtkSysInfo by Pissens Sebastien"
msgstr ""

#: shell/callbacks.c:368
msgid "DMI support based on code by Stewart Adam"
msgstr ""

#: shell/callbacks.c:369
msgid "SCSI support based on code by Pascal F. Martin"
msgstr ""

#: shell/callbacks.c:373
#, fuzzy
msgid "Jakub Szypulka"
msgstr "Jakub Jelínek"

#: shell/callbacks.c:374
msgid "Tango Project"
msgstr "Проект Tango"

#: shell/callbacks.c:375
msgid "The GNOME Project"
msgstr "Проект GNOME"

#: shell/callbacks.c:376
msgid "VMWare, Inc. (USB icon from VMWare Workstation 6)"
msgstr "VMWare, Inc. (USB значок из VMWare Workstation 6)"

#: shell/callbacks.c:387
msgid "System information and benchmark tool"
msgstr "Информация о системе и тестирование"

#: shell/callbacks.c:392
msgid ""
"HardInfo is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.\n"
"\n"
"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.\n"
"\n"
"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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA"
msgstr ""
"HardInfo это свободное программное обеспечение; вы можете распространять его и/или изменять под условиями Общей общественной лицензии GNU, которая была опубликована Фондом свободного программного обеспечения, версия 2.\n"
"\n"
"Эта программа распространятся в надежде, что будет полезной, но БЕЗ КАКОЙ-ЛИБО ГАРАНТИИ; даже без предполагаемой гарантии ПРИГОДНОСТИ ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ. См. подробности в Общественной лицензии GNU.\n"
"\n"
"Вы должны были получить копию Общественной лицензии GNU вместе с этой программой; если нет, пишите в Фонд свободного программного обеспечения,  Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA"

#: shell/menu.c:35
msgid "_Information"
msgstr "_Информация"

#: shell/menu.c:36
msgid "_Remote"
msgstr "_Удалённо"

#: shell/menu.c:37
msgid "_View"
msgstr "_Вид"

#: shell/menu.c:38
msgid "_Help"
msgstr "_Справка"

#: shell/menu.c:39
msgid "About _Modules"
msgstr "О _модулях"

#: shell/menu.c:43
msgid "Generate _Report"
msgstr "Создать _отчёт"

#: shell/menu.c:48
msgid "_Network Updater..."
msgstr "_Обновление через сеть..."

#: shell/menu.c:53
msgid "_Open..."
msgstr "_Открыть..."

#: shell/menu.c:58
msgid "_Connect to..."
msgstr "_Подключиться к..."

#: shell/menu.c:63
msgid "_Manage hosts..."
msgstr "_Управление хостами..."

#: shell/menu.c:68
msgid "_Local computer"
msgstr "_Локальный компьютер"

#: shell/menu.c:73
msgid "_Copy to Clipboard"
msgstr "_Копировать в буфер"

#: shell/menu.c:74
msgid "Copy to clipboard"
msgstr "Копировать в буфер обмена"

#: shell/menu.c:78
msgid "_Save image as..."
msgstr "_Сохранить изображение как..."

#: shell/menu.c:83
msgid "_Refresh"
msgstr "_Обновить"

#: shell/menu.c:88
msgid "Contents"
msgstr "Содержание"

#: shell/menu.c:93
#: shell/shell.c:1790
#: shell/shell.c:1807
msgid "Context help"
msgstr "Контекстная справка"

#: shell/menu.c:98
msgid "_Open HardInfo Web Site"
msgstr "_Открыть веб-сайт Hardinfo"

#: shell/menu.c:103
msgid "_Report bug"
msgstr "_Сообщить об ошибке"

#: shell/menu.c:108
msgid "_Donate to the project"
msgstr "_Поддержать проект"

#: shell/menu.c:113
msgid "_About HardInfo"
msgstr "_О HardInfo"

#: shell/menu.c:114
msgid "Displays program version information"
msgstr "Показывает информацию о версии программы"

#: shell/menu.c:118
msgid "_Quit"
msgstr "_Выход"

#: shell/menu.c:125
msgid "_Side Pane"
msgstr "_Боковая панель"

#: shell/menu.c:126
msgid "Toggles side pane visibility"
msgstr "Управляет боковой панелью"

#: shell/menu.c:129
msgid "_Toolbar"
msgstr "_Панель инструментов"

#: shell/menu.c:133
msgid "_Accept connections"
msgstr "_Принимать подключения"

#: shell/report.c:492
msgid "Save File"
msgstr "Сохранить файл"

#: shell/report.c:616
msgid "Cannot create ReportContext. Programming bug?"
msgstr "Не могу создать ReportContext. Ошибка программирования?"

#: shell/report.c:634
msgid "Open the report with your web browser?"
msgstr "Открыть отчёт в веб-браузере?"

#: shell/report.c:662
msgid "Generating report..."
msgstr "Создаётся отчёт..."

#: shell/report.c:672
msgid "Report saved."
msgstr "Отчёт сохранён."

#: shell/report.c:674
msgid "Error while creating the report."
msgstr "Ошибка во время создания отчёта."

#: shell/report.c:776
msgid "Generate Report"
msgstr "Создать отчёт"

#: shell/report.c:793
msgid ""
"<big><b>Generate Report</b></big>\n"
"Please choose the information that you wish to view in your report:"
msgstr ""
"<big><b>Создать отчёт</b></big>\n"
"Пожалуйста выберите информацию, которую вы хотите видеть в отчёте:"

#: shell/report.c:853
msgid "Select _None"
msgstr "Выбор: нет"

#: shell/report.c:860
msgid "Select _All"
msgstr "Выбор: все"

#: shell/report.c:878
msgid "_Generate"
msgstr "_Сгенерировать"

#: shell/shell.c:407
#, c-format
msgid "%s - System Information"
msgstr "%s - Информация о системе"

#: shell/shell.c:412
msgid "System Information"
msgstr "Информация о системе"

#: shell/shell.c:801
msgid "Loading modules..."
msgstr "Загрузка модулей..."

#: shell/shell.c:1650
#, c-format
msgid "<b>%s → Summary</b>"
msgstr "<b>%s → </b>"

#: shell/shell.c:1758
msgid "Updating..."
msgstr "Обновление..."

#: shell/syncmanager.c:69
msgid ""
"<big><b>Synchronize with Central Database</b></big>\n"
"The following information may be synchronized with the HardInfo central database."
msgstr ""
"<big><b>Синхронизировать с центральной базой данных</b></big>\n"
"Следующая информация может быть синхронизирована с центральной базой данных HardInfo."

#: shell/syncmanager.c:72
msgid ""
"<big><b>Synchronizing</b></big>\n"
"This may take some time."
msgstr ""
"<big><b>Синхронизация</b></big>\n"
"Это может занять какое-то время."

#: shell/syncmanager.c:132
msgid "HardInfo was compiled without libsoup support. (Network Updater requires it.)"
msgstr "HardInfo был скомпилирован без поддержки libsoup. (Нужен для сетевого обновления.)"

#: shell/syncmanager.c:161
#: shell/syncmanager.c:185
#, c-format
msgid "%s (error #%d)"
msgstr "%s (ошибка #%d)"

#: shell/syncmanager.c:170
#: shell/syncmanager.c:194
msgid "Could not parse XML-RPC response"
msgstr "Не могу разобрать XML-RPC ответ"

#: shell/syncmanager.c:267
#, c-format
msgid "Server says it supports API version %d, but this version of HardInfo only supports API version %d."
msgstr "Сервер говорит, что поддерживает API версии %d, но эта версия HardInfo поддерживает API только версии %d."

#: shell/syncmanager.c:362
msgid "Contacting HardInfo Central Database"
msgstr "Подключение к центральной базе данных Hardinfo"

#: shell/syncmanager.c:363
msgid "Cleaning up"
msgstr "Очистка"

#: shell/syncmanager.c:480
#, c-format
msgid "<s>%s</s> <i>(canceled)</i>"
msgstr "<s>%s</s> <i>(отменен)</i>"

#: shell/syncmanager.c:497
#, c-format
msgid "<b><s>%s</s></b> <i>(failed)</i>"
msgstr "<b><s>%s</s></b> <i>(ошибка)</i>"

#: shell/syncmanager.c:509
#, c-format
msgid ""
"Failed while performing \"%s\". Please file a bug report if this problem persists. (Use the Help→Report bug option.)\n"
"\n"
"Details: %s"
msgstr ""
"Ошибка во время выполнения \"%s\". Если проблема будет повторяться пожалуйста сообщите об ошибке. (Используйте опцию в меню Справка.)\n"
"\n"
"Подробности: %s"

#: shell/syncmanager.c:518
#, c-format
msgid "Failed while performing \"%s\". Please file a bug report if this problem persists. (Use the Help→Report bug option.)"
msgstr "Ошибка во время выполнения \"%s\". Пожалуйста сообщите об ошибке если проблема будет повторяться. (Используйте опцию в меню Справка.)"

#: shell/syncmanager.c:646
msgid "Network Updater"
msgstr "Сетевое обновление"

#: shell/syncmanager.c:727
msgid "_Synchronize"
msgstr "_Синхронизировать"

#: modules/benchmark.c:50
#, fuzzy
msgid "CPU Blowfish"
msgstr "ЦПУ МГц"

#: modules/benchmark.c:51
#, fuzzy
msgid "CPU CryptoHash"
msgstr "ЦПУ МГц"

#: modules/benchmark.c:52
#, fuzzy
msgid "CPU Fibonacci"
msgstr "ЦПУ МГц"

#: modules/benchmark.c:53
#, fuzzy
msgid "CPU N-Queens"
msgstr "ЦПУ МГц"

#: modules/benchmark.c:54
msgid "FPU FFT"
msgstr ""

#: modules/benchmark.c:55
msgid "FPU Raytracing"
msgstr ""

#: modules/benchmark.c:56
msgid "GPU Drawing"
msgstr ""

#: modules/benchmark.c:222
#, c-format
msgid ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=CPU Clock\n"
"ColumnTitle$Progress=Results\n"
"ColumnTitle$TextValue=CPU\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"<big><b>This Machine</b></big>=%.3f|%s MHz\n"
"%s"
msgstr ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=Частота процессора\n"
"ColumnTitle$Progress=Результаты\n"
"ColumnTitle$TextValue=Процессор\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"<big><b>Эта машина</b></big>=%.3f|%s MHz\n"
"%s"

#: modules/benchmark.c:235
#, c-format
msgid ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=CPU Clock\n"
"ColumnTitle$Progress=Results\n"
"ColumnTitle$TextValue=CPU\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"%s"
msgstr ""
"[$ShellParam$]\n"
"Zebra=1\n"
"OrderType=%d\n"
"ViewType=3\n"
"ColumnTitle$Extra1=Частота процессора\n"
"ColumnTitle$Progress=Результаты\n"
"ColumnTitle$TextValue=Процессор\n"
"ShowColumnHeaders=true\n"
"[%s]\n"
"%s"

#: modules/benchmark.c:363
#, c-format
msgid "Benchmarking: <b>%s</b>."
msgstr "Тестирование: <b>%s</b>"

#: modules/benchmark.c:377
msgid "Benchmarking. Please do not move your mouse or press any keys."
msgstr "Тестирование. Пожалуйста не двигайте мышь и не нажимайте на кнопки."

#: modules/benchmark.c:381
msgid "Cancel"
msgstr "Отмена"

#: modules/benchmark.c:511
msgid "Results in MiB/second. Higher is better."
msgstr "Результаты в MiB/сек. Чем выше, тем лучше."

#: modules/benchmark.c:514
msgid "Results in HIMarks. Higher is better."
msgstr "Результаты в HIMarks. Чем выше, тем лучше."

#: modules/benchmark.c:521
msgid "Results in seconds. Lower is better."
msgstr "Результат в секундах. Чем ниже тем лучше."

#: modules/benchmark.c:529
msgid "Benchmarks"
msgstr "Тесты"

#: modules/benchmark.c:547
msgid "Perform tasks and compare with other systems"
msgstr "Выполняет задания и сравнивает с другими системами"

#: modules/benchmark.c:634
msgid "Send benchmark results"
msgstr "Отправить результаты тестирования"

#: modules/benchmark.c:639
msgid "Receive benchmark results"
msgstr "Принять результаты тестирования"

#: modules/computer.c:68
msgid "Summary"
msgstr "Суммарная информация"

#: modules/computer.c:69
msgid "Operating System"
msgstr "Операционная система"

#: modules/computer.c:70
msgid "Kernel Modules"
msgstr "Модули ядра"

#: modules/computer.c:71
msgid "Boots"
msgstr "Загрузки"

#: modules/computer.c:72
msgid "Languages"
msgstr "Языки"

#: modules/computer.c:73
msgid "Filesystems"
msgstr "Файловые системы"

#: modules/computer.c:74
msgid "Display"
msgstr "Дисплей"

#: modules/computer.c:75
msgid "Environment Variables"
msgstr "Переменные окружения"

#: modules/computer.c:77
msgid "Development"
msgstr "Разработка"

#: modules/computer.c:79
msgid "Users"
msgstr "Пользователи"

#: modules/computer.c:80
msgid "Groups"
msgstr "Группы"

#: modules/computer.c:104
#, c-format
msgid "%dMB (%dMB used)"
msgstr "%dMB (%dMB занято)"

#: modules/computer.c:200
msgid "Scripting Languages"
msgstr "Скриптовые языки"

#: modules/computer.c:201
msgid "CPython"
msgstr ""

#: modules/computer.c:202
#, fuzzy
msgid "Perl"
msgstr "Perl"

#: modules/computer.c:203
msgid "PHP"
msgstr ""

#: modules/computer.c:204
msgid "Ruby"
msgstr ""

#: modules/computer.c:205
msgid "Bash"
msgstr ""

#: modules/computer.c:206
msgid "Compilers"
msgstr "Компиляторы"

#: modules/computer.c:207
msgid "C (GCC)"
msgstr ""

#: modules/computer.c:208
#, fuzzy
msgid "Java"
msgstr "Язык программирования Java"

#: modules/computer.c:209
#, fuzzy
msgid "CSharp (Mono, old)"
msgstr "Найдена старая установка %s."

#: modules/computer.c:210
#, fuzzy
msgid "CSharp (Mono)"
msgstr "Моноширинный шрифт"

#: modules/computer.c:211
#, fuzzy
msgid "Vala"
msgstr "базы данных vala"

#: modules/computer.c:212
msgid "Haskell (GHC)"
msgstr ""

#: modules/computer.c:213
msgid "FreePascal"
msgstr ""

#: modules/computer.c:214
msgid "Tools"
msgstr "Инструменты"

#: modules/computer.c:262
#, c-format
msgid "%s=Not found\n"
msgstr "%s=Не найдено\n"

#: modules/computer.c:265
#, c-format
msgid "Detecting version: %s"
msgstr "Определена версия: %s"

#: modules/computer.c:276
#, c-format
msgid ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Program\n"
"ColumnTitle$Value=Version\n"
"ShowColumnHeaders=true\n"
"%s"
msgstr ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Программа\n"
"ColumnTitle$Value=Версия\n"
"ShowColumnHeaders=true\n"
"%s"

#: modules/computer.c:356
msgid "Physical machine"
msgstr "Физическая машина"

# Memory и Date/Time не переводить, не будет обновляться.
#: modules/computer.c:373
#, c-format
msgid ""
"[$ShellParam$]\n"
"UpdateInterval$Memory=1000\n"
"UpdateInterval$Date/Time=1000\n"
"#ReloadInterval=5000\n"
"[Computer]\n"
"Processor=%s\n"
"Memory=...\n"
"Machine Type=%s\n"
"Operating System=%s\n"
"User Name=%s\n"
"Date/Time=...\n"
"[Display]\n"
"Resolution=%dx%d pixels\n"
"OpenGL Renderer=%s\n"
"X11 Vendor=%s\n"
"\n"
"%s\n"
"[Input Devices]\n"
"%s\n"
"\n"
"%s\n"
"\n"
"%s\n"
msgstr ""
"[$ShellParam$]\n"
"UpdateInterval$Memory=1000\n"
"UpdateInterval$Date/Time=1000\n"
"#ReloadInterval=5000\n"
"[Компьютер]\n"
"Процессор=%s\n"
"Memory=...\n"
"Тип машины=%s\n"
"Операционная система=%s\n"
"Пользователь=%s\n"
"Date/Time=...\n"
"[Дисплей]\n"
"Разрешение=%dx%d пикс.\n"
"OpenGL Renderer=%s\n"
"X11 Vendor=%s\n"
"\n"
"%s\n"
"[Устройства ввода]\n"
"%s\n"
"\n"
"%s\n"
"\n"
"%s\n"

# Uptime и Load Average не переводить, не будут обновляться.
#: modules/computer.c:415
#, c-format
msgid ""
"[$ShellParam$]\n"
"UpdateInterval$Uptime=10000\n"
"UpdateInterval$Load Average=1000\n"
"[Version]\n"
"Kernel=%s\n"
"Version=%s\n"
"C Library=%s\n"
"Distribution=%s\n"
"[Current Session]\n"
"Computer Name=%s\n"
"User Name=%s\n"
"#Language=%s\n"
"Home Directory=%s\n"
"Desktop Environment=%s\n"
"[Misc]\n"
"Uptime=...\n"
"Load Average=..."
msgstr ""
"[$ShellParam$]\n"
"UpdateInterval$Uptime=10000\n"
"UpdateInterval$Load Average=1000\n"
"[Версия]\n"
"Ядро=%s\n"
"Версия=%s\n"
"Библиотека C=%s\n"
"Дистрибутив=%s\n"
"[Текущая сессия]\n"
"Имя компьютера=%s\n"
"Пользователь=%s\n"
"#Язык=%s\n"
"Домашний каталог=%s\n"
"Окружение рабочего стола=%s\n"
"[Разное]\n"
"Uptime=...\n"
"Load Average=..."

#: modules/computer.c:444
#, c-format
msgid ""
"[Loaded Modules]\n"
"%s[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Name\n"
"ColumnTitle$Value=Description\n"
"ShowColumnHeaders=true\n"
msgstr ""
"[Loaded Modules]\n"
"%s[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Имя\n"
"ColumnTitle$Value=Описание\n"
"ShowColumnHeaders=true\n"

#: modules/computer.c:455
#, c-format
msgid ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Date & Time\n"
"ColumnTitle$Value=Kernel Version\n"
"ShowColumnHeaders=true\n"
"\n"
"%s"
msgstr ""
"[$ShellParam$]\n"
"ColumnTitle$TextValue=Дата и время\n"
"ColumnTitle$Value=Версия ядра\n"
"ShowColumnHeaders=true\n"
"\n"
"%s"

#: modules/computer.c:465
#, c-format
msgid ""
"[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Language Code\n"
"ColumnTitle$Value=Name\n"
"ShowColumnHeaders=true\n"
"[Available Languages]\n"
"%s"
msgstr ""
"[$ShellParam$]\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Код языка\n"
"ColumnTitle$Value=Название\n"
"ShowColumnHeaders=true\n"
"[Available Languages]\n"
"%s"

#: modules/computer.c:476
#, c-format
msgid ""
"[$ShellParam$]\n"
"ViewType=4\n"
"ReloadInterval=5000\n"
"Zebra=1\n"
"NormalizePercentage=false\n"
"ColumnTitle$Extra1=Mount Point\n"
"ColumnTitle$Progress=Usage\n"
"ColumnTitle$TextValue=Device\n"
"ShowColumnHeaders=true\n"
"[Mounted File Systems]\n"
"%s\n"
msgstr ""
"[$ShellParam$]\n"
"ViewType=4\n"
"ReloadInterval=5000\n"
"Zebra=1\n"
"NormalizePercentage=false\n"
"ColumnTitle$Extra1=Точка монтирования\n"
"ColumnTitle$Progress=Использование\n"
"ColumnTitle$TextValue=Устройство\n"
"ShowColumnHeaders=true\n"
"[Mounted File Systems]\n"
"%s\n"

#: modules/computer.c:490
#, c-format
msgid ""
"[Display]\n"
"Resolution=%dx%d pixels\n"
"Vendor=%s\n"
"Version=%s\n"
"[Monitors]\n"
"%s[Extensions]\n"
"%s[OpenGL]\n"
"Vendor=%s\n"
"Renderer=%s\n"
"Version=%s\n"
"Direct Rendering=%s\n"
msgstr ""
"[Дисплей]\n"
"Разрешение=%dx%d пикс.\n"
"Производитель=%s\n"
"Версия=%s\n"
"[Монитор]\n"
"%s[Расширения]\n"
"%s[OpenGL]\n"
"Производитель=%s\n"
"Renderer=%s\n"
"Версия=%s\n"
"Графическое ускорение=%s\n"

#: modules/computer.c:512
msgid "Y_es"
msgstr "Есть"

#: modules/computer.c:512
#: modules/devices/printers.c:138
msgid "No"
msgstr "Нет"

#: modules/computer.c:526
#, c-format
msgid ""
"[$ShellParam$]\n"
"ReloadInterval=10000\n"
"ColumnTitle$TextValue=Name\n"
"ColumnTitle$Value=Group ID\n"
"ShowColumnHeaders=true\n"
"[Groups]\n"
"%s\n"
msgstr ""
"[$ShellParam$]\n"
"ReloadInterval=10000\n"
"ColumnTitle$TextValue=Имя\n"
"ColumnTitle$Value=ID группы\n"
"ShowColumnHeaders=true\n"
"[Groups]\n"
"%s\n"

#: modules/computer.c:606
msgid "Computer"
msgstr "Компьютер"

#: modules/computer.c:700
msgid "Gathers high-level computer information"
msgstr "Собирает высокоуровневую информацию о компьютере"

#: modules/devices.c:74
msgid "Processor"
msgstr "Процессор"

#: modules/devices.c:75
msgid "Memory"
msgstr "Память"

#: modules/devices.c:76
msgid "PCI Devices"
msgstr "Устройства PCI"

#: modules/devices.c:77
msgid "USB Devices"
msgstr "Устройства USB"

#: modules/devices.c:78
msgid "Printers"
msgstr "Принтеры"

#: modules/devices.c:79
msgid "Battery"
msgstr "Батарея"

#: modules/devices.c:80
msgid "Sensors"
msgstr "Сенсоры"

#: modules/devices.c:81
msgid "Input Devices"
msgstr "Устройства ввода"

#: modules/devices.c:82
msgid "Storage"
msgstr "Устройства хранения"

#: modules/devices.c:84
msgid "DMI"
msgstr ""

#: modules/devices.c:85
msgid "Memory SPD"
msgstr "Память SPD"

#: modules/devices.c:87
msgid "Resources"
msgstr "Ресурсы"

#: modules/devices.c:154
#: modules/devices.c:197
#: modules/devices/printers.c:99
#: modules/devices/printers.c:106
#: modules/devices/printers.c:116
#: modules/devices/printers.c:131
#: modules/devices/printers.c:140
#: modules/devices/printers.c:243
#: modules/computer/os.c:53
#: modules/computer/os.c:130
msgid "Unknown"
msgstr "Неизвестно"

#: modules/devices.c:178
msgid "Total Memory"
msgstr "Общая память"

#: modules/devices.c:193
msgid " (vendor unknown)"
msgstr "(производитель неизвестен)"

#: modules/devices.c:195
msgid " (model unknown)"
msgstr "(модель неизвестна)"

#: modules/devices.c:412
msgid "Devices"
msgstr "Устройства"

#: modules/devices.c:424
msgid "Update PCI ID listing"
msgstr "Обновить список PCI ID"

#: modules/devices.c:436
msgid "Update CPU feature database"
msgstr "Обновить базу данных функций процессора"

#: modules/devices.c:464
msgid "Gathers information about hardware devices"
msgstr "Собирает информацию об устройствах"

#: modules/network.c:59
msgid "Interfaces"
msgstr "Интерфейсы"

#: modules/network.c:60
msgid "IP Connections"
msgstr "IP подключения"

#: modules/network.c:61
msgid "Routing Table"
msgstr "Таблица маршрутизации"

#: modules/network.c:62
msgid "ARP Table"
msgstr "Таблица ARP"

#: modules/network.c:63
msgid "DNS Servers"
msgstr "DNS сервера"

#: modules/network.c:64
msgid "Statistics"
msgstr "Статистика"

#: modules/network.c:65
msgid "Shared Directories"
msgstr "Общие каталоги"

#: modules/network.c:300
#, c-format
msgid ""
"[ARP Table]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=IP Address\n"
"ColumnTitle$Value=Interface\n"
"ColumnTitle$Extra1=MAC Address\n"
"ShowColumnHeaders=true\n"
msgstr ""
"[Таблица ARP]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=IP Address\n"
"ColumnTitle$Value=Interface\n"
"ColumnTitle$Extra1=MAC Address\n"
"ShowColumnHeaders=true\n"

#: modules/network.c:321
#, c-format
msgid ""
"[Name servers]\n"
"%s\n"
"[$ShellParam$]\n"
"ColumnTitle$TextValue=IP Address\n"
"ColumnTitle$Value=Name\n"
"ShowColumnHeaders=true\n"
msgstr ""
"[Name servers]\n"
"%s\n"
"[$ShellParam$]\n"
"ColumnTitle$TextValue=IP Address\n"
"ColumnTitle$Value=Name\n"
"ShowColumnHeaders=true\n"

#: modules/network.c:331
#, c-format
msgid ""
"[Connections]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Local Address\n"
"ColumnTitle$Value=Protocol\n"
"ColumnTitle$Extra1=Foreign Address\n"
"ColumnTitle$Extra2=State\n"
"ShowColumnHeaders=true\n"
msgstr ""
"[Connections]\n"
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue= Локальный адрес\n"
"ColumnTitle$Value=Протокол\n"
"ColumnTitle$Extra1=Удалённый адрес\n"
"ColumnTitle$Extra2=Состояние\n"
"ShowColumnHeaders=true\n"

#: modules/network.c:345
#, c-format
msgid ""
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Interface\n"
"ColumnTitle$Value=IP Address\n"
"ColumnTitle$Extra1=Sent\n"
"ColumnTitle$Extra2=Received\n"
"ShowColumnHeaders=true\n"
"%s"
msgstr ""
"%s\n"
"[$ShellParam$]\n"
"ReloadInterval=3000\n"
"ViewType=1\n"
"ColumnTitle$TextValue=Интерфейс\n"
"ColumnTitle$Value=IP адрес\n"
"ColumnTitle$Extra1=Отправлено\n"
"ColumnTitle$Extra2=Получено\n"
"ShowColumnHeaders=true\n"
"%s"

#: modules/network.c:361
#, c-format
msgid ""
"[IP routing table]\n"
"%s\n"
"[$ShellParam$]\n"
"ViewType=0\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Destination / Gateway\n"
"ColumnTitle$Value=Interface\n"
"ColumnTitle$Extra1=Flags\n"
"ColumnTitle$Extra2=Mask\n"
"ShowColumnHeaders=true\n"
msgstr ""
"[IP routing table]\n"
"%s\n"
"[$ShellParam$]\n"
"ViewType=0\n"
"ReloadInterval=3000\n"
"ColumnTitle$TextValue=Цель / Шлюз\n"
"ColumnTitle$Value=Интерфейс\n"
"ColumnTitle$Extra1=Флаги\n"
"ColumnTitle$Extra2=Маска\n"
"ShowColumnHeaders=true\n"

#: modules/network.c:399
msgid "Network"
msgstr "Сеть"

#: modules/network.c:432
msgid "Gathers information about this computer's network connection"
msgstr "Собирает информацию о сетевых подключениях"

#: modules/computer/alsa.c:26
msgid "[Audio Devices]\n"
msgstr "[Аудио устройства]\n"

#: modules/computer/alsa.c:33
#, c-format
msgid "Audio Adapter#%d=%s\n"
msgstr "Звуковая карта#%d=%s\n"

#: modules/computer/boots.c:33
msgid "[Boots]\n"
msgstr "[Загрузки]\n"

#: modules/computer/display.c:83
msgid "vendor string"
msgstr "строка производителя"

#: modules/computer/display.c:84
msgid "X.Org version"
msgstr "Версия X.Org"

#: modules/computer/display.c:85
msgid "XFree86 version"
msgstr "Версия XFree86"

#: modules/computer/display.c:122
#, c-format
msgid "Monitor %d=%dx%d pixels\n"
msgstr "Монитор %d=%dx%d пикселей\n"

#: modules/computer/environment.c:32
msgid "[Environment Variables]\n"
msgstr "[Переменные окружения]\n"

#: hardinfo/util.c:102
#: hardinfo/util.c:105
#: hardinfo/util.c:110
#, c-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d минута"
msgstr[1] "%d минуты"
msgstr[2] "%d минут"

#: hardinfo/util.c:104
#, c-format
msgid "%d hour, "
msgid_plural "%d hours, "
msgstr[0] "%d час"
msgstr[1] "%d часа"
msgstr[2] "%d часов"

#: hardinfo/util.c:108
#, c-format
msgid "%d day, "
msgid_plural "%d days, "
msgstr[0] "%d день"
msgstr[1] "%d дня"
msgstr[2] "%d дней"

#: hardinfo/util.c:109
#, c-format
msgid "%d hour and "
msgid_plural "%d hours and "
msgstr[0] "%d час и"
msgstr[1] "%d часа и"
msgstr[2] "%d часов и"

#: hardinfo/util.c:116
#, c-format
msgid "%.1f B"
msgstr "%.1f Б"

#: hardinfo/util.c:118
#, fuzzy, c-format
msgid "%.1f KiB"
msgstr "%.1f ГБ"

#: hardinfo/util.c:120
#, fuzzy, c-format
msgid "%.1f MiB"
msgstr "%.1f ГБ"

#: hardinfo/util.c:122
#, fuzzy, c-format
msgid "%.1f GiB"
msgstr "%.1f ГБ"

#: hardinfo/util.c:336
msgid "Error"
msgstr "Ошибка"

#: hardinfo/util.c:336
#: hardinfo/util.c:352
msgid "Warning"
msgstr "Предупреждение"

#: hardinfo/util.c:351
msgid "Fatal Error"
msgstr "Фатальная ошибка"

#: hardinfo/util.c:376
msgid "creates a report and prints to standard output"
msgstr "создаёт отчёт и выводит на стандартный вывод"

#: hardinfo/util.c:382
msgid "chooses a report format (text, html)"
msgstr "выбирает формат отчёта (text, html)"

#: hardinfo/util.c:388
msgid "run benchmark; requires benchmark.so to be loaded"
msgstr "запуск теста; требует чтобы benchmark.so был загружен"

#: hardinfo/util.c:394
msgid "lists modules"
msgstr "список модулей"

#: hardinfo/util.c:400
msgid "specify module to load"
msgstr "укажите модуль для загрузки"

#: hardinfo/util.c:406
msgid "automatically load module dependencies"
msgstr "автоматически загружает зависимости модулей"

#: hardinfo/util.c:413
msgid "run in XML-RPC server mode"
msgstr "запуск в режиме сервера XML-RPC"

#: hardinfo/util.c:420
msgid "shows program version and quit"
msgstr "показывает версию программы и выходит"

#: hardinfo/util.c:425
msgid "- System Profiler and Benchmark tool"
msgstr "- Инструмент для тестирования и проверки свойств системы"

#: hardinfo/util.c:435
#, c-format
msgid ""
"Unrecognized arguments.\n"
"Try ``%s --help'' for more information.\n"
msgstr ""
"Неизвестные аргументы.\n"
"Используйте `%s --help' для справки.\n"

#: hardinfo/util.c:501
#, c-format
msgid "Couldn't find a Web browser to open URL %s."
msgstr "Не могу найти веб-браузер для открытия URL %s."

#: hardinfo/util.c:848
#, c-format
msgid "Module \"%s\" depends on module \"%s\", load it?"
msgstr "Модуль \"%s\" зависин от модуля \"%s\", загрузить его?"

#: hardinfo/util.c:871
#, c-format
msgid "Module \"%s\" depends on module \"%s\"."
msgstr "Модуль \"%s\" зависит от модуля \"%s\"."

#: hardinfo/util.c:916
#, c-format
msgid "No module could be loaded. Check permissions on \"%s\" and try again."
msgstr "Модули не могут быть загружены. Проверьте разрешения на \"%s\" и попробуйте снова."

#: hardinfo/util.c:920
msgid "No module could be loaded. Please use hardinfo -l to list all available modules and try again with a valid module list."
msgstr "Модули не могут быть загружены. Пожалуйста используйте hardinfo -l чтобы получить список доступных модулей и попробуйте снова с правильным списком модулей."

#: hardinfo/util.c:1096
#, c-format
msgid "Scanning: %s..."
msgstr "Сканирование: %s..."

#: modules/devices/x86/processor.c:145
msgid "Cache information not available=\n"
msgstr "Информация о кеше недоступна=\n"

#: modules/devices/x86/processor.c:484
#, c-format
msgid ""
"[Processor]\n"
"Name=%s\n"
"Family, model, stepping=%d, %d, %d (%s)\n"
"Vendor=%s\n"
"[Configuration]\n"
"Cache Size=%dkb\n"
"Frequency=%.2fMHz\n"
"BogoMIPS=%.2f\n"
"Byte Order=%s\n"
"[Features]\n"
"FDIV Bug=%s\n"
"HLT Bug=%s\n"
"F00F Bug=%s\n"
"Coma Bug=%s\n"
"Has FPU=%s\n"
"[Cache]\n"
"%s\n"
"[Capabilities]\n"
"%s"
msgstr ""
"[Процессор]\n"
"Название=%s\n"
"Семья, модель, stepping=%d, %d, %d (%s)\n"
"Производитель=%s\n"
"[Конфигурация]\n"
"Размер кеша=%dkb\n"
"Частота=%.2fМГц\n"
"BogoMIPS=%.2f\n"
"Byte Order=%s\n"
"[Функции]\n"
"FDIV Bug=%s\n"
"HLT Bug=%s\n"
"F00F Bug=%s\n"
"Coma Bug=%s\n"
"Has FPU=%s\n"
"[Кеш]\n"
"%s\n"
"[Возможности]\n"
"%s"

#: modules/devices/x86/processor.c:542
#, c-format
msgid "%s$CPU%d$%s=%.2fMHz\n"
msgstr "%s$CPU%d$%s=%.2fМГц\n"

#: modules/devices/printers.c:81
msgid "⚬ Can do black and white printing=\n"
msgstr "⚬ Может печатать черно-белым=\n"

#: modules/devices/printers.c:83
msgid "⚬ Can do color printing=\n"
msgstr "⚬ Может печатать цветным=\n"

#: modules/devices/printers.c:85
#, fuzzy
msgid "⚬ Can do duplexing=\n"
msgstr "Не исправлять:"

#: modules/devices/printers.c:87
#, fuzzy
msgid "⚬ Can do staple output=\n"
msgstr "Выходной файл не может быть переименован."

#: modules/devices/printers.c:89
msgid "⚬ Can do copies=\n"
msgstr "⚬ Можно делать копии=\n"

#: modules/devices/printers.c:91
msgid "⚬ Can collate copies=\n"
msgstr "⚬ Can collate copies=\n"

#: modules/devices/printers.c:93
msgid "⚬ Printer is rejecting jobs=\n"
msgstr "⚬ Printer is rejecting jobs=\n"

#: modules/devices/printers.c:95
msgid "⚬ Printer was automatically discovered and added=\n"
msgstr "⚬ Принтер был автоматически найден и добавлен=\n"

#: modules/devices/printers.c:110
msgid "Idle"
msgstr "Неактивен"

#: modules/devices/printers.c:112
msgid "Printing a Job"
msgstr "Печатается задача"

#: modules/devices/printers.c:114
msgid "Stopped"
msgstr "Остановлен"

#: modules/devices/printers.c:138
msgid "Yes"
msgstr "Да"

#: modules/devices/printers.c:190
msgid ""
"[Printers]\n"
"No suitable CUPS library found="
msgstr ""
"[Принтеры]\n"
"Подходящей библиотеки CUPS не найдено="

#: modules/devices/printers.c:200
msgid "[Printers (CUPS)]\n"
msgstr "[Принтеры (CUPS)]\n"

#: modules/devices/printers.c:263
msgid ""
"[Printers]\n"
"No printers found=\n"
msgstr ""
"[Принтеры]\n"
"Принтеры не найдены=\n"

#: modules/computer/os.c:49
#, c-format
msgid "GNU C Library version %s (%sstable)"
msgstr "Библиотека GNU C версии  %s (%sстабильна)"

#: modules/computer/os.c:51
msgid "un"
msgstr "не"

#: modules/computer/os.c:72
#, c-format
msgid "Version: %s"
msgstr "Версия: %s"

#: modules/computer/os.c:106
msgid "Terminal"
msgstr "Терминал"

#: modules/computer/os.c:126
#, c-format
msgid "Unknown (Window Manager: %s)"
msgstr "Неизвестно (Оконный менеджер: %s)"

#: modules/computer/os.c:166
msgid "Unknown distribution"
msgstr "Неизвестный дистрибутив"

#: modules/devices/battery.c:181
#, c-format
msgid ""
"\n"
"[Battery: %s]\n"
"State=%s (load: %s)\n"
"Capacity=%s / %s (%.2f%%)\n"
"Battery Technology=%s (%s)\n"
"Manufacturer=%s\n"
"Model Number=%s\n"
"Serial Number=%s\n"
msgstr ""
"\n"
"[Батарея: %s]\n"
"Состояние=%s (нагрузка: %s)\n"
"Емкость=%s / %s (%.2f%%)\n"
"Технология батареи=%s (%s)\n"
"Изготовитель=%s\n"
"Номер модели=%s\n"
"Серийный номер=%s\n"

#: modules/devices/battery.c:266
#, c-format
msgid ""
"\n"
"[Battery (APM)]\n"
"Charge=%d%%\n"
"Remaining Charge=%s of %s\n"
"Using=%s\n"
"APM driver version=%s\n"
"APM BIOS version=%s\n"
msgstr ""
"\n"
"[Батарея (APM)]\n"
"Заряд=%d%%\n"
"Оставшийся заряд=%s из %s\n"
"Используется=%s\n"
"APM драйвер версии=%s\n"
"APM BIOS версии=%s\n"

#: modules/devices/battery.c:278
#, c-format
msgid ""
"\n"
"[Battery (APM)]\n"
"Charge=%d%%\n"
"Using=%s\n"
"APM driver version=%s\n"
"APM BIOS version=%s\n"
msgstr ""
"\n"
"[Батарея (APM)]\n"
"Заряд=%d%%\n"
"Используется=%s\n"
"APM драйвер версии=%s\n"
"APM BIOS версии=%s\n"

#: modules/devices/battery.c:304
msgid ""
"[No batteries]\n"
"No batteries found on this system=\n"
msgstr ""
"[No batteries]\n"
"Батареи не найдены на этой системе=\n"

#: modules/devices/storage.c:46
msgid ""
"\n"
"[SCSI Disks]\n"
msgstr ""
"\n"
"[SCSI диски]\n"

#: modules/devices/storage.c:110
#: modules/devices/storage.c:297
#, c-format
msgid ""
"[Device Information]\n"
"Model=%s\n"
msgstr ""
"[Информация об устройстве]\n"
"Модель=%s\n"

#: modules/devices/storage.c:115
#: modules/devices/storage.c:304
#, c-format
msgid "Vendor=%s (%s)\n"
msgstr "Изготовитель=%s (%s)\n"

#: modules/devices/storage.c:120
#: modules/devices/storage.c:309
#, c-format
msgid "Vendor=%s\n"
msgstr "Изготовитель=%s\n"

#: modules/devices/storage.c:125
#, c-format
msgid ""
"Type=%s\n"
"Revision=%s\n"
"[SCSI Controller]\n"
"Controller=scsi%d\n"
"Channel=%d\n"
"ID=%d\n"
"LUN=%d\n"
msgstr ""

#: modules/devices/storage.c:169
msgid ""
"\n"
"[IDE Disks]\n"
msgstr ""
"\n"
"[IDE диски]\n"

#: modules/devices/storage.c:242
#, c-format
msgid "Driver=%s\n"
msgstr "Драйвер=%s\n"

#: modules/devices/storage.c:314
#, c-format
msgid ""
"Device Name=hd%c\n"
"Media=%s\n"
"Cache=%dkb\n"
msgstr ""

#: modules/devices/storage.c:329
#, c-format
msgid ""
"[Geometry]\n"
"Physical=%s\n"
"Logical=%s\n"
msgstr ""
"[Геометрия]\n"
"Физическая=%s\n"
"Логическая=%s\n"

#: modules/devices/storage.c:341
#, c-format
msgid ""
"[Capabilities]\n"
"%s"
msgstr ""

#: modules/devices/storage.c:348
#, c-format
msgid ""
"[Speeds]\n"
"%s"
msgstr ""
"[Скорости]\n"
"%s"

#~ msgid ""
#~ "[$ShellParam$]\n"
#~ "ReloadInterval=10000\n"
#~ "ViewType=1\n"
#~ "[Users]\n"
#~ "%s\n"
#~ msgstr ""
#~ "[$ShellParam$]\n"
#~ "ReloadInterval=10000\n"
#~ "ViewType=1\n"
#~ "[Пользователи]\n"
#~ "%s\n"

#, fuzzy
#~ msgid ""
#~ "[Operating System]\n"
#~ "Icon=os.png\n"
#~ "Method=computer::getOS\n"
#~ "[CPU]\n"
#~ "Icon=processor.png\n"
#~ "Method=devices::getProcessorName\n"
#~ "[RAM]\n"
#~ "Icon=memory.png\n"
#~ "Method=devices::getMemoryTotal\n"
#~ "[Motherboard]\n"
#~ "Icon=module.png\n"
#~ "Method=devices::getMotherboard\n"
#~ "[Graphics]\n"
#~ "Icon=monitor.png\n"
#~ "Method=computer::getDisplaySummary\n"
#~ "[Storage]\n"
#~ "Icon=hdd.png\n"
#~ "Method=devices::getStorageDevices\n"
#~ "[Printers]\n"
#~ "Icon=printer.png\n"
#~ "Method=devices::getPrinters\n"
#~ "[Audio]\n"
#~ "Icon=audio.png\n"
#~ "Method=computer::getAudioCards\n"
#~ msgstr ""
#~ "[Operating System]\n"
#~ "Icon=os.png\n"
#~ "Method=computer::getOS\n"
#~ "[CPU]\n"
#~ "Icon=processor.png\n"
#~ "Method=devices::getProcessorName\n"
#~ "[RAM]\n"
#~ "Icon=memory.png\n"
#~ "Method=devices::getMemoryTotal\n"
#~ "[Motherboard]\n"
#~ "Icon=module.png\n"
#~ "Method=devices::getMotherboard\n"
#~ "[Graphics]\n"
#~ "Icon=monitor.png\n"
#~ "Method=computer::getDisplaySummary\n"
#~ "[Storage]\n"
#~ "Icon=hdd.png\n"
#~ "Method=devices::getStorageDevices\n"
#~ "[Printers]\n"
#~ "Icon=printer.png\n"
#~ "Method=devices::getPrinters\n"
#~ "[Audio]\n"
#~ "Icon=audio.png\n"
#~ "Method=computer::getAudioCards\n"
#~ msgid "Uptime"
#~ msgstr "Время работы"
#~ msgid "Date/Time"
#~ msgstr "Дата/время"

# Должно совпадать с таким-же полем в строке 430 computer.c
#~ msgid "Load Average"
#~ msgstr "Средняя нагрузка"
#~ msgid ""
#~ "[Memory]\n"
#~ "%s\n"
#~ "[$ShellParam$]\n"
#~ "ViewType=2\n"
#~ "LoadGraphSuffix= kB\n"
#~ "RescanInterval=2000\n"
#~ "%s\n"
#~ msgstr ""
#~ "[Memory]\n"
#~ "%s\n"
#~ "[$ShellParam$]\n"
#~ "ViewType=2\n"
#~ "LoadGraphSuffix= kB\n"
#~ "RescanInterval=2000\n"
#~ "%s\n"
#~ msgid ""
#~ "[PCI Devices]\n"
#~ "%s[$ShellParam$]\n"
#~ "ViewType=1\n"
#~ msgstr ""
#~ "[PCI Devices]\n"
#~ "%s[$ShellParam$]\n"
#~ "ViewType=1\n"
#~ msgid ""
#~ "[Input Devices]\n"
#~ "%s[$ShellParam$]\n"
#~ "ViewType=1\n"
#~ "ReloadInterval=5000\n"
#~ "%s"
#~ msgstr ""
#~ "[Input Devices]\n"
#~ "%s[$ShellParam$]\n"
#~ "ViewType=1\n"
#~ "ReloadInterval=5000\n"
#~ "%s"
#~ msgid "HardInfo cannot run without loading the additional module."
#~ msgstr "HardInfo не может быть запущен без дополнительного модуля."
#, fuzzy
#~ msgid "AboutModule%s"
#~ msgstr "О _модулях"

Changes to shell/callbacks.c.

64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
...
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
...
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
...
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
...
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
    gchar *name;
    
    g_object_get(G_OBJECT(action), "name", &name, NULL);
    
    if (remote_connect_host(name)) {
        gchar *tmp;
        
        tmp = g_strdup_printf("Remote: <b>%s</b>", name);
        shell_set_remote_label(shell, tmp);
        
        g_free(tmp);
    } else {
        cb_local_computer();
    }

................................................................................
}

void cb_local_computer()
{
#ifdef HAS_LIBSOUP
    Shell *shell = shell_get_main_shell();

    shell_status_update("Disconnecting...");
    remote_disconnect_all(TRUE);

    shell_status_update("Unloading modules...");
    module_unload_all();
    
    shell_status_update("Loading local modules...");
    shell->tree->modules = modules_load_all();

    g_slist_foreach(shell->tree->modules, shell_add_modules_to_gui, shell->tree);
    gtk_tree_view_expand_all(GTK_TREE_VIEW(shell->tree->view));
    
    shell_view_set_enabled(TRUE);
    shell_status_update("Done.");
    shell_set_remote_label(shell, "");
#endif /* HAS_LIBSOUP */
}

void cb_save_graphic()
{
    Shell *shell = shell_get_main_shell();
    GtkWidget *dialog;
    gchar *filename;

    /* save the pixbuf to a png file */
    dialog = gtk_file_chooser_dialog_new("Save Image",
					 NULL,
					 GTK_FILE_CHOOSER_ACTION_SAVE,
					 GTK_STOCK_CANCEL,
					 GTK_RESPONSE_CANCEL,
					 GTK_STOCK_SAVE,
					 GTK_RESPONSE_ACCEPT, NULL);

................................................................................
    gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), filename);
    g_free(filename);

    if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) {
	filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
	gtk_widget_destroy(dialog);

	shell_status_update("Saving image...");

	tree_view_save_image(filename);

	shell_status_update("Done.");
	g_free(filename);

	return;
    }

    gtk_widget_destroy(dialog);
}
................................................................................
        GtkWidget *dialog;
        
no_context_help:
	dialog = gtk_message_dialog_new(GTK_WINDOW(shell->window),
					GTK_DIALOG_DESTROY_WITH_PARENT,
					GTK_MESSAGE_ERROR,
					GTK_BUTTONS_CLOSE,
					"No context help available.");

	gtk_dialog_run(GTK_DIALOG(dialog));
	gtk_widget_destroy(dialog);
    }
}

void cb_report_bug()
................................................................................

	if ((ma = module_get_about(sm))) {
	    GtkWidget *about;
	    gchar *text;

	    about = gtk_about_dialog_new();

	    text = g_strdup_printf("%s Module", sm->name);
	    gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), text);
	    g_free(text);

	    gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about),
					 ma->version);

	    text = g_strdup_printf("Written by %s\nLicensed under %s",
				   ma->author, ma->license);
	    gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about), text);
	    g_free(text);

	    if (ma->description)
		gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about),
					      ma->description);

	    gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about), sm->icon);
	    gtk_dialog_run(GTK_DIALOG(about));
	    gtk_widget_destroy(about);
	} else {
	    g_warning
		("No about information is associated with the %s module.",
		 name);
	}

	break;
    }

    g_free(name);
}

void cb_about()
{
    GtkWidget *about;
    const gchar *authors[] = {
	"Author:",
	"Leandro A. F. Pereira",
	"",
	"Contributors:",
	"Agney Lopes Roth Ferraz",
	"Andrey Esin",
	"",
	"Based on work by:",
	"MD5 implementation by Colin Plumb (see md5.c for details)",
	"SHA1 implementation by Steve Reid (see sha1.c for details)",
	"Blowfish implementation by Paul Kocher (see blowfich.c for details)",
	"Raytracing benchmark by John Walker (see fbench.c for details)",
	"FFT benchmark by Scott Robert Ladd (see fftbench.c for details)",
	"Some code partly based on x86cpucaps by Osamu Kayasono",
	"Vendor list based on GtkSysInfo by Pissens Sebastien",
	"DMI support based on code by Stewart Adam",
	"SCSI support based on code by Pascal F. Martin",
	NULL
    };
    const gchar *artists[] = {
	"Jakub Szypulka",
	"Tango Project",
	"The GNOME Project",
	"VMWare, Inc. (USB icon from VMWare Workstation 6)",
	NULL
    };

    about = gtk_about_dialog_new();
    gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), "HardInfo");
    gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about), VERSION);
    gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about),
				   "Copyright \302\251 2003-2012 "
				   "Leandro A. F. Pereira");
    gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about),
				  "System information and benchmark tool");
    gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about),
			      icon_cache_get_pixbuf("logo.png"));

    gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(about),
				 "HardInfo is free software; you can redistribute it and/or modify "
				 "it under the terms of the GNU General Public License as published by "
				 "the Free Software Foundation, version 2.\n\n"
				 "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.\n\n"
				 "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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA");
#if GTK_CHECK_VERSION(2,8,0)
    gtk_about_dialog_set_wrap_license(GTK_ABOUT_DIALOG(about), TRUE);
#endif

    gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(about), authors);
    gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(about), artists);








|







 







|


|


|






|











|







 







|



|







 







|







 







|






|













|













|


|



|
|
|
|
|
|
|
|
|
|



|
|
|
|










|




|








|







64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
...
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
...
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
...
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
...
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
    gchar *name;
    
    g_object_get(G_OBJECT(action), "name", &name, NULL);
    
    if (remote_connect_host(name)) {
        gchar *tmp;
        
        tmp = g_strdup_printf(_("Remote: <b>%s</b>"), name);
        shell_set_remote_label(shell, tmp);
        
        g_free(tmp);
    } else {
        cb_local_computer();
    }

................................................................................
}

void cb_local_computer()
{
#ifdef HAS_LIBSOUP
    Shell *shell = shell_get_main_shell();

    shell_status_update(_("Disconnecting..."));
    remote_disconnect_all(TRUE);

    shell_status_update(_("Unloading modules..."));
    module_unload_all();
    
    shell_status_update(_("Loading local modules..."));
    shell->tree->modules = modules_load_all();

    g_slist_foreach(shell->tree->modules, shell_add_modules_to_gui, shell->tree);
    gtk_tree_view_expand_all(GTK_TREE_VIEW(shell->tree->view));
    
    shell_view_set_enabled(TRUE);
    shell_status_update(_("Done."));
    shell_set_remote_label(shell, "");
#endif /* HAS_LIBSOUP */
}

void cb_save_graphic()
{
    Shell *shell = shell_get_main_shell();
    GtkWidget *dialog;
    gchar *filename;

    /* save the pixbuf to a png file */
    dialog = gtk_file_chooser_dialog_new(_("Save Image"),
					 NULL,
					 GTK_FILE_CHOOSER_ACTION_SAVE,
					 GTK_STOCK_CANCEL,
					 GTK_RESPONSE_CANCEL,
					 GTK_STOCK_SAVE,
					 GTK_RESPONSE_ACCEPT, NULL);

................................................................................
    gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), filename);
    g_free(filename);

    if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) {
	filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
	gtk_widget_destroy(dialog);

	shell_status_update(_("Saving image..."));

	tree_view_save_image(filename);

	shell_status_update(_("Done."));
	g_free(filename);

	return;
    }

    gtk_widget_destroy(dialog);
}
................................................................................
        GtkWidget *dialog;
        
no_context_help:
	dialog = gtk_message_dialog_new(GTK_WINDOW(shell->window),
					GTK_DIALOG_DESTROY_WITH_PARENT,
					GTK_MESSAGE_ERROR,
					GTK_BUTTONS_CLOSE,
					_("No context help available."));

	gtk_dialog_run(GTK_DIALOG(dialog));
	gtk_widget_destroy(dialog);
    }
}

void cb_report_bug()
................................................................................

	if ((ma = module_get_about(sm))) {
	    GtkWidget *about;
	    gchar *text;

	    about = gtk_about_dialog_new();

	    text = g_strdup_printf(_("%s Module"), sm->name);
	    gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), text);
	    g_free(text);

	    gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about),
					 ma->version);

	    text = g_strdup_printf(_("Written by %s\nLicensed under %s"),
				   ma->author, ma->license);
	    gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about), text);
	    g_free(text);

	    if (ma->description)
		gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about),
					      ma->description);

	    gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about), sm->icon);
	    gtk_dialog_run(GTK_DIALOG(about));
	    gtk_widget_destroy(about);
	} else {
	    g_warning
		(_("No about information is associated with the %s module."),
		 name);
	}

	break;
    }

    g_free(name);
}

void cb_about()
{
    GtkWidget *about;
    const gchar *authors[] = {
	_("Author:"),
	"Leandro A. F. Pereira",
	"",
	_("Contributors:"),
	"Agney Lopes Roth Ferraz",
	"Andrey Esin",
	"",
	_("Based on work by:"),
	_("MD5 implementation by Colin Plumb (see md5.c for details)"),
	_("SHA1 implementation by Steve Reid (see sha1.c for details)"),
	_("Blowfish implementation by Paul Kocher (see blowfich.c for details)"),
	_("Raytracing benchmark by John Walker (see fbench.c for details)"),
	_("FFT benchmark by Scott Robert Ladd (see fftbench.c for details)"),
	_("Some code partly based on x86cpucaps by Osamu Kayasono"),
	_("Vendor list based on GtkSysInfo by Pissens Sebastien"),
	_("DMI support based on code by Stewart Adam"),
	_("SCSI support based on code by Pascal F. Martin"),
	NULL
    };
    const gchar *artists[] = {
	_("Jakub Szypulka"),
	_("Tango Project"),
	_("The GNOME Project"),
	_("VMWare, Inc. (USB icon from VMWare Workstation 6)"),
	NULL
    };

    about = gtk_about_dialog_new();
    gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), "HardInfo");
    gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about), VERSION);
    gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about),
				   "Copyright \302\251 2003-2012 "
				   "Leandro A. F. Pereira");
    gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about),
				  _("System information and benchmark tool"));
    gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about),
			      icon_cache_get_pixbuf("logo.png"));

    gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(about),
				 _("HardInfo is free software; you can redistribute it and/or modify "
				 "it under the terms of the GNU General Public License as published by "
				 "the Free Software Foundation, version 2.\n\n"
				 "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.\n\n"
				 "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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA"));
#if GTK_CHECK_VERSION(2,8,0)
    gtk_about_dialog_set_wrap_license(GTK_ABOUT_DIALOG(about), TRUE);
#endif

    gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(about), authors);
    gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(about), artists);

Changes to shell/loadgraph.c.

319
320
321
322
323
324
325


326
327
328
329
330
331
332
    load_graph_update(lg, i + rand() % 50);

    return TRUE;
}

int main(int argc, char **argv)
{


    LoadGraph *lg;
    GtkWidget *window;

    gtk_init(&argc, &argv);

    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gtk_widget_show(window);







>
>







319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
    load_graph_update(lg, i + rand() % 50);

    return TRUE;
}

int main(int argc, char **argv)
{
	
   
    LoadGraph *lg;
    GtkWidget *window;

    gtk_init(&argc, &argv);

    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gtk_widget_show(window);

Changes to shell/menu.c.

23
24
25
26
27
28
29

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
...
159
160
161
162
163
164
165
166

167
168
169
170
171
172

173
174
175
176
177
178
179
#include <menu.h>
#include <config.h>

#include <stock.h>

#include <callbacks.h>
#include <hardinfo.h>


#include "uidefs.h"

static GtkActionEntry entries[] = {
    {"InformationMenuAction", NULL, "_Information"},	/* name, stock id, label */
    {"RemoteMenuAction", NULL, "_Remote"},
    {"ViewMenuAction", NULL, "_View"},
    {"HelpMenuAction", NULL, "_Help"},
    {"HelpMenuModulesAction", HI_STOCK_ABOUT_MODULES, "About _Modules"},
    {"MainMenuBarAction", NULL, ""},

    {"ReportAction", HI_STOCK_REPORT,	/* name, stock id */
     "Generate _Report", "<control>R",	/* label, accelerator */
     NULL,			/* tooltip */
     G_CALLBACK(cb_generate_report)},

    {"SyncManagerAction", HI_STOCK_SYNC_MENU,
     "_Network Updater...", NULL,
     NULL,
     G_CALLBACK(cb_sync_manager)},

    {"OpenAction", GTK_STOCK_OPEN,
     "_Open...", NULL,
     NULL,
     G_CALLBACK(cb_sync_manager)},
     
    {"ConnectToAction", GTK_STOCK_CONNECT,
     "_Connect to...", NULL,
     NULL,
     G_CALLBACK(cb_connect_to)},

    {"ManageAction", NULL,
     "_Manage hosts...", NULL,
     NULL,
     G_CALLBACK(cb_manage_hosts)},
    
    {"LocalComputerAction", GTK_STOCK_HOME,
     "_Local computer", NULL,
     NULL,
     G_CALLBACK(cb_local_computer)},

    {"CopyAction", GTK_STOCK_COPY,
     "_Copy to Clipboard", "<control>C",
     "Copy to clipboard",
     G_CALLBACK(cb_copy_to_clipboard)},

    {"SaveGraphAction", GTK_STOCK_SAVE_AS,
     "_Save image as...", "<control>S",
     NULL,
     G_CALLBACK(cb_save_graphic)},

    {"RefreshAction", GTK_STOCK_REFRESH,
     "_Refresh", "F5",
     NULL,
     G_CALLBACK(cb_refresh)},

    {"OnlineDocsAction", GTK_STOCK_HELP,
     "Contents", "F1",
     NULL,
     G_CALLBACK(cb_open_online_docs)},

    {"ContextHelpAction", NULL,
     "Context help", "<Ctrl>F1",
     NULL,
     G_CALLBACK(cb_open_online_docs_context)},

    {"HomePageAction", HI_STOCK_INTERNET,
     "_Open HardInfo Web Site", NULL,
     NULL,
     G_CALLBACK(cb_open_web_page)},

    {"ReportBugAction", HI_STOCK_INTERNET,
     "_Report bug", NULL,
     NULL,
     G_CALLBACK(cb_report_bug)},

    {"DonateAction", HI_STOCK_DONATE,
     "_Donate to the project", NULL,
     NULL,
     G_CALLBACK(cb_donate)},

    {"AboutAction", GTK_STOCK_ABOUT,
     "_About HardInfo", NULL,
     "Displays program version information",
     G_CALLBACK(cb_about)},

    {"QuitAction", GTK_STOCK_QUIT,
     "_Quit", "<control>Q",
     NULL,
     G_CALLBACK(cb_quit)}
};

static GtkToggleActionEntry toggle_entries[] = {
    {"SidePaneAction", NULL,
     "_Side Pane", NULL,
     "Toggles side pane visibility",
     G_CALLBACK(cb_side_pane)},
    {"ToolbarAction", NULL,
     "_Toolbar", NULL,
     NULL,
     G_CALLBACK(cb_toolbar)},
    {"ActAsServerAction", NULL,
      "_Accept connections", NULL,
      NULL,
      G_CALLBACK(cb_act_as_server) }
};

/* Implement a handler for GtkUIManager's "add_widget" signal. The UI manager
 * will emit this signal whenever it needs you to place a new widget it has. */
static void
................................................................................

    shell->action_group = action_group;
    shell->ui_manager = menu_manager;

    /* Pack up our objects:
     * menu_box -> window
     * actions -> action_group
     * action_group -> menu_manager */

    gtk_action_group_add_actions(action_group, entries,
				 G_N_ELEMENTS(entries), NULL);
    gtk_action_group_add_toggle_actions(action_group, toggle_entries,
					G_N_ELEMENTS(toggle_entries),
					NULL);
    gtk_ui_manager_insert_action_group(menu_manager, action_group, 0);


    /* Read in the UI from our XML file */
    error = NULL;
    gtk_ui_manager_add_ui_from_string(menu_manager, uidefs_str, -1,
				      &error);

    if (error) {







>




|
|
|
|
|



|




|




|




|




|




|




|
|



|




|




|




|




|




|




|




|
|



|






|
|


|



|







 







|
>






>







23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
...
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#include <menu.h>
#include <config.h>

#include <stock.h>

#include <callbacks.h>
#include <hardinfo.h>


#include "uidefs.h"

static GtkActionEntry entries[] = {
    {"InformationMenuAction", NULL, N_("_Information")},	/* name, stock id, label */
    {"RemoteMenuAction", NULL, N_("_Remote")},
    {"ViewMenuAction", NULL, N_("_View")},
    {"HelpMenuAction", NULL, N_("_Help")},
    {"HelpMenuModulesAction", HI_STOCK_ABOUT_MODULES, N_("About _Modules")},
    {"MainMenuBarAction", NULL, ""},

    {"ReportAction", HI_STOCK_REPORT,	/* name, stock id */
     N_("Generate _Report"), "<control>R",	/* label, accelerator */
     NULL,			/* tooltip */
     G_CALLBACK(cb_generate_report)},

    {"SyncManagerAction", HI_STOCK_SYNC_MENU,
     N_("_Network Updater..."), NULL,
     NULL,
     G_CALLBACK(cb_sync_manager)},

    {"OpenAction", GTK_STOCK_OPEN,
     N_("_Open..."), NULL,
     NULL,
     G_CALLBACK(cb_sync_manager)},
     
    {"ConnectToAction", GTK_STOCK_CONNECT,
     N_("_Connect to..."), NULL,
     NULL,
     G_CALLBACK(cb_connect_to)},

    {"ManageAction", NULL,
     N_("_Manage hosts..."), NULL,
     NULL,
     G_CALLBACK(cb_manage_hosts)},
    
    {"LocalComputerAction", GTK_STOCK_HOME,
     N_("_Local computer"), NULL,
     NULL,
     G_CALLBACK(cb_local_computer)},

    {"CopyAction", GTK_STOCK_COPY,
     N_("_Copy to Clipboard"), "<control>C",
     N_("Copy to clipboard"),
     G_CALLBACK(cb_copy_to_clipboard)},

    {"SaveGraphAction", GTK_STOCK_SAVE_AS,
     N_("_Save image as..."), "<control>S",
     NULL,
     G_CALLBACK(cb_save_graphic)},

    {"RefreshAction", GTK_STOCK_REFRESH,
     N_("_Refresh"), "F5",
     NULL,
     G_CALLBACK(cb_refresh)},

    {"OnlineDocsAction", GTK_STOCK_HELP,
     N_("Contents"), "F1",
     NULL,
     G_CALLBACK(cb_open_online_docs)},

    {"ContextHelpAction", NULL,
     N_("Context help"), "<Ctrl>F1",
     NULL,
     G_CALLBACK(cb_open_online_docs_context)},

    {"HomePageAction", HI_STOCK_INTERNET,
     N_("_Open HardInfo Web Site"), NULL,
     NULL,
     G_CALLBACK(cb_open_web_page)},

    {"ReportBugAction", HI_STOCK_INTERNET,
     N_("_Report bug"), NULL,
     NULL,
     G_CALLBACK(cb_report_bug)},

    {"DonateAction", HI_STOCK_DONATE,
     N_("_Donate to the project"), NULL,
     NULL,
     G_CALLBACK(cb_donate)},

    {"AboutAction", GTK_STOCK_ABOUT,
     N_("_About HardInfo"), NULL,
     N_("Displays program version information"),
     G_CALLBACK(cb_about)},

    {"QuitAction", GTK_STOCK_QUIT,
     N_("_Quit"), "<control>Q",
     NULL,
     G_CALLBACK(cb_quit)}
};

static GtkToggleActionEntry toggle_entries[] = {
    {"SidePaneAction", NULL,
     N_("_Side Pane"), NULL,
     N_("Toggles side pane visibility"),
     G_CALLBACK(cb_side_pane)},
    {"ToolbarAction", NULL,
     N_("_Toolbar"), NULL,
     NULL,
     G_CALLBACK(cb_toolbar)},
    {"ActAsServerAction", NULL,
      N_("_Accept connections"), NULL,
      NULL,
      G_CALLBACK(cb_act_as_server) }
};

/* Implement a handler for GtkUIManager's "add_widget" signal. The UI manager
 * will emit this signal whenever it needs you to place a new widget it has. */
static void
................................................................................

    shell->action_group = action_group;
    shell->ui_manager = menu_manager;

    /* Pack up our objects:
     * menu_box -> window
     * actions -> action_group
     * action_group -> menu_manager */  
    gtk_action_group_set_translation_domain( action_group, "hardinfo" );//gettext 
    gtk_action_group_add_actions(action_group, entries,
				 G_N_ELEMENTS(entries), NULL);
    gtk_action_group_add_toggle_actions(action_group, toggle_entries,
					G_N_ELEMENTS(toggle_entries),
					NULL);
    gtk_ui_manager_insert_action_group(menu_manager, action_group, 0);
    

    /* Read in the UI from our XML file */
    error = NULL;
    gtk_ui_manager_add_ui_from_string(menu_manager, uidefs_str, -1,
				      &error);

    if (error) {

Changes to shell/report.c.

485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
...
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
...
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
...
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
...
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
...
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
...
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
...
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
}

static gchar *report_get_filename(void)
{
    GtkWidget *dialog;
    gchar *filename = NULL;

    dialog = gtk_file_chooser_dialog_new("Save File",
					 NULL,
					 GTK_FILE_CHOOSER_ACTION_SAVE,
					 GTK_STOCK_CANCEL,
					 GTK_RESPONSE_CANCEL,
					 GTK_STOCK_SAVE,
					 GTK_RESPONSE_ACCEPT, NULL);

................................................................................
	g_free(file);
	return FALSE;
    }

    create_context = file_types_get_data_by_name(file_types, file);

    if (!create_context) {
	g_warning("Cannot create ReportContext. Programming bug?");
	g_free(file);
	return FALSE;
    }

    ctx = create_context();
    modules = report_create_module_list_from_dialog(rd);

................................................................................

    if (ctx->format == REPORT_FORMAT_HTML) {
	GtkWidget *dialog;
	dialog = gtk_message_dialog_new(NULL,
					GTK_DIALOG_DESTROY_WITH_PARENT,
					GTK_MESSAGE_QUESTION,
					GTK_BUTTONS_NONE,
					"Open the report with your web browser?");
	gtk_dialog_add_buttons(GTK_DIALOG(dialog),
			       GTK_STOCK_NO, GTK_RESPONSE_REJECT,
			       GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
	if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) {
	    gchar *temp;
	    
	    temp = g_strdup_printf("file://%s", file);
................................................................................

void report_dialog_show(GtkTreeModel * model, GtkWidget * parent)
{
    gboolean success;
    ReportDialog *rd = report_dialog_new(model, parent);

    if (gtk_dialog_run(GTK_DIALOG(rd->dialog)) == GTK_RESPONSE_ACCEPT) {
	shell_status_update("Generating report...");
	gtk_widget_hide(rd->dialog);
	shell_view_set_enabled(FALSE);
	shell_status_set_enabled(TRUE);

	success = report_generate(rd);

	shell_status_set_enabled(FALSE);

	if (success)
	    shell_status_update("Report saved.");
	else
	    shell_status_update("Error while creating the report.");
    }

    set_all_active(rd, FALSE);
    gtk_widget_destroy(rd->dialog);
    g_free(rd);
}

................................................................................

    GtkTreeViewColumn *column;
    GtkCellRenderer *cr_text, *cr_pbuf, *cr_toggle;

    rd = g_new0(ReportDialog, 1);

    dialog = gtk_dialog_new();
    gtk_window_set_title(GTK_WINDOW(dialog), "Generate Report");
    gtk_container_set_border_width(GTK_CONTAINER(dialog), 5);
    gtk_window_set_default_size(GTK_WINDOW(dialog), 420, 260);
    gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(parent));
    gtk_window_set_position(GTK_WINDOW(dialog),
			    GTK_WIN_POS_CENTER_ON_PARENT);
    gtk_window_set_type_hint(GTK_WINDOW(dialog),
			     GDK_WINDOW_TYPE_HINT_DIALOG);
................................................................................
    gtk_box_set_spacing(GTK_BOX(dialog1_vbox), 5);
    gtk_container_set_border_width(GTK_CONTAINER(dialog1_vbox), 4);
    gtk_widget_show(dialog1_vbox);

    hbox = gtk_hbox_new(FALSE, 5);
    gtk_box_pack_start(GTK_BOX(dialog1_vbox), hbox, FALSE, FALSE, 0);

    label = gtk_label_new("<big><b>Generate Report</b></big>\n"
			  "Please choose the information that you wish "
			  "to view in your report:");
    gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
    gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
    gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);

    gtk_box_pack_start(GTK_BOX(hbox),
		       icon_cache_get_image("report-large.png"),
		       FALSE, FALSE, 0);
................................................................................
    vbuttonbox3 = gtk_vbutton_box_new();
    gtk_widget_show(vbuttonbox3);
    gtk_box_pack_start(GTK_BOX(hbox), vbuttonbox3, FALSE, TRUE, 0);
    gtk_box_set_spacing(GTK_BOX(vbuttonbox3), 5);
    gtk_button_box_set_layout(GTK_BUTTON_BOX(vbuttonbox3),
			      GTK_BUTTONBOX_START);

    button3 = gtk_button_new_with_mnemonic("Select _None");
    gtk_widget_show(button3);
    gtk_container_add(GTK_CONTAINER(vbuttonbox3), button3);
    GTK_WIDGET_SET_FLAGS(button3, GTK_CAN_DEFAULT);
    g_signal_connect(button3, "clicked",
		     G_CALLBACK(report_dialog_sel_none), rd);

    button6 = gtk_button_new_with_mnemonic("Select _All");
    gtk_widget_show(button6);
    gtk_container_add(GTK_CONTAINER(vbuttonbox3), button6);
    GTK_WIDGET_SET_FLAGS(button6, GTK_CAN_DEFAULT);
    g_signal_connect(button6, "clicked", G_CALLBACK(report_dialog_sel_all),
		     rd);

    dialog1_action_area = GTK_DIALOG(dialog)->action_area;
................................................................................

    button8 = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
    gtk_widget_show(button8);
    gtk_dialog_add_action_widget(GTK_DIALOG(dialog), button8,
				 GTK_RESPONSE_CANCEL);
    GTK_WIDGET_SET_FLAGS(button8, GTK_CAN_DEFAULT);

    button7 = gtk_button_new_with_mnemonic("_Generate");
    gtk_widget_show(button7);
    gtk_dialog_add_action_widget(GTK_DIALOG(dialog), button7,
				 GTK_RESPONSE_ACCEPT);
    GTK_WIDGET_SET_FLAGS(button7, GTK_CAN_DEFAULT);

    rd->dialog = dialog;
    rd->btn_cancel = button8;







|







 







|







 







|







 







|









|

|







 







|







 







|

|







 







|






|







 







|







485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
...
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
...
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
...
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
...
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
...
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
...
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
...
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
}

static gchar *report_get_filename(void)
{
    GtkWidget *dialog;
    gchar *filename = NULL;

    dialog = gtk_file_chooser_dialog_new(_("Save File"),
					 NULL,
					 GTK_FILE_CHOOSER_ACTION_SAVE,
					 GTK_STOCK_CANCEL,
					 GTK_RESPONSE_CANCEL,
					 GTK_STOCK_SAVE,
					 GTK_RESPONSE_ACCEPT, NULL);

................................................................................
	g_free(file);
	return FALSE;
    }

    create_context = file_types_get_data_by_name(file_types, file);

    if (!create_context) {
	g_warning(_("Cannot create ReportContext. Programming bug?"));
	g_free(file);
	return FALSE;
    }

    ctx = create_context();
    modules = report_create_module_list_from_dialog(rd);

................................................................................

    if (ctx->format == REPORT_FORMAT_HTML) {
	GtkWidget *dialog;
	dialog = gtk_message_dialog_new(NULL,
					GTK_DIALOG_DESTROY_WITH_PARENT,
					GTK_MESSAGE_QUESTION,
					GTK_BUTTONS_NONE,
					_("Open the report with your web browser?"));
	gtk_dialog_add_buttons(GTK_DIALOG(dialog),
			       GTK_STOCK_NO, GTK_RESPONSE_REJECT,
			       GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
	if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) {
	    gchar *temp;
	    
	    temp = g_strdup_printf("file://%s", file);
................................................................................

void report_dialog_show(GtkTreeModel * model, GtkWidget * parent)
{
    gboolean success;
    ReportDialog *rd = report_dialog_new(model, parent);

    if (gtk_dialog_run(GTK_DIALOG(rd->dialog)) == GTK_RESPONSE_ACCEPT) {
	shell_status_update(_("Generating report..."));
	gtk_widget_hide(rd->dialog);
	shell_view_set_enabled(FALSE);
	shell_status_set_enabled(TRUE);

	success = report_generate(rd);

	shell_status_set_enabled(FALSE);

	if (success)
	    shell_status_update(_("Report saved."));
	else
	    shell_status_update(_("Error while creating the report."));
    }

    set_all_active(rd, FALSE);
    gtk_widget_destroy(rd->dialog);
    g_free(rd);
}

................................................................................

    GtkTreeViewColumn *column;
    GtkCellRenderer *cr_text, *cr_pbuf, *cr_toggle;

    rd = g_new0(ReportDialog, 1);

    dialog = gtk_dialog_new();
    gtk_window_set_title(GTK_WINDOW(dialog), _("Generate Report"));
    gtk_container_set_border_width(GTK_CONTAINER(dialog), 5);
    gtk_window_set_default_size(GTK_WINDOW(dialog), 420, 260);
    gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(parent));
    gtk_window_set_position(GTK_WINDOW(dialog),
			    GTK_WIN_POS_CENTER_ON_PARENT);
    gtk_window_set_type_hint(GTK_WINDOW(dialog),
			     GDK_WINDOW_TYPE_HINT_DIALOG);
................................................................................
    gtk_box_set_spacing(GTK_BOX(dialog1_vbox), 5);
    gtk_container_set_border_width(GTK_CONTAINER(dialog1_vbox), 4);
    gtk_widget_show(dialog1_vbox);

    hbox = gtk_hbox_new(FALSE, 5);
    gtk_box_pack_start(GTK_BOX(dialog1_vbox), hbox, FALSE, FALSE, 0);

    label = gtk_label_new(_("<big><b>Generate Report</b></big>\n"
			  "Please choose the information that you wish "
			  "to view in your report:"));
    gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
    gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
    gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);

    gtk_box_pack_start(GTK_BOX(hbox),
		       icon_cache_get_image("report-large.png"),
		       FALSE, FALSE, 0);
................................................................................
    vbuttonbox3 = gtk_vbutton_box_new();
    gtk_widget_show(vbuttonbox3);
    gtk_box_pack_start(GTK_BOX(hbox), vbuttonbox3, FALSE, TRUE, 0);
    gtk_box_set_spacing(GTK_BOX(vbuttonbox3), 5);
    gtk_button_box_set_layout(GTK_BUTTON_BOX(vbuttonbox3),
			      GTK_BUTTONBOX_START);

    button3 = gtk_button_new_with_mnemonic(_("Select _None"));
    gtk_widget_show(button3);
    gtk_container_add(GTK_CONTAINER(vbuttonbox3), button3);
    GTK_WIDGET_SET_FLAGS(button3, GTK_CAN_DEFAULT);
    g_signal_connect(button3, "clicked",
		     G_CALLBACK(report_dialog_sel_none), rd);

    button6 = gtk_button_new_with_mnemonic(_("Select _All"));
    gtk_widget_show(button6);
    gtk_container_add(GTK_CONTAINER(vbuttonbox3), button6);
    GTK_WIDGET_SET_FLAGS(button6, GTK_CAN_DEFAULT);
    g_signal_connect(button6, "clicked", G_CALLBACK(report_dialog_sel_all),
		     rd);

    dialog1_action_area = GTK_DIALOG(dialog)->action_area;
................................................................................

    button8 = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
    gtk_widget_show(button8);
    gtk_dialog_add_action_widget(GTK_DIALOG(dialog), button8,
				 GTK_RESPONSE_CANCEL);
    GTK_WIDGET_SET_FLAGS(button8, GTK_CAN_DEFAULT);

    button7 = gtk_button_new_with_mnemonic(_("_Generate"));
    gtk_widget_show(button7);
    gtk_dialog_add_action_widget(GTK_DIALOG(dialog), button7,
				 GTK_RESPONSE_ACCEPT);
    GTK_WIDGET_SET_FLAGS(button7, GTK_CAN_DEFAULT);

    rd->dialog = dialog;
    rd->btn_cancel = button8;

Changes to shell/shell.c.

307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
...
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
...
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
....
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
....
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
....
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814

    if (setting)
	gtk_widget_show(shell->progress);
    else {
	gtk_widget_hide(shell->progress);
	shell_view_set_enabled(TRUE);

	shell_status_update("Done.");
    }
}

void shell_do_reload(void)
{
    if (!params.gui_running || !shell->selected)
	return;
................................................................................
}

void shell_set_title(Shell *shell, gchar *subtitle)
{
    if (subtitle) {
        gchar *tmp;

        tmp = g_strdup_printf("%s - System Information", subtitle);
        gtk_window_set_title(GTK_WINDOW(shell->window), tmp);
        
        g_free(tmp);
    } else {
        gtk_window_set_title(GTK_WINDOW(shell->window), "System Information");
    }
}

static void create_window(void)
{
    GtkWidget *vbox, *hbox;

................................................................................
    gtk_notebook_append_page(GTK_NOTEBOOK(shell->notebook),
                             shell->summary->scroll, NULL);
                             
    gtk_notebook_set_show_tabs(GTK_NOTEBOOK(shell->notebook), FALSE);
    gtk_notebook_set_show_border(GTK_NOTEBOOK(shell->notebook), FALSE);

    shell_status_set_enabled(TRUE);
    shell_status_update("Loading modules...");

    shell->tree->modules = modules ? modules : modules_load_all();

    g_slist_foreach(shell->tree->modules, shell_add_modules_to_gui, shell->tree);
    gtk_tree_view_expand_all(GTK_TREE_VIEW(shell->tree->view));

    gtk_widget_show_all(shell->hpaned);

    load_graph_configure_expose(shell->loadgraph);
    gtk_widget_hide(shell->notebook);
    gtk_widget_hide(shell->note->event_box);

    shell_status_update("Done.");
    shell_status_set_enabled(FALSE);

    shell_action_set_enabled("ContextHelpAction", FALSE);
    shell_action_set_enabled("RefreshAction", FALSE);
    shell_action_set_enabled("CopyAction", FALSE);
    shell_action_set_enabled("SaveGraphAction", FALSE);
    shell_action_set_active("SidePaneAction", TRUE);
................................................................................
}
static void shell_summary_create_header(ShellSummary *summary,
                                        gchar *title)
{
    GtkWidget *header, *label;
    gchar *temp;
    
    temp = g_strdup_printf("<b>%s \342\206\222 Summary</b>", title);
    
    header = gtk_menu_item_new_with_label(temp);
    gtk_menu_item_select(GTK_MENU_ITEM(header));
    gtk_widget_show(header);
    
    label = gtk_bin_get_child(GTK_BIN(header));
    gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
................................................................................

    /* Get the current selection and shows its related info */
    gtk_tree_model_get(model, &iter, TREE_COL_MODULE_ENTRY, &entry, -1);
    if (entry && !entry->selected) {
	gchar *title;

	shell_status_set_enabled(TRUE);
	shell_status_update("Updating...");

	entry->selected = TRUE;
	shell->selected = entry;
	module_selected_show_info(entry, FALSE);
	
	info_selected_show_extra(NULL);	/* clears the more info store */
	gtk_tree_view_columns_autosize(GTK_TREE_VIEW(shell->info->view));
................................................................................
                                   shell->selected_module->name,
                                   entry->name);
            shell_action_set_label("ContextHelpAction", temp);
            
            g_free(temp);
        } else {
            shell_action_set_enabled("ContextHelpAction", FALSE);
            shell_action_set_label("ContextHelpAction", "Context help");
        }

	shell_action_set_enabled("RefreshAction", TRUE);
	shell_action_set_enabled("CopyAction", TRUE);

	shell_status_update("Done.");
	shell_status_set_enabled(FALSE);
    } else {
	shell_set_title(shell, NULL);
	shell_action_set_enabled("RefreshAction", FALSE);
	shell_action_set_enabled("CopyAction", FALSE);

	gtk_tree_store_clear(GTK_TREE_STORE(shell->info->model));
	set_view_type(SHELL_VIEW_NORMAL, FALSE);

        shell_action_set_enabled("ContextHelpAction", FALSE);
        shell_action_set_label("ContextHelpAction", "Context help");
        
        if (shell->selected_module->summaryfunc) {
           shell_show_summary();
        }
    }

    current = entry;







|







 







|




|







 







|












|







 







|







 







|







 







|





|










|







307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
...
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
...
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
....
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
....
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
....
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814

    if (setting)
	gtk_widget_show(shell->progress);
    else {
	gtk_widget_hide(shell->progress);
	shell_view_set_enabled(TRUE);

	shell_status_update(_("Done."));
    }
}

void shell_do_reload(void)
{
    if (!params.gui_running || !shell->selected)
	return;
................................................................................
}

void shell_set_title(Shell *shell, gchar *subtitle)
{
    if (subtitle) {
        gchar *tmp;

        tmp = g_strdup_printf(_("%s - System Information"), subtitle);
        gtk_window_set_title(GTK_WINDOW(shell->window), tmp);
        
        g_free(tmp);
    } else {
        gtk_window_set_title(GTK_WINDOW(shell->window), _("System Information"));
    }
}

static void create_window(void)
{
    GtkWidget *vbox, *hbox;

................................................................................
    gtk_notebook_append_page(GTK_NOTEBOOK(shell->notebook),
                             shell->summary->scroll, NULL);
                             
    gtk_notebook_set_show_tabs(GTK_NOTEBOOK(shell->notebook), FALSE);
    gtk_notebook_set_show_border(GTK_NOTEBOOK(shell->notebook), FALSE);

    shell_status_set_enabled(TRUE);
    shell_status_update(_("Loading modules..."));

    shell->tree->modules = modules ? modules : modules_load_all();

    g_slist_foreach(shell->tree->modules, shell_add_modules_to_gui, shell->tree);
    gtk_tree_view_expand_all(GTK_TREE_VIEW(shell->tree->view));

    gtk_widget_show_all(shell->hpaned);

    load_graph_configure_expose(shell->loadgraph);
    gtk_widget_hide(shell->notebook);
    gtk_widget_hide(shell->note->event_box);

    shell_status_update(_("Done."));
    shell_status_set_enabled(FALSE);

    shell_action_set_enabled("ContextHelpAction", FALSE);
    shell_action_set_enabled("RefreshAction", FALSE);
    shell_action_set_enabled("CopyAction", FALSE);
    shell_action_set_enabled("SaveGraphAction", FALSE);
    shell_action_set_active("SidePaneAction", TRUE);
................................................................................
}
static void shell_summary_create_header(ShellSummary *summary,
                                        gchar *title)
{
    GtkWidget *header, *label;
    gchar *temp;
    
    temp = g_strdup_printf(_("<b>%s \342\206\222 Summary</b>"), title);
    
    header = gtk_menu_item_new_with_label(temp);
    gtk_menu_item_select(GTK_MENU_ITEM(header));
    gtk_widget_show(header);
    
    label = gtk_bin_get_child(GTK_BIN(header));
    gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
................................................................................

    /* Get the current selection and shows its related info */
    gtk_tree_model_get(model, &iter, TREE_COL_MODULE_ENTRY, &entry, -1);
    if (entry && !entry->selected) {
	gchar *title;

	shell_status_set_enabled(TRUE);
	shell_status_update(_("Updating..."));

	entry->selected = TRUE;
	shell->selected = entry;
	module_selected_show_info(entry, FALSE);
	
	info_selected_show_extra(NULL);	/* clears the more info store */
	gtk_tree_view_columns_autosize(GTK_TREE_VIEW(shell->info->view));
................................................................................
                                   shell->selected_module->name,
                                   entry->name);
            shell_action_set_label("ContextHelpAction", temp);
            
            g_free(temp);
        } else {
            shell_action_set_enabled("ContextHelpAction", FALSE);
            shell_action_set_label("ContextHelpAction", _("Context help"));
        }

	shell_action_set_enabled("RefreshAction", TRUE);
	shell_action_set_enabled("CopyAction", TRUE);

	shell_status_update(_("Done."));
	shell_status_set_enabled(FALSE);
    } else {
	shell_set_title(shell, NULL);
	shell_action_set_enabled("RefreshAction", FALSE);
	shell_action_set_enabled("CopyAction", FALSE);

	gtk_tree_store_clear(GTK_TREE_STORE(shell->info->model));
	set_view_type(SHELL_VIEW_NORMAL, FALSE);

        shell_action_set_enabled("ContextHelpAction", FALSE);
        shell_action_set_label("ContextHelpAction", _("Context help"));
        
        if (shell->selected_module->summaryfunc) {
           shell_show_summary();
        }
    }

    current = entry;

Changes to shell/syncmanager.c.

62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
...
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
...
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
...
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
...
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
...
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
...
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
...
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
...
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
...
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
static SoupSession *session = NULL;
static GMainLoop *loop;
static GQuark err_quark;

#define XMLRPC_SERVER_URI   		"http://hardinfo.berlios.de/xmlrpc/"
#define XMLRPC_SERVER_API_VERSION	1

#define LABEL_SYNC_DEFAULT  "<big><b>Synchronize with Central Database</b></big>\n" \
                            "The following information may be synchronized " \
                            "with the HardInfo central database."
#define LABEL_SYNC_SYNCING  "<big><b>Synchronizing</b></big>\n" \
                            "This may take some time."

static SyncDialog *sync_dialog_new(GtkWidget *parent);
static void sync_dialog_destroy(SyncDialog * sd);
static void sync_dialog_start_sync(SyncDialog * sd);

static SyncNetArea *sync_dialog_netarea_new(void);
static void sync_dialog_netarea_destroy(SyncNetArea * sna);
................................................................................
#endif				/* HAS_LIBSOUP */
}

void sync_manager_show(GtkWidget *parent)
{
#ifndef HAS_LIBSOUP
    g_warning
	("HardInfo was compiled without libsoup support. (Network Updater requires it.)");
#else				/* !HAS_LIBSOUP */
    SyncDialog *sd = sync_dialog_new(parent);

    err_quark = g_quark_from_static_string("syncmanager");

    if (gtk_dialog_run(GTK_DIALOG(sd->dialog)) == GTK_RESPONSE_ACCEPT) {
	shell_view_set_enabled(FALSE);
................................................................................
				       SyncNetAction * sna)
{
    gint int_value = -1;

    sna->error = NULL;

    if (!SOUP_STATUS_IS_SUCCESSFUL(msg->status_code)) {
	SNA_ERROR(1, "%s (error #%d)", msg->reason_phrase,
		  msg->status_code);
	goto bad;
    }

    if (!soup_xmlrpc_extract_method_response(msg->response_body->data,
					     msg->response_body->length,
					     NULL,
					     G_TYPE_INT, &int_value)) {
	SNA_ERROR(2, "Could not parse XML-RPC response");
    }

  bad:
    return int_value;
}

static gchar *_soup_get_xmlrpc_value_string(SoupMessage * msg,
................................................................................
					    SyncNetAction * sna)
{
    gchar *string = NULL;

    sna->error = NULL;

    if (!SOUP_STATUS_IS_SUCCESSFUL(msg->status_code)) {
	SNA_ERROR(1, "%s (error #%d)", msg->reason_phrase,
		  msg->status_code);
	goto bad;
    }

    if (!soup_xmlrpc_extract_method_response(msg->response_body->data,
					     msg->response_body->length,
					     NULL,
					     G_TYPE_STRING, &string)) {
	SNA_ERROR(2, "Could not parse XML-RPC response");
    }

  bad:
    return string;
}

static gboolean _soup_xmlrpc_call(gchar * method, SyncNetAction * sna,
................................................................................
						   SoupMessage * msg,
						   gpointer user_data)
{
    SyncNetAction *sna = (SyncNetAction *) user_data;
    gint version = _soup_get_xmlrpc_value_int(msg, sna);

    if (version != XMLRPC_SERVER_API_VERSION) {
	SNA_ERROR(5, "Server says it supports API version %d, but "
		  "this version of HardInfo only supports API "
		  "version %d.", version, XMLRPC_SERVER_API_VERSION);
    }

    g_main_quit(loop);
}

static gboolean _action_check_api_version(SyncDialog * sd,
					  gpointer user_data)
................................................................................

static SyncNetAction *sync_manager_get_selected_actions(gint * n)
{
    gint i;
    GSList *entry;
    SyncNetAction *actions;
    SyncNetAction
      action_check_api = { "Contacting HardInfo Central Database", _action_check_api_version },
      action_clean_up = { "Cleaning up", NULL};

    actions = g_new0(SyncNetAction, 2 + g_slist_length(entries));

    for (entry = entries, i = 1; entry; entry = entry->next) {
	SyncEntry *e = (SyncEntry *) entry->data;

	if (e->selected) {
................................................................................
	gtk_main_iteration();

    for (i = 0; i < n; i++) {
	gchar *markup;

	if (sd->flag_cancel) {
	    markup =
		g_strdup_printf("<s>%s</s> <i>(canceled)</i>",
				sna[i].name);
	    gtk_label_set_markup(GTK_LABEL(labels[i]), markup);
	    g_free(markup);

	    gtk_label_set_markup(GTK_LABEL(status_labels[i]), error_str);
	    break;
	}
................................................................................
	gtk_label_set_markup(GTK_LABEL(labels[i]), markup);
	g_free(markup);

        gtk_label_set_markup(GTK_LABEL(status_labels[i]), curr_str);

	if (sna[i].do_action && !sna[i].do_action(sd, &sna[i])) {
	    markup =
		g_strdup_printf("<b><s>%s</s></b> <i>(failed)</i>",
				sna[i].name);
	    gtk_label_set_markup(GTK_LABEL(labels[i]), markup);
	    g_free(markup);

	    sd->flag_cancel = TRUE;

	    gtk_label_set_markup(GTK_LABEL(status_labels[i]), error_str);
	    if (sna[i].error) {
		if (sna[i].error->code != 1) {
		    /* the user has not cancelled something... */
		    g_warning
			("Failed while performing \"%s\". Please file a bug report "
			 "if this problem persists. (Use the Help\342\206\222Report"
			 " bug option.)\n\nDetails: %s", sna[i].name,
			 sna[i].error->message);
		}

		g_error_free(sna[i].error);
	    } else {
		g_warning
		    ("Failed while performing \"%s\". Please file a bug report "
		     "if this problem persists. (Use the Help\342\206\222Report"
		     " bug option.)", sna[i].name);
	    }
	    break;
	}

        gtk_label_set_markup(GTK_LABEL(status_labels[i]), done_str);
	gtk_label_set_markup(GTK_LABEL(labels[i]), sna[i].name);
    }
................................................................................
    GtkCellRenderer *cr_text, *cr_toggle;

    sd = g_new0(SyncDialog, 1);
    sd->sna = sync_dialog_netarea_new();

    dialog = gtk_dialog_new();
    gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(parent));
    gtk_window_set_title(GTK_WINDOW(dialog), "Network Updater");
    gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE);
    gtk_window_set_icon(GTK_WINDOW(dialog),
			icon_cache_get_pixbuf("syncmanager.png"));
    gtk_window_set_default_size(GTK_WINDOW(dialog), 420, 260);
    gtk_window_set_position(GTK_WINDOW(dialog),
			    GTK_WIN_POS_CENTER_ON_PARENT);
    gtk_window_set_type_hint(GTK_WINDOW(dialog),
................................................................................

    button8 = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
    gtk_widget_show(button8);
    gtk_dialog_add_action_widget(GTK_DIALOG(dialog), button8,
				 GTK_RESPONSE_CANCEL);
    GTK_WIDGET_SET_FLAGS(button8, GTK_CAN_DEFAULT);

    button7 = gtk_button_new_with_mnemonic("_Synchronize");
    gtk_widget_show(button7);
    gtk_dialog_add_action_widget(GTK_DIALOG(dialog), button7,
				 GTK_RESPONSE_ACCEPT);
    GTK_WIDGET_SET_FLAGS(button7, GTK_CAN_DEFAULT);

    button6 = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
    g_signal_connect(G_OBJECT(button6), "clicked",







|

|
|
|







 







|







 







|








|







 







|








|







 







|

|







 







|
|







 







|







 







|











|

|






|

|







 







|







 







|







62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
...
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
...
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
...
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
...
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
...
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
...
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
...
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
...
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
...
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
static SoupSession *session = NULL;
static GMainLoop *loop;
static GQuark err_quark;

#define XMLRPC_SERVER_URI   		"http://hardinfo.berlios.de/xmlrpc/"
#define XMLRPC_SERVER_API_VERSION	1

#define LABEL_SYNC_DEFAULT  _("<big><b>Synchronize with Central Database</b></big>\n" \
                            "The following information may be synchronized " \
                            "with the HardInfo central database.")
#define LABEL_SYNC_SYNCING  _("<big><b>Synchronizing</b></big>\n" \
                            "This may take some time.")

static SyncDialog *sync_dialog_new(GtkWidget *parent);
static void sync_dialog_destroy(SyncDialog * sd);
static void sync_dialog_start_sync(SyncDialog * sd);

static SyncNetArea *sync_dialog_netarea_new(void);
static void sync_dialog_netarea_destroy(SyncNetArea * sna);
................................................................................
#endif				/* HAS_LIBSOUP */
}

void sync_manager_show(GtkWidget *parent)
{
#ifndef HAS_LIBSOUP
    g_warning
	(_("HardInfo was compiled without libsoup support. (Network Updater requires it.)"));
#else				/* !HAS_LIBSOUP */
    SyncDialog *sd = sync_dialog_new(parent);

    err_quark = g_quark_from_static_string("syncmanager");

    if (gtk_dialog_run(GTK_DIALOG(sd->dialog)) == GTK_RESPONSE_ACCEPT) {
	shell_view_set_enabled(FALSE);
................................................................................
				       SyncNetAction * sna)
{
    gint int_value = -1;

    sna->error = NULL;

    if (!SOUP_STATUS_IS_SUCCESSFUL(msg->status_code)) {
	SNA_ERROR(1, _("%s (error #%d)"), msg->reason_phrase,
		  msg->status_code);
	goto bad;
    }

    if (!soup_xmlrpc_extract_method_response(msg->response_body->data,
					     msg->response_body->length,
					     NULL,
					     G_TYPE_INT, &int_value)) {
	SNA_ERROR(2, _("Could not parse XML-RPC response"));
    }

  bad:
    return int_value;
}

static gchar *_soup_get_xmlrpc_value_string(SoupMessage * msg,
................................................................................
					    SyncNetAction * sna)
{
    gchar *string = NULL;

    sna->error = NULL;

    if (!SOUP_STATUS_IS_SUCCESSFUL(msg->status_code)) {
	SNA_ERROR(1, _("%s (error #%d)"), msg->reason_phrase,
		  msg->status_code);
	goto bad;
    }

    if (!soup_xmlrpc_extract_method_response(msg->response_body->data,
					     msg->response_body->length,
					     NULL,
					     G_TYPE_STRING, &string)) {
	SNA_ERROR(2, _("Could not parse XML-RPC response"));
    }

  bad:
    return string;
}

static gboolean _soup_xmlrpc_call(gchar * method, SyncNetAction * sna,
................................................................................
						   SoupMessage * msg,
						   gpointer user_data)
{
    SyncNetAction *sna = (SyncNetAction *) user_data;
    gint version = _soup_get_xmlrpc_value_int(msg, sna);

    if (version != XMLRPC_SERVER_API_VERSION) {
	SNA_ERROR(5, _("Server says it supports API version %d, but "
		  "this version of HardInfo only supports API "
		  "version %d."), version, XMLRPC_SERVER_API_VERSION);
    }

    g_main_quit(loop);
}

static gboolean _action_check_api_version(SyncDialog * sd,
					  gpointer user_data)
................................................................................

static SyncNetAction *sync_manager_get_selected_actions(gint * n)
{
    gint i;
    GSList *entry;
    SyncNetAction *actions;
    SyncNetAction
      action_check_api = { _("Contacting HardInfo Central Database"), _action_check_api_version },
      action_clean_up = { _("Cleaning up"), NULL};

    actions = g_new0(SyncNetAction, 2 + g_slist_length(entries));

    for (entry = entries, i = 1; entry; entry = entry->next) {
	SyncEntry *e = (SyncEntry *) entry->data;

	if (e->selected) {
................................................................................
	gtk_main_iteration();

    for (i = 0; i < n; i++) {
	gchar *markup;

	if (sd->flag_cancel) {
	    markup =
		g_strdup_printf(_("<s>%s</s> <i>(canceled)</i>"),
				sna[i].name);
	    gtk_label_set_markup(GTK_LABEL(labels[i]), markup);
	    g_free(markup);

	    gtk_label_set_markup(GTK_LABEL(status_labels[i]), error_str);
	    break;
	}
................................................................................
	gtk_label_set_markup(GTK_LABEL(labels[i]), markup);
	g_free(markup);

        gtk_label_set_markup(GTK_LABEL(status_labels[i]), curr_str);

	if (sna[i].do_action && !sna[i].do_action(sd, &sna[i])) {
	    markup =
		g_strdup_printf(_("<b><s>%s</s></b> <i>(failed)</i>"),
				sna[i].name);
	    gtk_label_set_markup(GTK_LABEL(labels[i]), markup);
	    g_free(markup);

	    sd->flag_cancel = TRUE;

	    gtk_label_set_markup(GTK_LABEL(status_labels[i]), error_str);
	    if (sna[i].error) {
		if (sna[i].error->code != 1) {
		    /* the user has not cancelled something... */
		    g_warning
			(_("Failed while performing \"%s\". Please file a bug report "
			 "if this problem persists. (Use the Help\342\206\222Report"
			 " bug option.)\n\nDetails: %s"), sna[i].name,
			 sna[i].error->message);
		}

		g_error_free(sna[i].error);
	    } else {
		g_warning
		    (_("Failed while performing \"%s\". Please file a bug report "
		     "if this problem persists. (Use the Help\342\206\222Report"
		     " bug option.)"), sna[i].name);
	    }
	    break;
	}

        gtk_label_set_markup(GTK_LABEL(status_labels[i]), done_str);
	gtk_label_set_markup(GTK_LABEL(labels[i]), sna[i].name);
    }
................................................................................
    GtkCellRenderer *cr_text, *cr_toggle;

    sd = g_new0(SyncDialog, 1);
    sd->sna = sync_dialog_netarea_new();

    dialog = gtk_dialog_new();
    gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(parent));
    gtk_window_set_title(GTK_WINDOW(dialog), _("Network Updater"));
    gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE);
    gtk_window_set_icon(GTK_WINDOW(dialog),
			icon_cache_get_pixbuf("syncmanager.png"));
    gtk_window_set_default_size(GTK_WINDOW(dialog), 420, 260);
    gtk_window_set_position(GTK_WINDOW(dialog),
			    GTK_WIN_POS_CENTER_ON_PARENT);
    gtk_window_set_type_hint(GTK_WINDOW(dialog),
................................................................................

    button8 = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
    gtk_widget_show(button8);
    gtk_dialog_add_action_widget(GTK_DIALOG(dialog), button8,
				 GTK_RESPONSE_CANCEL);
    GTK_WIDGET_SET_FLAGS(button8, GTK_CAN_DEFAULT);

    button7 = gtk_button_new_with_mnemonic(_("_Synchronize"));
    gtk_widget_show(button7);
    gtk_dialog_add_action_widget(GTK_DIALOG(dialog), button7,
				 GTK_RESPONSE_ACCEPT);
    GTK_WIDGET_SET_FLAGS(button7, GTK_CAN_DEFAULT);

    button6 = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
    g_signal_connect(G_OBJECT(button6), "clicked",