Commit Graph

936 Commits

Author SHA1 Message Date
maxim
854d1eceaf LazUtils: when updating existing translation item, copy PreviousID together with translation if needed, just like we do for newly added item.
git-svn-id: trunk@57010 -
2018-01-08 15:22:52 +00:00
maxim
07343847b2 LazUtils: replaced hardcoded literal with constant in translations.pas
git-svn-id: trunk@56988 -
2018-01-06 15:00:32 +00:00
maxim
7c33223dae LazUtils: if existing item being updated has empty translation, search for possible translation variants just like for newly added item. This should allow to avoid the need to do two regenerations of .po files in a row in some cases.
git-svn-id: trunk@56967 -
2018-01-05 15:07:41 +00:00
maxim
375c1edea3 LazUtils: when updating translation item, set FModified only when flags are actually modified.
git-svn-id: trunk@56954 -
2018-01-04 15:41:57 +00:00
maxim
50260ae6a6 LazUtils: when updating translation item, always check for formatting arguments and update flags accordingly, because badformat flags are often removed e.g. by poEdit. This change should allow to avoid the need to do two regenerations of .po files in a row in some cases.
git-svn-id: trunk@56953 -
2018-01-04 14:16:17 +00:00
maxim
3d107d6533 LazUtils: when updating translation item, also correctly set BadFormat flag.
git-svn-id: trunk@56939 -
2018-01-03 16:49:09 +00:00
maxim
edac957379 LazUtils: when updating translation item, change its PreviousID only if it was empty or translation item was not fuzzy before update. This allows to keep for translator's reference PreviousID against which this fuzzy translation was made. It helps when some changes get made to already fuzzy translation item.
git-svn-id: trunk@56938 -
2018-01-03 15:49:21 +00:00
juha
ed1cd9335d LazUtils: Add a new function UTF8ProperCase() to unit LazUTF8.
git-svn-id: trunk@56892 -
2017-12-31 08:49:05 +00:00
maxim
6393c91e5d Translations: Chinese translation update by robsean, bug #32850
git-svn-id: trunk@56798 -
2017-12-19 22:08:00 +00:00
mattias
5d67ef5e1b lazutils: fixed ResolveDots under Windows .\.
git-svn-id: trunk@56726 -
2017-12-14 16:19:14 +00:00
juha
f8be53b0e6 LazUtils: Change "Character" to "Codepoint" also in some parameter names in LazUTF8. Cleanup.
git-svn-id: trunk@56708 -
2017-12-13 00:07:00 +00:00
juha
3ed79743c8 Remove the wrapper functions from LazUtils.FileUtil, Lcl.LclProcs and Codetools.FileProcs completely. Simplify code.
git-svn-id: trunk@56693 -
2017-12-11 19:44:37 +00:00
juha
6810c626df LazUtils: Change "Character" to "Codepoint" in LazUTF8 function names to be more accurate and to avoid confusion.
git-svn-id: trunk@56692 -
2017-12-11 19:44:22 +00:00
mattias
5444356865 lazutils: debug comments
git-svn-id: trunk@56678 -
2017-12-09 10:01:41 +00:00
juha
0f1a653071 LazUtils: Remove the reference to resource file from LazUnicode GUI example.
git-svn-id: trunk@56673 -
2017-12-08 20:52:04 +00:00
mattias
41d64afed4 lazutils: TAVLTree: changed default to be usable in threads
git-svn-id: trunk@56667 -
2017-12-08 09:54:41 +00:00
mattias
8fa91fbd06 lazutf8: fixed UTF8LowerCase CIRCLED LATIN CAPITAL LETTER K
git-svn-id: trunk@56665 -
2017-12-07 19:43:10 +00:00
juha
be0dcc0b50 LazUtils: Fix errors in LazUTF8.UTF8LowerCase. By forum user Munair.
git-svn-id: trunk@56662 -
2017-12-07 15:54:54 +00:00
juha
962f0fce09 LazUtils: Improve function UTF8LengthFast. From forum user "engkin".
git-svn-id: trunk@56572 -
2017-12-01 13:54:45 +00:00
martin
b289de5fdc Lazlogger: Allow setting to nil. Issue #32548
git-svn-id: trunk@56540 -
2017-11-30 13:53:44 +00:00
maxim
682a383e55 Translations: Brazilian Portuguese translation update by Marcelo B Paula, bug #32754
git-svn-id: trunk@56535 -
2017-11-29 22:49:04 +00:00
maxim
926062dcfd Translations: huge Chinese translation update by robsean, bug #32750
git-svn-id: trunk@56534 -
2017-11-29 22:32:14 +00:00
juha
d10aed499e LazUtils: Improve function UTF8RPos. Use RPos and UTF8Length instead of reversing the whole string.
git-svn-id: trunk@56529 -
2017-11-28 21:29:05 +00:00
juha
c06635aeeb LazUtils: Fix the compare functions of lists for integer types in unit IntegerList.
git-svn-id: trunk@56400 -
2017-11-14 09:33:04 +00:00
juha
c7ba603d21 Reduce typecasts. Use TIntegerList and TByteList where appropriate.
git-svn-id: trunk@56399 -
2017-11-13 23:20:44 +00:00
juha
18f15c2e73 LazUtils: Add class TInt64List, a list of Int64.
git-svn-id: trunk@56397 -
2017-11-13 19:13:49 +00:00
juha
d2b1729095 LazUtils: Rename TArray -> TPointerPointerArray.
git-svn-id: trunk@56396 -
2017-11-13 17:33:36 +00:00
juha
04a49cc7ee LazUtils: Add a new unit IntegerList.
git-svn-id: trunk@56388 -
2017-11-13 17:33:23 +00:00
juha
18570daf7b LazUtils: Use TUnicodeCharacterEnumerator for the "for .. in" iterator syntax. Move demo to examples dir and add a GUI demo.
git-svn-id: trunk@56260 -
2017-11-03 16:13:46 +00:00
juha
7772e8646b LazUtils: Optimize Unicode enumerators. Use preset variables for different codepoint/character lengths.
git-svn-id: trunk@56259 -
2017-11-01 23:02:29 +00:00
mattias
5af084c055 codetools: test write components without with-do
git-svn-id: trunk@56229 -
2017-10-29 14:42:45 +00:00
mattias
b04498135d codetools: test writing with-lookuproot-do
git-svn-id: trunk@56218 -
2017-10-27 15:25:10 +00:00
mattias
036507e3ba codetools: test write end signature
git-svn-id: trunk@56217 -
2017-10-27 14:57:37 +00:00
mattias
085ac5259b codetools: test needed unit for defineproperties
git-svn-id: trunk@56213 -
2017-10-26 17:49:46 +00:00
mattias
87cee22c65 codetools: test write custom properties
git-svn-id: trunk@56212 -
2017-10-26 17:29:47 +00:00
mattias
fac364fd3b lazutils: added unit lazpasreadutil
git-svn-id: trunk@56209 -
2017-10-26 14:58:46 +00:00
mattias
acd77c3bb0 lazutils: replaced TPASObjectWriter with TCompWriterPas
git-svn-id: trunk@56208 -
2017-10-26 14:18:13 +00:00
bart
0d6d2cc04a LazFileUtils: rename a local variable to improve readability. No functional changes.
git-svn-id: trunk@56187 -
2017-10-25 10:36:19 +00:00
mattias
5e7387d21d lazutils: fixed ResolveDots: ./ -> .
git-svn-id: trunk@56185 -
2017-10-25 10:21:23 +00:00
mattias
90dd28d142 lazutils: simplified
git-svn-id: trunk@56163 -
2017-10-23 09:35:35 +00:00
mattias
8b8930645a lazutils: comment
git-svn-id: trunk@56097 -
2017-10-17 15:10:40 +00:00
mattias
099b09d88d lazutils: added compwriterpas.pas
git-svn-id: trunk@56093 -
2017-10-17 12:12:46 +00:00
bart
08a73bdac1 Fix TMask.InitMaskString for charsets when CaseSensitive is False. Issue #0032491. Patch by delfion.
git-svn-id: trunk@56029 -
2017-10-11 15:38:36 +00:00
juha
f331aaa8a1 EasyLazFreeType: Allow freeing TFreeTypeFont after EasyLazFreeType finalization. Issue #32371, patch from Andrey Zubarev.
git-svn-id: trunk@55788 -
2017-09-05 10:06:50 +00:00
juha
313c93184b LazUtils: In HTML2TextRenderer use an emoji for list items.
git-svn-id: trunk@55743 -
2017-08-24 22:18:03 +00:00
juha
bbd38e2474 LazUtils: Call the optimized function Utf8StringOfChar from StringOfCodePoint when using UTF-8.
git-svn-id: trunk@55729 -
2017-08-21 09:47:21 +00:00
juha
6169b87086 LazUtils: Add a trivial function StringOfCodePoint to unit LazUnicode.
git-svn-id: trunk@55701 -
2017-08-19 16:03:23 +00:00
mattias
895444b524 lazutils: less hints
git-svn-id: trunk@55679 -
2017-08-19 08:18:44 +00:00
juha
52fc498a76 Formatting and cleanup.
git-svn-id: trunk@55594 -
2017-07-26 10:45:05 +00:00
juha
ec52d9726a LazUtils: In Html2TextRenderer use a diamond glyph belonging to Unicode BMP. All fonts did not support the small diamond.
git-svn-id: trunk@55593 -
2017-07-25 19:38:35 +00:00