Commit Graph

39 Commits

Author SHA1 Message Date
wmayer
81d2361d9f Gui: Qt6 port
* QString::indexOf() is now marked as [[nodiscard]]
* Replace deprecated methods of QMessageBox
* QMouseEvent::globalPos() is deprecated, use globalPosition().toPoint()
* QWidget::enterEvent() requires a QEnterEvent as argument
* QLibraryInfo::location() is deprecated, use path()
* QVariant::Type is deprecated, use QMetaType::Type
* QVariant::canConvert(int) is deprecated, use QVariant::canConvert(QMetaType) or QVariant::canConvert<T>()
* QMessageBox::standardIcon is deprecated, use QStyle::standardIcon()
* Replace deprecated method QMessageBox::question(), ...
* QApplication::fontMetrics() is deprecated
* QDropEvent::mouseButtons() is deprecated, use buttons()
* QDropEvent::keyboardModifiers() is deprecated, use modifiers()
* Constructor of QFontDatabase is deprecated, use static methods instead
* Qt::AA_DisableHighDpiScaling is deprecated
* Qt::AA_EnableHighDpiScaling is deprecated
* Qt::AA_UseHighDpiPixmaps is deprecated
2022-12-31 21:54:45 +01:00
Yorik van Havre
b5c5d0af95 Merged crowdin translations 2022-12-20 10:01:00 +01:00
wmayer
50ee7afe4d Qt6 port: QLocale::decimalPoint() now returns a QString 2022-11-03 14:19:43 +01:00
wmayer
b1343cc13c Gui: fix some minor warnings reported by GH Actions 2022-11-03 13:58:07 +01:00
0penBrain
27bea474cc Gui: decimal point converter: numpad separator always send Period to Python Console & Macro Editor 2022-11-03 13:41:06 +01:00
0penBrain
9ade306af4 Gui: improve decimal point converter algorithm
Fix a bug in key code for forged key event
 Only process spontaneous events
2022-11-03 13:41:06 +01:00
0penBrain
3bea52c4c4 Gui: modernize management of decimal converter event filter
Use unique_ptr with custom deleter to be more defensive
2022-11-03 13:41:06 +01:00
0penBrain
3eadba2b21 Gui: add decimal point converter to Translator 2022-11-03 13:41:06 +01:00
Yorik van Havre
8b7c61277a Merged crowdin translations 2022-10-06 12:48:05 +02:00
berniev
75acacd1b7 Gui: Use auto and range-based for (#7481)
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto. 
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
berniev
656ef8961f Gui: redundant void 2 2022-08-08 10:21:44 +02:00
wmayer
6ee2c7f865 Fix several clazy issues:
* C++11 range-loop might detach Qt container [-Wclazy-range-loop-detach]
2022-07-24 23:48:37 +02:00
wmayer
d5921e08ec fix (Qt) issues found by clang's clazy tool:
+ -Wclazy-incorrect-emit
+ -Wclazy-strict-iterators
+ -Wclazy-overloaded-signal
+ -Wclazy-qstring-arg
+ -Wclazy-unused-non-trivial-variable
+ -Wclazy-container-anti-pattern
+ -Wclazy-range-loop-reference
+ -Wclazy-const-signal-or-slot
+ -Wclazy-detaching-temporary
+ -Wclazy-qfileinfo-exists
2022-06-29 21:00:54 +02:00
0penBrain
c22d37a82c Gui: Default Translator::SetLocale to OS locale + simplify code 2022-03-29 10:26:49 +02:00
0penBrain
68d7892fb0 Gui: fix locale number formatting propagation 2022-03-29 10:26:49 +02:00
wmayer
bba7719cd1 Gui: fixes #6663: [Bug] Decimal separator not chosen by locale system settings anymore 2022-03-28 15:38:51 +02:00
0penBrain
9e7d9283aa Gui: fix some weird behavior of number format option 2022-03-26 16:43:07 +01:00
wmayer
96adb98f46 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +01:00
0penBrain
e3bc06a341 Gui: add preference to use selected language number formatting, fixes #6330
If not enabled (default), will defaults to C/POSIX formatting
2022-03-17 16:46:01 +01:00
Uwe
70aa0842a5 [Gui] Translator: sort includes 2022-03-06 19:12:52 +01:00
Yorik van Havre
b3e2c87530 Merged crowdin translations 2022-01-26 14:15:14 +01:00
Chris Hennes
719fb95382 [GUI] Add prefs for translators
When creating the original list of locales available to FreeCAD, also
scan the external directories and add those entries to the list of
locales. This enables the installation of a language pack in an
already-installed version of FreeCAD, allowing translators to test their
work more easily.

Add a hidden preference that will allow translators to add an entirely new
language to FreeCAD via user preferences, without requiring modification
of the FreeCAD source code.

Add a hidden preference for an additional translation directory.
2021-09-11 15:34:08 -05:00
luz paz
a12385adb9 Gui: Language/Translator.cpp remove extra .ko translation + alphabetize
ref: https://forum.freecadweb.org/viewtopic.php?p=531658#p531658
2021-09-09 10:08:31 -04:00
Yorik van Havre
89e1a97d80 Merged crowdin translations 2021-09-07 11:26:48 +02:00
Yorik van Havre
2226da3a20 Added support for arabic and vietnamese 2018-12-23 13:56:46 -02:00
wmayer
7c4ab45e31 cache supported languages in order to make preferences dialog open faster 2018-10-23 12:44:43 +02:00
Yorik van Havre
b9e1cbb6de Added support for lithuanian, valencian, indonesian and filipino 2018-02-21 13:19:42 -03:00
Yorik van Havre
6b66a38ee3 Updated translations with latest files from crowdin 2017-03-06 11:53:09 -03:00
Yorik van Havre
2e2192f88a Added slovenian language 2016-02-03 13:36:51 -02:00
Mateusz Skowroński
cd2db00f22 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
wmayer
49dfb24267 + Fix suffix for Korean 2015-09-02 18:06:14 +02:00
wmayer
7602b8f20c + make help system more flexible 2014-10-21 21:41:07 +02:00
wmayer
75f7ebc346 + add default directories to check for translation files 2014-02-05 14:54:14 +01:00
Yorik van Havre
f4a47f089c Updated with latest crowdin translations 2012-12-18 13:28:11 -02:00
Yorik van Havre
be940cbd06 Updated translations from crowdin
* Updated the updateTranslations.py tool so it can now work with
  unzipped folders, and it updates qt resource files when necessary.
* Updated existing translations, changed a couple of language codes:
  es -> es-ES, pt -> pt-BR, zh -> zh-CN, se -> sv-SE
* Added new translations that have more than 50% translated:
  cs, hu, ro, sk, zh-TW, tr
2012-10-30 09:59:55 -02:00
wmayer
da1a42e2ee locale stuff 2012-04-30 18:30:29 +02:00
wmayer
95cf62b990 locale stuff 2012-04-30 18:02:22 +02:00
wmayer
2e062ab797 0000652: Polish language not available even if translation is available in source 2012-03-25 13:38:32 +02:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00