Commit Graph

951 Commits

Author SHA1 Message Date
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
maxim
768142c2d9 Lazutils: fixed setting fuzzy flags for incorrectly formatted items when translations are regenerated by IDE and introduced Duplicate flag for TPOFileItem (we don't want to use Context for this, because in future it can be set not only for duplicate items)
git-svn-id: trunk@57144 -
2018-01-24 23:54:36 +00:00
maxim
692a019da4 Lazutils: Got rid of separate CheckFormatArguments method and FormatChecked property in TPOFile class. They are useless, because items are already checked for format arguments correctness when CheckFormatArguments is called.
git-svn-id: trunk@57143 -
2018-01-23 23:54:40 +00:00
maxim
f0d23f46c7 Lazutils: deprecated TPOFile.Add method. FillItem should be used from now on.
git-svn-id: trunk@57139 -
2018-01-21 22:48:54 +00:00
maxim
b7f1c99d2b Lazutils: refactored code for adding/updating items in order to remove code duplication (TPOFile.Add method call was always preceded by search for duplicate item). This change introduces FillItem method which effectively renders Add method obsolete.
git-svn-id: trunk@57138 -
2018-01-21 22:35:50 +00:00
maxim
26ce2347a4 LazUtils: when updating existing translation item, copy Flags together with translation if needed, just like we do for newly added item.
git-svn-id: trunk@57016 -
2018-01-08 23:05:59 +00:00
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