Commit Graph

1151 Commits

Author SHA1 Message Date
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
joost
9ddd2b699c Packager/Lazutils: Re-created fpmake.pp
git-svn-id: trunk@60323 -
2019-02-03 22:22:32 +00:00
martin
211ab886b0 LazLogger: Improve Indent handling with threads. Ensure inc/dec is not overwritten by other threads
git-svn-id: trunk@60267 -
2019-01-31 22:55:20 +00:00
martin
30146193bb LazLogger: Check the callback in a more thread save manner
git-svn-id: trunk@60265 -
2019-01-31 22:24:21 +00:00
martin
131d04802a LazLogger: Init is called from DoDebugLn => make thread save
git-svn-id: trunk@60264 -
2019-01-31 22:06:25 +00:00
martin
4ee1459b01 LazLogger: Optimize indent handling / fix reset indent for DbgOut
git-svn-id: trunk@60263 -
2019-01-31 21:49:14 +00:00
martin
185d63ac35 LazLogger: Optimize indent handling
git-svn-id: trunk@60262 -
2019-01-31 21:44:56 +00:00
martin
720d4c15c5 LazLogger: Move widetset callback into threadsave block
git-svn-id: trunk@60257 -
2019-01-31 14:58:16 +00:00
martin
1513ba0c4c LazLogger: Fix a crash, due to not thread safe.
git-svn-id: trunk@60246 -
2019-01-30 00:53:46 +00:00
maxim
040d1106ac IDE/Packager/LazUtils: factored out PO filename parsing code to a separate procedure and made it dotted filename safe. Now using it in all relevant places, thus reducing code duplication and fixing possible problems with dotted PO filenames.
git-svn-id: trunk@60245 -
2019-01-29 23:04:16 +00:00
martin
a9f2cac891 LazLogger: Comments / Ifdef'ed flush log
git-svn-id: trunk@60244 -
2019-01-29 19:47:46 +00:00
maxim
684c367b8a IDE: changed extension of master PO files (a.k.a. templates) from .po to .pot, adapted IDE, POChecker, updatepofiles tool and localize.bat/.sh scripts.
Reasons:
1. .pot is 'industry standard' extension for PO template files. As a consequence, PO editors can now open our templates 'out of the box' and automate creation of translations.
2. It is now much simpler to detect template files now that dotted unit names are allowed.

git-svn-id: trunk@60208 -
2019-01-24 23:02:37 +00:00
maxim
bc4e1da857 Translations: Polish translation update by Sławomir Niedziela, bug #34788
git-svn-id: trunk@59988 -
2019-01-04 13:58:31 +00:00
mattias
da5ed1026a lazutils: updated fpmake
git-svn-id: trunk@59946 -
2018-12-31 09:58:25 +00:00
joost
3d5be57e48 fcl,lazutils,lclbase,lcl,synedit: Re-generated fpmake.pp files
git-svn-id: trunk@59940 -
2018-12-29 23:13:34 +00:00
joost
21e4fd4e8f lazutils,lclbase,synedit: Some fixes related to r59934 #a2e9341eb3
git-svn-id: trunk@59937 -
2018-12-29 22:28:24 +00:00
joost
a2e9341eb3 lazutils,lclbase,lcl,synedit: Enabled possibility to use fpmake for building these packages
git-svn-id: trunk@59934 -
2018-12-29 17:59:40 +00:00
bart
34803af734 - TFileSearcher: implement property PathSeparator.
- and expose both MaskSeparator and PathSeparator in FindAllFiles()
- expose PathSeparator in FindAllDirectories.
Issue #0034607.

