~ubuntu-branches/ubuntu/maverick/poedit/maverick

« back to all changes in this revision

Viewing changes to src/edapp.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-09-16 19:47:00 UTC
  • mfrom: (0.2.9 upstream) (1.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20080916194700-ueyef0pgklk3u50k
Tags: 1.4.2-2
Adding debug package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  This file is part of Poedit (http://www.poedit.net)
3
3
 *
4
 
 *  Copyright (C) 1999-2007 Vaclav Slavik
 
4
 *  Copyright (C) 1999-2008 Vaclav Slavik
5
5
 *
6
6
 *  Permission is hereby granted, free of charge, to any person obtaining a
7
7
 *  copy of this software and associated documentation files (the "Software"),
21
21
 *  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
22
 *  DEALINGS IN THE SOFTWARE.
23
23
 *
24
 
 *  $Id: edapp.cpp 1253 2007-12-11 11:19:00Z vaclavslavik $
 
24
 *  $Id: edapp.cpp 1449 2008-08-11 21:08:43Z vaclavslavik $
25
25
 *
26
26
 *  Application class
27
27
 *
81
81
 
82
82
wxString PoeditApp::GetAppVersion() const
83
83
{
84
 
    wxString version(_T("1.3.9"));
 
84
    wxString version(_T("1.4.2"));
85
85
    return version;
86
86
}
87
87
 
97
97
    if (!wxApp::OnInit())
98
98
        return false;
99
99
 
100
 
#ifdef __WXMAC__
 
100
#if defined(__WXMAC__) && wxCHECK_VERSION(2,8,5)
101
101
    wxSystemOptions::SetOption(wxMAC_TEXTCONTROL_USE_SPELL_CHECKER, 1);
102
102
#endif
103
103
 
 
104
#ifdef __WXMAC__
 
105
    // so that help menu is correctly merged with system-provided menu
 
106
    // (see http://sourceforge.net/tracker/index.php?func=detail&aid=1600747&group_id=9863&atid=309863)
 
107
    s_macHelpMenuTitleName = _("&Help");
 
108
 
 
109
    SetExitOnFrameDelete(false);
 
110
#endif
 
111
 
104
112
#if defined(__UNIX__) && !defined(__WXMAC__)
105
113
    wxString home = wxGetHomeDir() + _T("/");
106
114
 
148
156
 
149
157
    SetDefaultCfg(wxConfig::Get());
150
158
 
151
 
#ifdef HAS_INSERT_PROVIDER
152
159
    wxArtProvider::Insert(new PoeditArtProvider);
153
 
#else
154
 
    wxArtProvider::PushProvider(new PoeditArtProvider);
155
 
#endif
156
160
 
157
161
#ifdef __WXMAC__
158
162
    wxLocale::AddCatalogLookupPathPrefix(
162
166
#endif
163
167
 
164
168
    m_locale.Init(GetUILanguage());
165
 
    
 
169
 
166
170
    m_locale.AddCatalog(_T("poedit"));
167
171
 
168
172
    if (wxConfig::Get()->Read(_T("translator_name"), _T("nothing")) == _T("nothing"))
169
173
    {
170
 
        wxMessageBox(_("This is first time you run Poedit.\nPlease fill in your name and e-mail address.\n(This information is used only in catalogs headers)"), _("Setup"),
 
174
        wxMessageBox(_("This is first time you run Poedit.\nPlease fill in your name and email address.\n(This information is used only in catalogs headers)"), _("Setup"),
171
175
                       wxOK | wxICON_INFORMATION);
172
176
 
173
177
        PreferencesDialog dlg;
264
268
    {
265
269
        Parser p;
266
270
        p.Name = _T("Delphi (dxgettext)");
267
 
        p.Extensions = _T("*.pas;*.inc;*.dpr;*.xfm;*.dfm");
 
271
        p.Extensions = _T("*.pas;*.dpr;*.xfm;*.dfm");
268
272
        p.Command = _T("dxgettext --so %o %F");
269
273
        p.KeywordItem = wxEmptyString;
270
274
        p.FileItem = _T("%f");