Commit Graph

991 Commits

Author SHA1 Message Date
mattias
93ff0c9f46 lazutils: ignore fpc 3.1.1 inline warnigns
git-svn-id: trunk@58389 -
2018-06-23 16:02:27 +00:00
maxim
e1e104d7db Translations: Ukrainian translation update by Olexandr Pylypchuk, bug #33876
git-svn-id: trunk@58364 -
2018-06-20 21:58:09 +00:00
mattias
3575d8d0e1 make bigide: added cmdlinedebuggerbase and lazdebuggerlldb
git-svn-id: trunk@58363 -
2018-06-20 21:41:44 +00:00
juha
6ccdb67ff4 LazUtils: Cleanup.
git-svn-id: trunk@58259 -
2018-06-14 09:58:08 +00:00
juha
53ee66450d LazUtils: Move exception and stack trace stuff to new LazTracer. Move function ConvertLineEndings to LazUtilities.
git-svn-id: trunk@58255 -
2018-06-14 09:05:50 +00:00
maxim
c5cc1131d3 LazUtils, IDEIntf: regenerated translations and updated Russian translation
git-svn-id: trunk@58248 -
2018-06-13 22:30:47 +00:00
juha
3574bdfb6d Move debug- & other non-GUI stuff from LCLProc to LazUtilities and LazLogger in package LazUtils.
git-svn-id: trunk@58244 -
2018-06-13 13:59:07 +00:00
juha
962ded835b Remove LCL dependency from unit GraphType and move it to LazUtils package.
git-svn-id: trunk@58241 -
2018-06-13 08:33:10 +00:00
juha
ce916d287c LazUtils: Rename unit ModalResultDef to a Delphi compatible UITypes. Add Message dialog related stuff.
git-svn-id: trunk@58227 -
2018-06-11 10:51:11 +00:00
martin
64399c8ca0 LazLogger: fixed incorrect linked list.
git-svn-id: trunk@58219 -
2018-06-10 21:05:51 +00:00
martin
7a640261d4 LazLogger: prevent exceptions from being passed to the caller
git-svn-id: trunk@58210 -
2018-06-09 16:31:10 +00:00
juha
5f57884ed1 LCL,LazUtils: Move ModalResult and the mr... consts to a new unit in LazUtils. They are used in non-GUI programs, too.
git-svn-id: trunk@58205 -
2018-06-09 14:39:49 +00:00
juha
f440f660a2 Refactor: move CompareMethods to LazMethodList. Keep alias in LCLProc.
git-svn-id: trunk@58204 -
2018-06-09 14:39:36 +00:00
juha
672ece7241 Refactor: Move variable ConsoleVerbosity from MacroIntf to LazUtilities. Rename MergeSort to avoid name clash and confusion.
git-svn-id: trunk@58203 -
2018-06-09 14:39:21 +00:00
martin
b1cde147c4 LazLogger: use thread.queue by default.
git-svn-id: trunk@58198 -
2018-06-08 22:45:18 +00:00
ondrej
f34c00fc64 LazUtils: use LazLoggerBase instead of LazLogger
git-svn-id: trunk@58082 -
2018-06-02 16:38:22 +00:00
ondrej
ab816ccd37 LazLogger: refactoring: move methods from LazLogger to LazLoggerBase
git-svn-id: trunk@58077 -
2018-06-02 15:58:23 +00:00
martin
7c2ae66e6e fixed LazListClasses (shift-able and paged list generics)
git-svn-id: trunk@58051 -
2018-05-29 20:08:00 +00:00
mattias
6deedf42c5 lazutils: fixed result
git-svn-id: trunk@58014 -
2018-05-23 15:27:06 +00:00
maxim
ec056fba9f LazUtils: Translations unit: do not try to initialize FHelperList on every call of TPOFile.UpdateItem. FHelperList is only used in TPOFile.SaveToStrings and initialized there.
git-svn-id: trunk@58005 -
2018-05-22 22:32:45 +00:00
maxim
6d88044e80 LazUtils: Translations unit: minor optimization of TPOFile.UpdateItem
git-svn-id: trunk@58004 -
2018-05-22 22:08:06 +00:00
maxim
00b84fd256 LazUtils: Translations unit: simplified TPOFile.FillItem method
git-svn-id: trunk@57997 -
2018-05-21 22:41:03 +00:00
maxim
78acd67a99 LazUtils: Translations unit: introduced TPOFile.InvalidateStatistics method in order to let user to force statistics recalculation if the need arises.
git-svn-id: trunk@57979 -
2018-05-20 22:27:39 +00:00
maxim
99703bc40b LazUtils: Translations unit: removed historical description from comment in the file header (it mentioned no longer existing files/properties). Complete history is available in SVN.
git-svn-id: trunk@57966 -
2018-05-18 23:03:15 +00:00
maxim
0c938e3691 LazUtils: Translations unit: refactored TPOFile statistics (translated/untranslated/fuzzy counters) calculation:
1) Do not try to calculate statistics while reading/updating PO file. Instead calculate it on first read of Statistics property after file read/update. This simplifies logic, makes it easier to maintain and avoids unnecessary calculations when statisics are not actually needed (basically all cases except POChecker).
2) Grouped statistics fields in one record (all these values are usually needed at the same time).
3) Adapted POChecker to the new interface.

