12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
* GNU General Public License for more details. |
* GNU General Public License for more details. |
|
* |
|
|
* You should have received a copy of the GNU General Public License |
|
|
* along with WinPT; if not, write to the Free Software Foundation, |
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
15 |
*/ |
*/ |
|
|
|
16 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
17 |
#include <config.h> |
#include <config.h> |
18 |
#endif |
#endif |
208 |
return TRUE; |
return TRUE; |
209 |
} |
} |
210 |
else { |
else { |
211 |
const char *s = _("%s contain(s) %d key(s)."); |
const char *fmt = _("%s contain(s) %d key(s)."); |
212 |
char *p = new char[strlen (s) + 32]; |
const char *name = c->import.is_clip? _("Clipboard") : _("File"); |
213 |
|
char *p = new char[strlen (fmt) + strlen (name) + 32 + 1]; |
214 |
if (!p) |
if (!p) |
215 |
BUG (NULL); |
BUG (NULL); |
216 |
sprintf (p, s, c->import.is_clip? _("Clipboard") : _("File"), |
sprintf (p, fmt, name, listview_count_items (lv, 0)); |
|
listview_count_items (lv, 0)); |
|
217 |
SetDlgItemText (dlg, IDC_IMPORT_INFO, p); |
SetDlgItemText (dlg, IDC_IMPORT_INFO, p); |
218 |
free_if_alloc (p); |
free_if_alloc (p); |
219 |
} |
} |