summaryrefslogtreecommitdiffstats
path: root/tools/linguist
Commit message (Collapse)AuthorAgeFilesLines
* fix translations from some header files being omittedOswald Buddenhagen2010-06-071-0/+1
| | | | | | | | | add the containing directories of all files specified on the command line to the list of project roots. otherwise, the strings from headers which are included before being encountered on the command line will be omitted. Task-number: QTBUG-10345
* propagate code change back to .g sourceOswald Buddenhagen2010-06-031-1/+1
| | | | missed that in 60acaf5e
* create magic comment messages in "finished" stateOswald Buddenhagen2010-04-151-2/+7
| | | | | there is really no point in marking them "unfinished". later file rewrites would reset the state anyway.
* make QT_TR_NOOP work in static initializersOswald Buddenhagen2010-04-151-6/+47
| | | | | | | | | do that by ignoring all equal signs and everything between and including brackets. this makes static initializers look effectively like function definitions, thus creating proper context. Task-number: QTBUG-9276
* make HashString and HashStringList objects smallerOswald Buddenhagen2010-04-151-13/+10
| | | | | | | | | | qHash(QString) has only 28 bits, so we can use the upper bits for flagging whether the hash is valid. size effect: LP32: align(4, 4 + 4 + 1) = 12 vs. align(4, 4 + 4) = 8 LP64: align(8, 8 + 8 + 1) = 24 vs. align(8, 8 + 8) = 16 P64: align(8, 8 + 4 + 1) = 16 vs. align(8, 8 + 4) = 16
* remove pointless manual assignments from token type enumOswald Buddenhagen2010-04-151-6/+6
| | | | | making the range discontiguous just makes the switch() jump table bigger or not applicable at all.
* no need for CONFIG += ordered hereOswald Buddenhagen2010-03-301-2/+0
|
* isalpha() is unspecified for values outside uchar and EOFOswald Buddenhagen2010-03-111-1/+1
| | | | Task-number: QTBUG-8907
* fix "using namespace" recursion crashOswald Buddenhagen2010-03-051-8/+20
| | | | Task-number: QTBUG-8360
* update russian translations and phrasebookRitt Konstantin2010-03-021-0/+40
| | | | | Merge-request: 485 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* now really fix the message editor for dark backgroundsOswald Buddenhagen2010-02-113-9/+2
| | | | | | | | of course, the palette was also set to explicitly white ... also remove the now obsolete transbox image. Task-number: QTBUG-7778
* drastically improve load time of TS filesOswald Buddenhagen2010-02-082-18/+32
| | | | | | | | it isn't such a good idea to insert rows one by one into the model. so instead batch the "announcement" of new data. unloading single models is still slow, but that's a corner use case, so don't bother fixing it now, especially as it is harder to do it.
* don't use QKeySequence::mnemonic() after allOswald Buddenhagen2010-02-051-6/+23
| | | | | it wastes cpu cycles, and it started flooding the console with irrelevant messages.
* don't use stylesheet for just making labels boldOswald Buddenhagen2010-02-052-4/+6
|
* remove the rounded extra frame around the main message editorOswald Buddenhagen2010-02-051-4/+0
| | | | | | | | for one, it just added visual noise. second, it did not respect the color scheme, which made it unusable with light-on-dark colors. Task-number: QTBUG-7778
* Added Czech translations.Pavel Fric2010-02-021-0/+1
| | | | | Merge-request: 440 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* 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-272-13/+14
| | | | normalize the user input first
* add directories with sources to list of project rootsOswald Buddenhagen2010-01-271-3/+12
| | | | | | | | if the pro file for the translations lives in a sibling tree of the actual source tree, messages from included headers wouldn't have been collected, as they were not considered part of the project. Task-number: QTBUG-7495
* add -codecfortr optionOswald Buddenhagen2010-01-271-2/+17
| | | | this has always been kind of an omission ...
* sanitize lupdate's behavior regarding SUBDIRS projectsOswald Buddenhagen2010-01-271-95/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | previously, the semantics of nesting projects were pretty bizarre: the list of TS files grew ever as the subdirs were visited. the source files otoh were cleared for every project. this meant that some TS files were updated over and over again, each time with different data. this is obviously total nonsense, so there is no compatibilty to keep. so here come the new semantics: - each project is scanned separately. it has separate include paths and may override the inherited CODECFORSRC. - the messages from all sub-projects are merged - if a sub-project has a TRANSLATIONS entry, it is "detached" from its parent project, thus starting an own merged translator. it is also possible to name an empty set of TS files to simply exclude the sub-project. - CODECFORTR can be specified in each project with TRANSLATIONS - if TS files are specified on the command line, they override TRANSLATIONS from the top level project and stop processing of detached projects alltogether. if multiple top-level projects are specified, they are all merged. this is somewhat slower, as now includes are re-scanned per project, while previously all sources were simply accumulated and scanned as one project. this can be fixed retroactively if needed.
* unshare pro post-processing codeOswald Buddenhagen2010-01-275-216/+73
| | | | | lrelease needs only the TRANSLATIONS value anyway, so there is hardly anything to share for real
* complain if both sources and projects are given on the cmdlineOswald Buddenhagen2010-01-271-0/+4
|
* still complain if only ts files where specified on the cmdlineOswald Buddenhagen2010-01-271-7/+7
|
* do not sort the TS filesOswald Buddenhagen2010-01-272-3/+1
| | | | really no point in doing so ...
* fix bogus warning messageOswald Buddenhagen2010-01-271-4/+1
|
* Merge remote branch 'mainline/4.6' into 4.6Oswald Buddenhagen2010-01-1385-86/+86
|\ | | | | | | | | Conflicts: tests/auto/linguist/lupdate/testlupdate.cpp
| * Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into ↵Qt Continuous Integration System2010-01-0785-86/+86
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4.6-integration * '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1: QIODevice: Fix readAll() Temporary hackiesh solution to prevent BOM in the xml data. Fixed qxmlstream autotest when using shadow builds. Attempt at readding the capital P headers for Phonon Remove special Phonon processing from syncqt. Use the lowercase/shortname.h headers for Phonon includes Fixes a crash when setting focus on a widget with a focus proxy. Update copyright year to 2010 doc: Clarified activeSubControls and subControls. Remove warning "statement with no effect" doc: Clarified that .lnk files are System files on Windows.
| | * Update copyright year to 2010Jason McDonald2010-01-0685-86/+86
| | | | | | | | | | | | Reviewed-by: Trust Me
* | | QFile cannot deal with crlf-translated stdio, so use binary modeOswald Buddenhagen2010-01-121-0/+12
| | | | | | | | | | | | | | | | | | | | | of course, this will break if somebody actually pipes in windows files. oh, well. Suggested-by: joao
* | | don't complain about unresolved base when the reference is absoluteOswald Buddenhagen2010-01-071-1/+1
| | | | | | | | | | | | Task-number: QTBUG-6072
* | | fix sametext and number heuristicsOswald Buddenhagen2010-01-061-45/+46
| | | | | | | | | | | | | | | | | | | | | 92e9a48 ("eliminate Translator::replace()") eliminated the correctness as well. whoops. this code should be more efficient as well ...
* | | fix number heuristics, part 1Oswald Buddenhagen2010-01-061-2/+2
| | | | | | | | | | | | Reviewed-by: TrustMe
* | | remove dead codeOswald Buddenhagen2010-01-061-8/+0
|/ /
* | do not accumulate messagesOswald Buddenhagen2010-01-041-2/+3
|/ | | | Task-number: QTBUG-6588
* fix build with namespaced qtOswald Buddenhagen2009-12-161-0/+2
|
* Fix precision loss warning (qreal vs. float on Windows)Alessandro Portale2009-12-151-1/+1
| | | | | | Reviewed-by: Oswald Buddenhagen modified: tools/linguist/linguist/messageeditor.h
* Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6Jan-Arve Sæther2009-12-037-32/+76
|\
| * fix crash on closing all files under certain circumstancesOswald Buddenhagen2009-11-263-11/+11
| | | | | | | | | | | | | | after all, it is no good idea to announce the removal of all columns just to let the view headers adjust themselves - it also makes the views emit currentItemChanged() which has some undesirable side effects. so don't do it an fix the header manually.
| * ignore Alt+Space acelerators - useless and too many false positivesOswald Buddenhagen2009-11-261-2/+13
| | | | | | | | Task-number: QTBUG-4429
| * offer only possible countries for each languageOswald Buddenhagen2009-11-252-8/+27
| | | | | | | | | | otherwise qlocale will silently clobber the user's (most probably bogus) choice anyway.
| * make qph use language attributesOswald Buddenhagen2009-11-251-5/+18
| |
| * the definition needs xml escaping, tooOswald Buddenhagen2009-11-251-1/+1
| |
| * don't write context into <definition> fieldOswald Buddenhagen2009-11-251-3/+2
| | | | | | | | | | | | there is really no point in doing so Reviewed-by: hjk
| * qph: don't clobber <definition> fieldsOswald Buddenhagen2009-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | the translator comment field is not written out, so reading the definition into it is basically discarding it as far as any roundtrips which arrive at qph again are concerned. the message's disambiguation seems most suitable for the task. Reviewed-by: hjk Task-number: QTBUG-4498
| * fix class/struct mismatch in the bootstrap magicOswald Buddenhagen2009-11-251-2/+4
| | | | | | | | | | | | qlocale.h includes qobjectdefs.h which forward-declares it as a class. Reviewed-by: aportale
* | Make lrelease link again with the win32-icc and win32-g++ mkspecsJan-Arve Sæther2009-12-031-1/+1
|/ | | | Reviewed-by: Thierry
* Merge remote branch 'mainline/4.6' into 4.6Oswald Buddenhagen2009-11-251-0/+36
|\
| * updates french phrasebookPierre Rossi2009-11-231-0/+36
| |
* | Fix build on AIX: all of the .a file is linked into the program.Oswald Buddenhagen2009-11-241-0/+7
|/ | | | | | | | | The qlibraryinfo.cpp is only needed by lrelease. It has a hack for qmake_libraryInfoFile(), which doesn't work on AIX. So don't put qlibraryinfo.cpp in libbootstrap.a, but instead build directly for lrelease. Reviewed-by: thiago