~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/plugins/short-words/configuration.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2007-08-11 17:41:51 UTC
  • mfrom: (0.1.1 upstream) (4.1.2 feisty)
  • Revision ID: james.westby@ubuntu.com-20070811174151-tmkgjvjuc0mtk8ul
Tags: 1.3.4.dfsg+svn20071115-1
* Upstream svn update (Closes: #447480, #448949).
* debian/NEWS: Added a note for users wanting stable Scribus to switch to
  the "scribus" package (Closes: #427638).
* debian/watch: Updated the watch regex to properly track sourceforge
  releases for this branch (Closes: #449700).

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "scpaths.h"
25
25
#include "version.h"
26
26
 
27
 
#include "scribus.h"
 
27
#include "langmgr.h"
28
28
#include "prefsmanager.h"
29
29
#include "prefscontext.h"
30
30
#include "prefsfile.h"
31
31
#include <qdir.h>
32
32
#include <qstringlist.h>
33
33
 
34
 
extern ScribusMainWindow SCRIBUS_API *ScMW;
35
34
 
36
35
SWConfig::SWConfig()
37
36
{
147
146
{
148
147
        QMap<QString,QString>::Iterator it;
149
148
        QString lang;
150
 
 
151
 
        for (it = ScMW->Sprachen.begin(); it != ScMW->Sprachen.end(); ++it)
152
 
        {
153
 
                lang = getLangCodeFromHyph(it.data());
154
 
                if (lang == code)
155
 
                        return it.key();
156
 
        }
157
 
        return code;
 
149
        LanguageManager langmgr;
 
150
        langmgr.init(false);
 
151
        return langmgr.getLangFromAbbrev(code, true);
158
152
}