git-svn-id: trunk@57965 -
2018-05-18 22:40:50 +00:00
maxim
36b1e31994 LazUtils: Translations unit: do not count errors in TPOFile class anymore, remove NrErrors property.
Reasons:

1) NrErrors was added for POChecker, but it does not use this property.
2) NrErrors count reflected only formatting errors, but this count has little value without list of strings with these errors.
3) PO file errors/problems are not limited by formatting errors (e.g. there can be master/child PO file string mismatches). Detecting them is out of scope of TPOFile class, so NrErrors count in many cases could be misleading.

git-svn-id: trunk@57948 -
2018-05-16 22:26:59 +00:00
maxim
401c1ad2dd LazUtils: Translations unit: declare FindAllTranslatedPoFiles function in interface
git-svn-id: trunk@57828 -
2018-05-07 22:42:16 +00:00
mattias
3c52bd5001 IDEIntf: added SaveComponentAsPascal
git-svn-id: trunk@57770 -
2018-05-02 22:38:41 +00:00
martin
4a5241032e LazLogger: Thread safety
git-svn-id: trunk@57736 -
2018-04-28 09:54:03 +00:00
wp
dd6ac71206 LazUtils: Undo unintentional change in r57634 #5ce61895bf
git-svn-id: trunk@57651 -
2018-04-13 07:32:03 +00:00
mattias
d43000198c lazutils: compwriterpas: fixed writing bytebool
git-svn-id: trunk@57646 -
2018-04-12 19:32:19 +00:00
wp
5ce61895bf TAChart: Fix TCubicSplineSeries drawing nothing if there are less than 4 data points and the option csoDrawFewPoints is set.
git-svn-id: trunk@57634 -
2018-04-09 17:09:00 +00:00
maxim
20834ad1f1 LazUtils, translations.pas: when collecting translation files for given base PO file take into account only files with exactly matching names, i.e. for 'project1.po' collect 'project1.foo.po', not 'project1foo.po'.
git-svn-id: trunk@57545 -
2018-03-21 22:36:01 +00:00
juha
d6934c9506 LazUtils: Add unit LazVersion. Use it also for LCLVersion. Issue #33418, patch from Zoran Vučenović.
git-svn-id: trunk@57504 -
2018-03-14 08:21:54 +00:00
maxim
5f524f7268 LazUtils: translations.pas unit: removed commented out code for context assigning, it will never be used, especially in CleanUp method
git-svn-id: trunk@57501 -
2018-03-12 21:58:06 +00:00
maxim
9306b45921 LazUtils, IDE: remove all unused PO items at once after processing all LRJ/RST/RSJ files, do not rely on PO item identifier structure. This change simpifies item sync logic and guarantees that master PO file will be in sync with LRJ/RST/RSJ files (previously items with not existing unit part of identifier were not removed from master PO file).
git-svn-id: trunk@57491 -
2018-03-09 22:37:25 +00:00
maxim
64656d67ad LazUtils, translations.pas unit: reverted 57426 #a377818801, it caused removal of
strings which should not be removed

