VirtualBox

Ignore:
Timestamp:
Apr 11, 2007 7:25:07 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20314
Message:

1908: UI for language selection:
Feature implemented with minor changes in design.

Base Feature description:

  1. Default system language is loading during VBox starting.
  2. After that, predefined user language (pointed in VBox configuration file, GUI/LanguageID key) is loading during VBox initializing.
  3. User can switch one language to another from the Global Settings interface language list. Language change applying just after the Global Settings dialog will be closed.
  4. If the configuration file has the local language predefined (en_US) and this language is not presented in necessary *.qm file then the global language similar to local will be applied (en), but the settings for local language will be left in the configuration file. Configuration file will be rewritten with this new global language selected only if the user changes language in the selection list himself.
  5. If naiver local language pointed in configuration file nor global language similar to local could be found then the user will be proposed with this fact and asked for changing language to built-in.
Location:
trunk/src/VBox/Frontends/VirtualBox/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r1922 r2022  
    375375    bool openURL (const QString &aURL);
    376376
     377    static const QString& languageID();
     378    static void loadLanguage (const QString &aLangId = QString::null);
     379    static bool loadLanguageFile (const QString &);
     380
    377381    QString languageName() const;
    378382    QString languageCountry() const;
     
    506510
    507511    QString verString;
     512
     513    static QString mLoadedLangId;
    508514
    509515    QValueVector <CGuestOSType> vm_os_types;
  • trunk/src/VBox/Frontends/VirtualBox/include/VMGlobalSettings.h

    r1557 r2022  
    4444    bool autoCapture;
    4545    QString guiFeatures;
     46    QString languageId;
    4647
    4748    friend class VMGlobalSettings;
     
    5657    Q_PROPERTY (bool autoCapture READ autoCapture WRITE setAutoCapture)
    5758    Q_PROPERTY (QString guiFeatures READ guiFeatures WRITE setGuiFeatures)
     59    Q_PROPERTY (QString languageId READ languageId WRITE setLanguageId)
    5860
    5961public:
     
    8587    }
    8688    bool isFeatureActive (const char*) const;
     89
     90    QString languageId() const { return data()->languageId; }
     91    void setLanguageId (const QString &aLanguageId)
     92    {
     93        mData()->languageId = aLanguageId;
     94    }
    8795
    8896    //
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette