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
mattias
d4a8763c35
lazutils: fixed SplitCmdLine escape chars
...
git-svn-id: trunk@60544 -
2019-02-28 20:52:48 +00:00
mattias
adc7b0575c
lazutils: fixed PrepareCmdLineOption quote if needed
...
git-svn-id: trunk@60540 -
2019-02-28 18:24:22 +00:00
martin
9d250edfa3
LazLogger: conditional logging / support And/Or operators for log-groups
...
git-svn-id: trunk@60516 -
2019-02-26 18:51:47 +00:00
bart
642a3a9b68
LazUtils: change order of new Count parameter in Utf8StringReplace/Utf16StringReplace.
...
git-svn-id: trunk@60429 -
2019-02-15 15:52:00 +00:00
bart
c452fc00e6
LazUtils: add optional Count parameter to Utf8StringReplace/Utf16StringReplace.
...
git-svn-id: trunk@60426 -
2019-02-15 13:56:08 +00:00
maxim
7e998b13d9
LazUtils, Translations unit: when reading resource string files, do not escape TAB character with its code representation (' #9 '), it is handled just fine both by our translation system and Poedit
...
git-svn-id: trunk@60411 -
2019-02-12 18:59:48 +00:00
maxim
c1e3ea24a0
LazUtils, Translations unit: when reading PO file, '\t' sequences are converted to TABs (code #9 ). Now for symmetry TABs are converted back to '\t' when writing PO files.
...
git-svn-id: trunk@60369 -
2019-02-08 23:45:45 +00:00
michl
a85a3d9e59
LazUtils: Missing TFPImageFreeTypeDrawer.DrawGlyph added. Issue #35032 . Patch from Ondrej Pokorny
...
git-svn-id: trunk@60363 -
2019-02-07 22:41:12 +00:00
michl
2035539759
LazUtils: Fixed wrong offsets in free type font subclips. Issue #35036 . Patch from Ondrej Pokorny
...
git-svn-id: trunk@60362 -
2019-02-07 22:30:29 +00:00
maxim
8d056d676d
LCL, LazUtils: do not meddle with trailing lineendings of multiline strings in PO files.
...
Reasons:
1. PO format does not prohibit multiline strings without trailing lineendings (and e.g. recent versions of Poedit do not complain about them).
2. Now multiline strings in PO files match exactly corresponding resourcestrings.
3. As a consequence of previous point we unbroke loading multiline translations from MO files.
git-svn-id: trunk@60343 -
2019-02-06 00:46:01 +00:00