martin
57e0e15e0f
LazLogger: fixed thread race condition. If the logger is destroyed, and threads have pending sync calls. (only observed with custom created loggers). Fix requires fpc 3.2, see issue #0030567
...
git-svn-id: trunk@62036 -
2019-10-11 12:07:22 +00:00
juha
7bbe5e6973
LazUtils: Revert part of r61999 #58b76f8a40.
...
git-svn-id: trunk@62002 -
2019-10-06 13:50:02 +00:00
juha
58b76f8a40
LazUtils: Remove UTF8Encode calls and suppress warnings in winlazfileutils.inc. Issue #35512 .
...
git-svn-id: trunk@61999 -
2019-10-06 08:18:07 +00:00
mattias
ec34c3f2f1
lazutils: lazutf8: fixed TStringList.LoadFromFile load UTF8 by default
...
git-svn-id: trunk@61976 -
2019-10-04 12:05:40 +00:00
juha
cc40ad8b7f
LazUtils: Move encoding page arrays from LConvEncoding to a new .inc file. Issue #36078 .
...
git-svn-id: trunk@61971 -
2019-10-03 18:46:39 +00:00
juha
063096d568
LazUtils: Optimize LConvEncoding a little. Issue #36087 , patch from Alexey Tor.
...
git-svn-id: trunk@61963 -
2019-10-03 18:26:28 +00:00
mattias
f117e5216d
lazutils: StrToCmdLineParam: use " as default quote under Windows
...
git-svn-id: trunk@61912 -
2019-09-23 09:42:25 +00:00
martin
70005fc17a
IDE, XmlConfig: Added ability to store published object (TPersistent) properties / Adhere to "stored" value of properties
...
git-svn-id: trunk@61887 -
2019-09-16 15:15:00 +00:00
martin
bf0028cac1
Try to minimize (NOT a fix) the risks of TProcessUtf8 crashes. Crash introduced in r50595 #d0dace2bf5 for issue #28991 / See also issue #035991
...
git-svn-id: trunk@61736 -
2019-08-20 22:16:37 +00:00
maxim
bd9bfc01d4
Translations: Turkish translation update by Onur ERÇELEN, bug #35865
...
git-svn-id: trunk@61612 -
2019-07-21 22:57:16 +00:00
mattias
63594b3af5
lazutils: fixed TFileSearcher initial PathSeparator and paths with spaces
...
git-svn-id: trunk@61569 -
2019-07-11 14:56:44 +00:00
martin
f5b60972c9
LazDebugger: add operators for log-enable to main unit too.
...
git-svn-id: trunk@61426 -
2019-06-19 15:26:19 +00:00
maxim
85ba39c0d9
LazUtils, Translations unit: improved TPOFile.Modified property handling: initialize its value in constructor and properly set it when removing an item from .po file
...
git-svn-id: trunk@61361 -
2019-06-11 22:35:16 +00:00
mattias
0eb446e94a
lazutils: SysToUTF8: only UTF8_RTL, issue #35696 , from Serge Anvarov
...
git-svn-id: trunk@61352 -
2019-06-10 16:19:00 +00:00
maxim
9843d887dd
LazUtils, Translations unit: improve TPOFile constructors (initialize FAllEntries field only once and invalidate statistics regardless of called constructor)
...
git-svn-id: trunk@61349 -
2019-06-09 22:20:41 +00:00
maxim
436ce8ff84
LazUtils, Translations unit: when updating an item, ensure that translation is empty in .pot file before checking for it. Allows to always correctly clear item's PreviousID value in .pot file.
...
git-svn-id: trunk@61343 -
2019-06-08 23:00:57 +00:00
maxim
772f1b8843
LazUtils, Translations unit: correctly remove PreviousID parts even in case when empty translation of an item with fuzzy flag set (and non-empty PreviousID) gets populated with translation suggestion
...
git-svn-id: trunk@61342 -
2019-06-08 22:17:26 +00:00
maxim
eb107de5ed
LazUtils, Translations unit: fixed setting PreviousID parts of newly changed items (do not remove just set up PreviousID anymore)
...
git-svn-id: trunk@61333 -
2019-06-06 23:39:39 +00:00
maxim
81b06ad0e5
LazUtils, Translations unit: calculate translation statistics based on actual file contents, ignoring any corrections made when reading it
...
git-svn-id: trunk@61303 -
2019-05-30 23:45:14 +00:00
maxim
fc4ab0cea8
LazUtils (Translations unit), POChecker: Introduced VirtualTranslation property to TPOFileItem. It allows to identify items whose empty translations (actually stored in the file) were replaced by some suggestions. Use it in POChecker in order to avoid false warnings about translation contents not yet present in the file.
...
git-svn-id: trunk@61302 -
2019-05-30 23:21:49 +00:00
maxim
b04174617e
LazUtils (Translations unit), POChecker: Store item's fuzzy flag state as read from file in a separate property. Use it where appropriate. This allows to simplify TPOFile constructors and makes code more clear.
...
git-svn-id: trunk@61299 -
2019-05-28 23:34:39 +00:00
maxim
c38c503588
LazUtils, Translations unit: Removed TPOFile.CleanUp method. Unneeded PreviousID parts of items are now cleaned up when updating items both in .pot templates and .po translations.
...
git-svn-id: trunk@61293 -
2019-05-26 23:55:57 +00:00
juha
5b5ad75799
LazUtils: Add OnCompare func for TFreeTypeFont's AVLTree. Prevents adding glyphs many times. Issue #35627 .
...
git-svn-id: trunk@61291 -
2019-05-25 09:36:51 +00:00
maxim
837b7ebe9c
LazUtils, Translations unit: always remove Translation and PreviousID parts of items in .pot templates
...
git-svn-id: trunk@61290 -
2019-05-24 23:39:24 +00:00
maxim
f7571f5012
LazUtils, Translations unit: When copying found translation value to newly added item, do not copy flags from found item.
...
This can be confusing for translator (in case if e.g. no-object-pascal-format flag is copied) and desyncs flags in translation from flags in base file (this will cause all flags missing in base file to be removed from translation on next regeneration). Moreover, set of these flags can differ depending on translation in case they are copied from different items which have different flags (e.g. in partially translated files).
git-svn-id: trunk@61284 -
2019-05-23 23:30:27 +00:00
maxim
cc4f34a35e
LazUtils, Translations unit: Simplified ModifyFlag method. Now we treat space character as a flag delimiter in all cases, thus improving parsing of flags in case of missing comma characters.
...
git-svn-id: trunk@61283 -
2019-05-23 22:52:31 +00:00
maxim
a620891184
LazUtils, Translations unit: added comment
...
git-svn-id: trunk@61281 -
2019-05-22 23:13:33 +00:00
maxim
8078feaa66
LazUtils, Translations unit: When setting flags for an item in .po file, omit double quote (") characters in order to avoid regeneration instability. These characters are not meant to be present in flags anyway according to examples in gettext documentation.
...
git-svn-id: trunk@61279 -
2019-05-22 22:43:57 +00:00
maxim
592a9daf42
LazUtils, Translations unit: ensure uniqueness of flags in .po file items, ignore empty flags
...
git-svn-id: trunk@61267 -
2019-05-21 23:50:58 +00:00
wp
31de6345cf
LazUtils: Use exception class EFreeType instead of general Exception in EasyLazFreeType.
...
git-svn-id: trunk@61244 -
2019-05-18 23:23:11 +00:00
maxim
e27c505be2
LazUtils, Translations unit: treat items with no-object-pascal-format flag as having correct formatting (never mark them with fuzzy and badformat flags for the formatting reasons)
...
git-svn-id: trunk@61232 -
2019-05-16 23:05:04 +00:00
maxim
5b72fe1d56
LazUtils, Translations unit: fixed/improved propagation logic of translation items user flags:
...
In base .pot file (template):
- Newly created item has no user flags.
- Existing updated item has its user flags kept intact.
In translation .po file:
- Newly created item gets user flags copied from base file (all flags missing in base file are removed).
- Existing updated item gets user flags copied from base file (all flags missing in base file are removed except fuzzy flag, whose state is kept).
After copying user flags, object-pascal-format, badformat and fuzzy flags are set automatically for each item (if needed).
This makes flags in translations (.po files) follow the ones from base file (.pot file) when they are added or removed in all cases (even when an item in .pot file gets its last flag deleted).
git-svn-id: trunk@61231 -
2019-05-16 22:49:46 +00:00
maxim
b68407fc52
Translations: regenerated all relevant translation files after r61225 #75a8b1b83c
...
git-svn-id: trunk@61226 -
2019-05-13 23:21:39 +00:00
maxim
75a8b1b83c
LazUtils: .pot/.po file generation and update improvements by Yuriy Sydorov, bug #35543 :
...
- Automatically set the "object-pascal-format" flag for strings containing format chars. It allows tracking of format errors by external tools such as Poedit.
- The "no-object-pascal-format" flag can be specified for a string in the main .pot file if needed.
- It is possible to specify flags in the main .pot file for particular strings and these flags will be preserved and propagated to language specific .po files during the update.
- Fixed delimiter for flags. At least Poedit expects that flags are separated by comma and space, not just comma.
- TPOFileItem.ModifyFlag() can accept the comma separated list of flags and returns true if the Flags property has been modified.
git-svn-id: trunk@61225 -
2019-05-13 23:19:17 +00:00
maxim
117265f357
LazUtils: removed unused stale translation files
...
git-svn-id: trunk@61224 -
2019-05-13 23:09:38 +00:00
martin
d879259b62
LazLogger: fix wrong override for inherited method
...
git-svn-id: trunk@61176 -
2019-05-08 12:01:54 +00:00
juha
3470923dd4
LazUtils: Remove incorrect code dealing with strings on Windows, use SysUtils code instead. Issue #35512 , patch from Serge Anvarov.
...
git-svn-id: trunk@61165 -
2019-05-06 14:24:37 +00:00
juha
3df7d8afe5
LCL, LazUtils: Move string manipulation functions from LCLProc to LazStringUtils.
...
git-svn-id: trunk@61038 -
2019-04-22 09:00:32 +00:00
juha
0487347061
IDE: Allow only valid revision numbers to show in IDE title.
...
git-svn-id: trunk@61030 -
2019-04-21 14:27:53 +00:00
joost
f1dece9ac8
LazUtils: Fixed handling of default values in TXMLConfigStorage + test
...
git-svn-id: trunk@60943 -
2019-04-12 18:19:32 +00:00
martin
7f5bb76b42
LazLogger: improve DebulnEnter/Exit, add ability do change indent without logging anything
...
git-svn-id: trunk@60869 -
2019-04-07 19:48:45 +00:00
juha
d9ac09795b
Respect compiler OPT='-v0' by using {$push} and {$pop} in code. Issue #34955 .
...
git-svn-id: trunk@60706 -
2019-03-16 21:17:58 +00:00
juha
c2412a36ab
LazUtils: Encode apostrophe to "'" in WriteXMLFile. Issue #34888 , patch from akorop.
...
git-svn-id: trunk@60704 -
2019-03-16 19:37:18 +00:00
mattias
3acfbb4dd2
lazutils: fixed TXMLConfig.IsLegacyList
...
git-svn-id: trunk@60695 -
2019-03-16 13:48:54 +00:00
juha
5d46a75ff6
IDE: Use a better XML tag format for project etc. info files. Issue #22752 , patch from Ondrej.
...
git-svn-id: trunk@60683 -
2019-03-15 16:15:21 +00:00
mattias
59f5c68e94
lazutils: compwriter virtual methiods
...
git-svn-id: trunk@60630 -
2019-03-09 12:12:41 +00:00
mattias
672732cd5d
lazutils: writerpascal: added option cwpoNoFinalLineBreak
...
git-svn-id: trunk@60626 -
2019-03-08 23:02:10 +00:00
marcus
25896bdf09
Fixed compilation for non unix after r60621 #5905fbb553
...
git-svn-id: trunk@60623 -
2019-03-08 16:51:58 +00:00
mattias
5905fbb553
lazutils: SearchFileInPath: added flags sffFile, sffExecutable
...
git-svn-id: trunk@60621 -
2019-03-08 13:19:10 +00:00
maxim
1a22de281f
LazUtils, Translations unit: simplify TPOFile.UpdateStrings method, there is no more particular need in early detection of multilined strings. No functional changes.
...
git-svn-id: trunk@60574 -
2019-03-03 23:17:22 +00:00