git-svn-id: trunk@57431 -
2018-03-02 14:06:19 +00:00
mattias
9b15983c25 lcl: fixed UCS2LEToUTF8 for 1byte niput, issue #33296
git-svn-id: trunk@57429 -
2018-03-02 11:47:30 +00:00
maxim
a377818801 LazUtils: translations.pas unit: removed "module" list (actually list of units extracted from PO items identifiers) handling logic. It significantly complicated the code and these lists were completely unused.
git-svn-id: trunk@57426 -
2018-02-28 23:30:28 +00:00
maxim
2e579f6b18 LazUtils: translations.pas unit: remove deprecated TPOFile.Add method. There is no point in keeping it, because it is unused and it will need to be modified during FModuleList cleanup, so its behavior will change anyway. TPOFile.FillItem method should be used instead.
git-svn-id: trunk@57425 -
2018-02-28 22:46:51 +00:00
maxim
f23167b458 Translations: Simplified Chinese translation update by robsean, bug #33242
git-svn-id: trunk@57404 -
2018-02-27 23:23:20 +00:00
maxim
3ebd7fc7fb LazUtils: translations.pas unit: always remove old instance of renamed item from PO file. Before this commit we had the following erratic behavior in some cases (e.g. in files with only one resourcestring):
Change identifier of some resourcestring from "a" to "b" => PO file contains both "a" and "b" items, but should contain only "b" one.

git-svn-id: trunk@57382 -
2018-02-26 23:20:12 +00:00
maxim
32888ff513 LazUtils: translations.pas unit: reduced lowercase function calls
git-svn-id: trunk@57367 -
2018-02-24 23:00:57 +00:00
maxim
afe1fc7762 Translations: Ukrainian translation update by Olexandr Pylypchuk, bug #33213
git-svn-id: trunk@57363 -
2018-02-24 21:57:20 +00:00
maxim
62223144ab LazUtils, translations.pas unit: avoid the need to double-regenerate PO files in order to set context correctly when items are changed in the following manner:
"a" -> "c"
"b" -> "c"

Copying fuzzy translations has been disabled because it practically does not help translators and can create potential confusion (some items (like in case above) will appear to have false history, and suggested translation is incorrect anyway). Instead now we guarantee to suggest non-fuzzy translation if it exists.

TPOFile.OriginalList property is removed: it was meant for PoChecker and is not needed by it anymore, its underlying field contents have been changed in order to allow aforementioned changes and most likely will be changed again in near future.

git-svn-id: trunk@57346 -
2018-02-21 23:35:04 +00:00
michl
e34bbc5c6f LCL: Fixed OnKeyUp for special keys when key was handled in OnKeyDown. Issue #33196
git-svn-id: trunk@57331 -
2018-02-19 23:28:20 +00:00
maxim
73a90daa66 LazUtils: fixed TPOFile.FillItem debugln in translations.pas
git-svn-id: trunk@57327 -
2018-02-18 21:42:38 +00:00
mattias
0b8beb57af lcl: fixed typo
git-svn-id: trunk@57320 -
2018-02-17 10:42:53 +00:00
maxim
97eebaa8d9 LazUtils: slightly improved code in translations.pas without changing logic
git-svn-id: trunk@57317 -
2018-02-16 23:02:09 +00:00
maxim
47ca6a4009 LazUtils: removed unused constant from translations.pas
git-svn-id: trunk@57146 -
2018-01-25 00:02:34 +00:00