VirtualBox

Changeset 1767 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 28, 2007 12:52:38 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19937
Message:

FE/Qt: Added several translation items and VBoxGlobal::language*() methods for easy identification of the translation file.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
5 edited

Legend:

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

    r1469 r1767  
    171171#endif
    172172
    173     // VBox enum to/from string/icon/color convertors
     173    /* VBox enum to/from string/icon/color convertors */
    174174
    175175    QStringList vmGuestOSTypeDescriptions() const;
     
    361361    bool openURL (const QString &aURL);
    362362
     363    QString languageID() const;
     364    QString languageName() const;
     365    QString languageCountry() const;
     366    QString languageNameEnglish() const;
     367    QString languageCountryEnglish() const;
     368    QString languageTranslators() const;
     369
    363370    void languageChange();
    364371
    365     /* made public for internal purposes */
     372    /** @internal made public for internal purposes */
    366373    void cleanup();
    367374
  • trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_de.ts

    r1743 r1767  
    11<!DOCTYPE TS><TS>
     2<context>
     3    <name>@@@</name>
     4    <message>
     5        <source>English</source>
     6        <comment>Native language name</comment>
     7        <translation>Deutsch</translation>
     8    </message>
     9    <message>
     10        <source>built-in</source>
     11        <comment>Native language country name (empty if this language is for all countries)</comment>
     12        <translation></translation>
     13    </message>
     14    <message>
     15        <source>English</source>
     16        <comment>Language name, in English</comment>
     17        <translation>German</translation>
     18    </message>
     19    <message>
     20        <source>built-in</source>
     21        <comment>Language country name, in English (empty if native country name is empty)</comment>
     22        <translation></translation>
     23    </message>
     24    <message>
     25        <source>InnoTek</source>
     26        <comment>Comma-separated list of translators</comment>
     27        <translation></translation>
     28    </message>
     29</context>
    230<context>
    331    <name>BootItemsList</name>
     
    13081336        <comment>USBDeviceState</comment>
    13091337        <translation>gefangen</translation>
     1338    </message>
     1339    <message>
     1340        <source>&lt;i&gt;Checking...&lt;/i&gt;</source>
     1341        <comment>hard disk</comment>
     1342        <translation type="unfinished"></translation>
     1343    </message>
     1344    <message>
     1345        <source>&lt;i&gt;Inaccessible&lt;/i&gt;</source>
     1346        <comment>hard disk</comment>
     1347        <translation type="unfinished"></translation>
    13101348    </message>
    13111349</context>
  • trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_ru.ts

    r1718 r1767  
    11<!DOCTYPE TS><TS>
     2<context>
     3    <name>@@@</name>
     4    <message>
     5        <source>English</source>
     6        <comment>Native language name</comment>
     7        <translation>Русский</translation>
     8    </message>
     9    <message>
     10        <source>built-in</source>
     11        <comment>Native language country name (empty if this language is for all countries)</comment>
     12        <translation></translation>
     13    </message>
     14    <message>
     15        <source>English</source>
     16        <comment>Language name, in English</comment>
     17        <translation>Russian</translation>
     18    </message>
     19    <message>
     20        <source>built-in</source>
     21        <comment>Language country name, in English (empty if native country name is empty)</comment>
     22        <translation></translation>
     23    </message>
     24    <message>
     25        <source>InnoTek</source>
     26        <comment>Comma-separated list of translators</comment>
     27        <translation></translation>
     28    </message>
     29</context>
    230<context>
    331    <name>BootItemsList</name>
     
    13031331        <source>Captured</source>
    13041332        <comment>USBDeviceState</comment>
     1333        <translation type="unfinished"></translation>
     1334    </message>
     1335    <message>
     1336        <source>&lt;i&gt;Checking...&lt;/i&gt;</source>
     1337        <comment>hard disk</comment>
     1338        <translation type="unfinished"></translation>
     1339    </message>
     1340    <message>
     1341        <source>&lt;i&gt;Inaccessible&lt;/i&gt;</source>
     1342        <comment>hard disk</comment>
    13051343        <translation type="unfinished"></translation>
    13061344    </message>
  • trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_xx_YY.ts

    r1718 r1767  
    11<!DOCTYPE TS><TS>
     2<context>
     3    <name>@@@</name>
     4    <message>
     5        <source>English</source>
     6        <comment>Native language name</comment>
     7        <translation type="unfinished"></translation>
     8    </message>
     9    <message>
     10        <source>built-in</source>
     11        <comment>Native language country name (empty if this language is for all countries)</comment>
     12        <translation type="unfinished"></translation>
     13    </message>
     14    <message>
     15        <source>English</source>
     16        <comment>Language name, in English</comment>
     17        <translation type="unfinished"></translation>
     18    </message>
     19    <message>
     20        <source>built-in</source>
     21        <comment>Language country name, in English (empty if native country name is empty)</comment>
     22        <translation type="unfinished"></translation>
     23    </message>
     24    <message>
     25        <source>InnoTek</source>
     26        <comment>Comma-separated list of translators</comment>
     27        <translation type="unfinished"></translation>
     28    </message>
     29</context>
    230<context>
    331    <name>BootItemsList</name>
     
    13031331        <source>Captured</source>
    13041332        <comment>USBDeviceState</comment>
     1333        <translation type="unfinished"></translation>
     1334    </message>
     1335    <message>
     1336        <source>&lt;i&gt;Checking...&lt;/i&gt;</source>
     1337        <comment>hard disk</comment>
     1338        <translation type="unfinished"></translation>
     1339    </message>
     1340    <message>
     1341        <source>&lt;i&gt;Inaccessible&lt;/i&gt;</source>
     1342        <comment>hard disk</comment>
    13051343        <translation type="unfinished"></translation>
    13061344    </message>
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r1757 r1767  
    14661466}
    14671467
     1468/**
     1469 *  Shortcut to QLocale::system().name().
     1470 */
     1471QString VBoxGlobal::languageID() const
     1472{
     1473    return  QLocale::system().name();
     1474}
     1475
     1476/**
     1477 *  Native language name of the currently installed translation.
     1478 *  Returns "English [built-in]" if no translation is installed
     1479 *  or if the translation file is invalid.
     1480 */
     1481QString VBoxGlobal::languageName() const
     1482{
     1483
     1484    return qApp->translate ("@@@", "English",
     1485                            "Native language name");
     1486}
     1487
     1488/**
     1489 *  Native language country name of the currently installed translation.
     1490 *  Returns "" if no translation is installed or if the translation file is
     1491 *  invalid, or if the language is independent on the country.
     1492 */
     1493QString VBoxGlobal::languageCountry() const
     1494{
     1495    return qApp->translate ("@@@", "built-in",
     1496                            "Native language country name "
     1497                            "(empty if this language is for all countries)");
     1498}
     1499
     1500/**
     1501 *  Language name of the currently installed translation, in English.
     1502 *  Returns "English [built-in]" if no translation is installed
     1503 *  or if the translation file is invalid.
     1504 */
     1505QString VBoxGlobal::languageNameEnglish() const
     1506{
     1507
     1508    return qApp->translate ("@@@", "English",
     1509                            "Language name, in English");
     1510}
     1511
     1512/**
     1513 *  Language country name of the currently installed translation, in English.
     1514 *  Returns "" if no translation is installed or if the translation file is
     1515 *  invalid, or if the language is independent on the country.
     1516 */
     1517QString VBoxGlobal::languageCountryEnglish() const
     1518{
     1519    return qApp->translate ("@@@", "built-in",
     1520                            "Language country name, in English "
     1521                            "(empty if native country name is empty)");
     1522}
     1523
     1524/**
     1525 *  Comma-separated list of authors of the currently installed translation.
     1526 *  Returns "InnoTek" if no translation is installed or if the translation
     1527 *  file is invalid, or if the translation is supplied by InnoTek.
     1528 */
     1529QString VBoxGlobal::languageTranslators() const
     1530{
     1531    return qApp->translate ("@@@", "InnoTek",
     1532                            "Comma-separated list of translators");
     1533}
     1534
    14681535/**
    14691536 *  Changes the language of all global string constants according to the
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