1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 06:37:17 +00:00

Pushed LANGNAMES (and their localizations) from dupeGuru to qtlib.

This commit is contained in:
Virgil Dupras
2012-01-03 17:03:53 -05:00
parent 5b0d9f311c
commit c4f95a4901
12 changed files with 278 additions and 588 deletions

View File

@@ -6,8 +6,6 @@
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
from collections import OrderedDict
from PyQt4.QtCore import SIGNAL, Qt, QSize
from PyQt4.QtGui import (QDialog, QDialogButtonBox, QVBoxLayout, QHBoxLayout, QLabel, QComboBox,
QSlider, QSizePolicy, QSpacerItem, QCheckBox, QLineEdit, QMessageBox, QSpinBox)
@@ -15,20 +13,11 @@ from PyQt4.QtGui import (QDialog, QDialogButtonBox, QVBoxLayout, QHBoxLayout, QL
from hscommon.plat import ISOSX, ISLINUX
from hscommon.trans import trget
from qtlib.util import horizontalWrap
from qtlib.preferences import LANGNAMES
tr = trget('ui')
LANGNAMES = OrderedDict([
('en', tr("English")),
('fr', tr("French")),
('de', tr("German")),
('zh_CN', tr("Chinese (Simplified)")),
('cs', tr("Czech")),
('it', tr("Italian")),
('hy', tr("Armenian")),
('ru', tr("Russian")),
])
SUPPORTED_LANGUAGES = list(LANGNAMES.keys())
SUPPORTED_LANGUAGES = ['en', 'fr', 'de', 'zh_CN', 'cs', 'it', 'hy', 'ru']
class PreferencesDialogBase(QDialog):
def __init__(self, parent, app):