git-svn-id: trunk@59687 -
2018-11-28 17:23:33 +00:00
maxim
c8c7a1723a Translations: Chinese translation update by robsean, bug #34579
git-svn-id: trunk@59617 -
2018-11-22 00:03:32 +00:00
martin
9b6c091763 LazLogger: fixed crash in assign
git-svn-id: trunk@59614 -
2018-11-21 16:52:11 +00:00
martin
fb1109e5cc LazLogger: Small threading optimization
git-svn-id: trunk@59508 -
2018-11-11 14:46:55 +00:00
juha
93fbbb0db7 LazUtils: Add LazUTF8SysUtils with "deprecated" warnings. The unit was renamed earlier.
git-svn-id: trunk@59436 -
2018-11-03 12:45:54 +00:00
juha
07607b4bba LazUtils: Raise exception in UTF8To... functions, controlled by a global boolean. Issue #33686, patch from AlexeyT.
git-svn-id: trunk@59416 -
2018-11-01 08:39:09 +00:00
juha
64a3cced51 LazUtils: Added inlines to some functions in LazUTF8. Issue #34472, patch from AlexeyT.
git-svn-id: trunk@59394 -
2018-10-30 11:04:21 +00:00
mattias
054150bb42 lazutils: some optimizations from Alexey
git-svn-id: trunk@59358 -
2018-10-26 19:26:31 +00:00
mattias
83e2e9a6cd lazutils: fixed ExpandFileNameUTF8 for \\?\
git-svn-id: trunk@59352 -
2018-10-26 08:10:10 +00:00
maxim
2fb99791ef Translations: French translation update by Gilles Vasseur, bug #34403
git-svn-id: trunk@59276 -
2018-10-09 22:50:15 +00:00
maxim
e26f6ff3ca Translations: Hungarian translation update by Péter Gábor, bug #34397
git-svn-id: trunk@59275 -
2018-10-09 22:41:03 +00:00
mattias
f9799efe90 lazutils: less hints
git-svn-id: trunk@59216 -
2018-10-01 15:13:34 +00:00
juha
75d1f28106 LazUtils: Move more functions from FileUtils to LazFileUtilities, deprecate the old ones.
git-svn-id: trunk@59177 -
2018-09-28 12:25:39 +00:00
juha
c9e4614e17 Delete old deprecated methods.
git-svn-id: trunk@59175 -
2018-09-28 11:06:40 +00:00
juha
571647e302 LazUtils: Move ExtractFileNameWithoutExt to LazFileUtils. Rhymes with ExtractFileNameOnly.
git-svn-id: trunk@59169 -
2018-09-26 17:49:27 +00:00
mattias
1f64e2b29d lazutils: deprecated ConvertLineEndings in favor of LineBreaksToSystemLineBreaks
git-svn-id: trunk@59144 -
2018-09-23 10:33:52 +00:00
mattias
f14e40c50d lazutils: removed duplicate code, issue #34320
git-svn-id: trunk@59142 -
2018-09-23 06:42:21 +00:00
bart
70f0e3209a LazUtf8: leftpad escaped characters in Utf8EscapeControlChars if EscapeMode = emPascal. Prevents ambiguity when reading the result.
git-svn-id: trunk@59125 -
2018-09-22 09:57:01 +00:00
mattias
12ce8a3854 set trunk version to 2.1.0
git-svn-id: trunk@59010 -
2018-09-15 19:46:38 +00:00
mattias
c2b0e049ef set trunk version to 2.0.0PreRelease
git-svn-id: trunk@59008 -
2018-09-15 19:41:22 +00:00
maxim
db62862efe LCLTranslator, Translations units: when translating an item, return original value if translation is empty. Idea by Sergey Bulba. Also improved finding master .po file in LCLTranslator. Fixes bug #33095.
git-svn-id: trunk@58976 -
2018-09-13 22:03:54 +00:00
juha
f6dcfb9e4f LazUtils: Add process priority constants for latest FPC. Issue #34184, patch from Do-wan Kim.
git-svn-id: trunk@58806 -
2018-08-31 08:15:05 +00:00
juha
0bb1729bdc Cleanup for utility functions.
git-svn-id: trunk@58786 -
2018-08-27 19:03:21 +00:00
maxim
a351c9f8fe Translations: Brazilian Portuguese translation update by Marcelo B Paula, bug #34139
git-svn-id: trunk@58742 -
2018-08-19 23:08:36 +00:00
juha
416b61b5e3 LazUtils: Make UTF8Process work on Windows with FPC trunk (r39517+). Issue #34048, patch from Pascal Riekenberg
git-svn-id: trunk@58663 -
2018-08-02 09:18:16 +00:00
maxim
368347ca99 Translations: Ukrainian translation update by Olexandr Pylypchuk, bug #34056
git-svn-id: trunk@58659 -
2018-07-31 21:59:47 +00:00
juha
41dc46374f LazUtils: Move string manipulation functions from LazUtilities to LazStringUtils.
git-svn-id: trunk@58634 -
2018-07-25 23:44:54 +00:00
juha
6d3f9bd7a7 LazUtils: Move string manipulation functions from IDEProcs to LazStringUtils.
git-svn-id: trunk@58632 -
2018-07-25 13:39:06 +00:00
juha
5c561fabd8 LazUtils: Add a new unit LazStringUtils. Move 2 functions from Codetools' SourceLog there.
git-svn-id: trunk@58631 -
2018-07-25 13:39:01 +00:00
juha
d43fa548b8 LazUtils: Rename unit LazUTF8SysUtils -> LazSysUtils. It had nothing to do with character encoding.
git-svn-id: trunk@58630 -
2018-07-25 13:38:59 +00:00
maxim
5ed0f55393 LazUtils: regenerated translations and updated Russian translation
git-svn-id: trunk@58626 -
2018-07-24 23:09:26 +00:00
juha
b20cf40349 Use RaiseGDBException from LazTracer unit. Remove similar funcs from IDEProcs and ComponentReg.
git-svn-id: trunk@58622 -
2018-07-24 17:49:21 +00:00
juha
a20ec2d6bc Move functions dealing with command line from IDEProcs to LazFileUtils.
git-svn-id: trunk@58621 -
2018-07-24 17:49:16 +00:00
juha
620bba736b Move functions dealing with path delimiters from IDEProcs to LazFileUtils.
git-svn-id: trunk@58620 -
2018-07-24 17:49:15 +00:00
juha
887cf78963 Move a version of function ProgramDirectory from IDEProcs to FileUtils.ProgramDirectoryWithBundle.
git-svn-id: trunk@58619 -
2018-07-24 17:49:13 +00:00
juha
0500052f06 Move functions CompareCaret and CompareBoolean away from IDEProcs, to LCLProc and LazUtilities respectively.
git-svn-id: trunk@58618 -
2018-07-24 17:49:11 +00:00
mattias
2bbe0a8cc7 updated makefiles
git-svn-id: trunk@58493 -
2018-07-11 23:58:59 +00:00
juha
1366299857 IDE: Reordering and formatting code for recent item lists in unit IdeProcs.
git-svn-id: trunk@58468 -
2018-07-09 08:20:58 +00:00
martin
1f4fa68fab Remove deprecated misspelled methods
git-svn-id: trunk@58436 -
2018-07-03 22:40:28 +00:00
mattias
00112a0fe0 lazutils: removed -vm6058
git-svn-id: trunk@58400 -
2018-06-25 07:05:36 +00:00
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
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