~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/arch/win32/uifliplist.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2006-07-30 19:15:59 UTC
  • mto: (9.1.1 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20060730191559-g31ymd2mk102kzff
Tags: upstream-1.19
ImportĀ upstreamĀ versionĀ 1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include "lib.h"
36
36
#include "res.h"
37
37
#include "system.h"
 
38
#include "translate.h"
38
39
#include "ui.h"
39
40
#include "uilib.h"
40
41
#include "util.h"
44
45
{
45
46
    TCHAR *st_name;
46
47
 
47
 
    if ((st_name = uilib_select_file(hwnd, TEXT("Load flip list file"),
 
48
    if ((st_name = uilib_select_file(hwnd, translate_text(IDS_LOAD_FLIP_LIST_FILE),
48
49
        UILIB_FILTER_FLIPLIST, UILIB_SELECTOR_TYPE_FILE_LOAD,
49
50
        UILIB_SELECTOR_STYLE_DEFAULT)) != NULL) {
50
51
        char *name;
51
52
 
52
53
        name = system_wcstombs_alloc(st_name);
53
54
        if (fliplist_load_list((unsigned int)-1, name, 0) != 0)
54
 
            ui_error("Cannot read flip list file");
 
55
            ui_error(translate_text(IDS_CANNOT_READ_FLIP_LIST));
55
56
        system_wcstombs_free(name);
56
57
        lib_free(st_name);
57
58
    }
61
62
{
62
63
    TCHAR *st_name;
63
64
 
64
 
    if ((st_name = uilib_select_file(hwnd, TEXT("Save flip list file"),
 
65
    if ((st_name = uilib_select_file(hwnd, translate_text(IDS_SAVE_FLIP_LIST_FILE),
65
66
        UILIB_FILTER_FLIPLIST, UILIB_SELECTOR_TYPE_FILE_SAVE,
66
67
        UILIB_SELECTOR_STYLE_DEFAULT)) != NULL) {
67
68
        char *name;
71
72
        util_add_extension(&name, "vfl");
72
73
 
73
74
        if (fliplist_save_list((unsigned int)-1, name) != 0)
74
 
            ui_error("Cannot write flip list file");
 
75
            ui_error(translate_text(IDS_CANNOT_WRITE_FLIP_LIST));
75
76
        system_wcstombs_free(name);
76
77
        lib_free(st_name);
77
78
    }