summaryrefslogtreecommitdiffstats
path: root/tools/linguist/shared
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headersAkseli Salovaara2015-03-3121-274/+274
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I7e3e96183e073877b46bc8071b2ccae19e69426b Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Updated year in copyright headerKai Koehne2014-03-2621-21/+21
| | | | | | | | | | | | | | | | | | find . -path '*/3rdparty/*' -prune -o -type f -print | xargs -L1 sed -i -E 's/Copyright(.*) 2013 Digia/Copyright\1 2014 Digia/g' Manually patched files: demos/spectrum/3rdparty/fftreal/fftreal_wrapper.h demos/spectrum/3rdparty/fftreal/fftreal_wrapper.cpp src/3rdparty/s60/eiksoftkeyimage.h tools/qdoc3/test/qt-project.qdocconf tests/auto/qsharedpointer/nontracked.h tests/auto/qsharedpointer/nontracked.cpp Change-Id: I3f9074923b4d6bd4666258ab04f01476cc6e901c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Sergio Ahumada <sahumada@blackberry.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* execute some loops even in cumulative modeOswald Buddenhagen2013-08-191-7/+10
| | | | | | | | | | | | | | | | we execute foreach loops now. this is (mostly) safe nowadays, because a previous change added precautions against exponential value list growth, so it's unlikely that two nested loops would keep the cpu busy for a day as before. we continue to exclude forever loops and loops with excessive integer counts. Task-number: QTBUG-8550 Change-Id: Iaa116086986cc7fd5023834753f791dd205102e5 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> (cherry picked from qttools/dd4d594c787a62fa8aa12695c5d115c71b59bacd)
* Update copyright year in Digia's license headersSergio Ahumada2013-01-1321-21/+21
| | | | | | Change-Id: I52bf8ef0447b701b4ebf7d7d240013a72adb9425 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-2921-505/+505
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I280c0a575987d1770e354b4948f1d4d767d711ea Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Update contact information in license headers.Sergio Ahumada2012-08-0121-42/+42
| | | | | | | | | | | | | - Replace Nokia contact email address with Qt Project website. - Remove "All rights reserved" line from license headers. As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ie7ba62011752fcb149b99b26317c54f2a0cfa931 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Update year in Nokia copyright messages.Jason McDonald2012-01-1121-21/+21
| | | | | | | | | Simple search and replace. This commit doesn't touch 3rd-party files, nor translations (where the change is not so simple and will be handled in a separate commit). Change-Id: I4e48513b8078a44a8cd272326685b25338890148 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* add -list-languages option to lupdateOswald Buddenhagen2011-10-062-0/+25
|
* remove dead codeOswald Buddenhagen2011-10-041-7/+0
|
* "fix" license headersOswald Buddenhagen2011-06-029-126/+207
| | | | our policy and even more its implementation is mildly braindead ...
* remove dead variablesOswald Buddenhagen2011-06-011-17/+3
|
* optimization: avoid creating unnecessary temporariesOswald Buddenhagen2011-06-011-35/+29
| | | | | erase messages instead of building a new list of non-dropped ones. modify messages instead of replacing them with modified copies.
* add hash-based indexing to Translator for fast find()Oswald Buddenhagen2011-06-012-26/+92
|
* remove Translator::translatedMessages()Oswald Buddenhagen2011-06-013-13/+1
| | | | | it's inefficient to construct a new list. on top of that, the only user actually checks the message state again.
* remove Translator::contains()Oswald Buddenhagen2011-06-012-9/+0
| | | | it's redundant with find() now, as the latter is cheap now
* optimization: make the Translator::find() api index-basedOswald Buddenhagen2011-06-012-10/+11
|
* nuke Translator::release(), make saveQM() non-static insteadOswald Buddenhagen2011-06-013-12/+3
| | | | this "factory" served only to obfuscate the code
* synchronize qmake project parser with qt creatorOswald Buddenhagen2011-06-0112-2556/+4589
| | | | | qt creator as of ddb918f. not feeling like replaying the whole history ...
* Update licenseheader text in source files for qt4.8Jyri Tahtela2011-05-1318-306/+306
| | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* fix detection of relative location informationOswald Buddenhagen2011-04-111-5/+7
| | | | | | | | | an empty line number does not indicate relative loc info - it may be the result of -no-ui-lines. instead, an empty file name does indicate it - no file name at all makes no sense, so this means a previous messages has set it already. and we need this additional detection, as the entire ts file may have no line number info to base the decision on at all.
* make -markuntranslated work without -idbasedOswald Buddenhagen2011-04-081-1/+1
| | | | Task-number: QTBUG-18625
* Update copyright year to 2011.Jason McDonald2011-01-1018-18/+18
| | | | Reviewed-by: Trust Me
* make the dtd reflect realityOswald Buddenhagen2010-11-021-18/+5
|
* I18n: Fix some lupdate warnings.Friedemann Kleint2010-09-141-2/+2
|
* preserve non-standard source referencesOswald Buddenhagen2010-08-301-4/+20
| | | | | | | | | the PO format doc suggests that all references are in filename:linennumber format, but some tools seem to deviate from that. so do our best to preserve such references, even if we can't do anything with them. Task-number: QTBUG-9488
* properly parse ts contexts in obsolete messagesOswald Buddenhagen2010-08-301-0/+2
|
* move the MAGIC_OBSOLETE_REFERENCE hack to the xlf file handlerOswald Buddenhagen2010-08-302-8/+15
| | | | | after all, it is pretty much specific to xlf files, even if the problem majorly concerns converted po files.
* remove spurious empty lines in the linguist tools' outputOswald Buddenhagen2010-06-034-12/+12
| | | | ConversionData::error() does already newline-terminate the strings.
* don't use qWarning() - or even qFatal()! - gratuitously.Oswald Buddenhagen2010-06-032-13/+14
| | | | Task-number: QTBUG-8044
* write PO files without duplicated message idsOswald Buddenhagen2010-06-021-7/+60
| | | | | | | | encoding the qt context as a magic comment was no particularly good idea, as it provided no disambiguation as far as gettext is concerned. so instead encode the context into msgctxt. Task-number: QTBUG-10307
* Apply f176759fc41abc4cb901c2cbaa15264f2a9ac85b to stdout too.Thiago Macieira2010-04-101-0/+4
| | | | | | | Ossi is right: on WinCE, _setmode is different from regular Windows and the docs... Reviewed-by: ossi
* the _setmode() prototype is different on win ceOswald Buddenhagen2010-04-091-0/+4
| | | | | | ... both from windows and the wince doc ... Reviewed-by: joerg
* fcntl.h doesn't seem to exist, either - contrary to an example on msdnOswald Buddenhagen2010-04-091-2/+2
|
* fix compile on winceOswald Buddenhagen2010-04-091-2/+7
| | | | Reviewed-by: joerg
* Fix compilation on solaris-g++: ctype functions are sometimes macrosThiago Macieira2010-04-011-3/+3
| | | | | | | At least with g++ 3.4 on Solaris, they are. So you can't write ::isalpha because that expands to something invalid. Reviewed-by: Trust Me
* handle qt-format PO flagsOswald Buddenhagen2010-03-311-1/+24
|
* handle encoding of PO filesOswald Buddenhagen2010-03-311-134/+202
|
* make variable naming politically correct :-DOswald Buddenhagen2010-03-311-4/+4
|
* add Plural-Forms header in PO writerOswald Buddenhagen2010-03-315-25/+64
|
* simplify arabic plural ruleOswald Buddenhagen2010-03-311-1/+1
|
* don't mark untranslated messages as fuzzy in PO filesOswald Buddenhagen2010-03-311-2/+2
| | | | ... as this is what gettext processors expect.
* support gettext POT filesOswald Buddenhagen2010-03-311-0/+14
| | | | | these are in fact the same as PO files, only that exporting to one automatically drops translations.
* fix writing of length variant separators in the singular caseOswald Buddenhagen2010-03-311-0/+2
|
* make PO header handling less of a monster hackOswald Buddenhagen2010-03-311-44/+80
| | | | | | instead of doing string editing magic, parse the header properly. don't add a template file comment, either - it's not mandatory, after all.
* fix updating of X-Source-Language PO headerOswald Buddenhagen2010-03-311-0/+3
|
* interpret source language "en" as "POSIX" (more precisely: "none specified")Oswald Buddenhagen2010-03-311-0/+2
| | | | | | | we set it to that value when writing xliff, as the header is mandatory and no better value is possible. it seems unlikely that an unqualified "english" would be used if somebody meant to actually specify a source language, so this hack should be ok.
* optimization: get rid of QString::fromUtf16() usageOswald Buddenhagen2010-02-011-1/+1
| | | | | | | | | | | | QString::fromUtf16() is slow - it does a BOM check and optionally byte swapping, which is utterly pointless when converting internal data structures which are raw utf16 in host byte order anyway. so replace it with QString::fromRawData() (for short-lived strings) or QString(const QChar *, int) (otherwise) if possible. Reviewed-by: axis Reviewed-by: mariusSO Reviewed-by: Bill King
* don't falsely complain about mismatched codecfortrOswald Buddenhagen2010-01-271-0/+1
| | | | normalize the user input first
* unshare pro post-processing codeOswald Buddenhagen2010-01-273-189/+0
| | | | | lrelease needs only the TRANSLATIONS value anyway, so there is hardly anything to share for real
* do not sort the TS filesOswald Buddenhagen2010-01-271-2/+1
| | | | really no point in doing so ...