summaryrefslogtreecommitdiffstats
path: root/tools/linguist/shared/qm.cpp
Commit message (Collapse)AuthorAgeFilesLines
* support for id-based translationsOswald Buddenhagen2009-07-061-10/+42
| | | | | | | | | | | unlike in an earlier attempt, ids are textual this time. the developer is able to provide a template for the string. when lupdate and lrelease are integrated into the build process, this makes it possible to avoid a round-trip to a dedicated string designer during the early development stage. Requirement-id: QT-435
* support editing of length variantsOswald Buddenhagen2009-06-291-8/+2
| | | | | | | | | this is not complete, e.g. full text search does not discern which variant contains the hit, the integration with phrases&guesses is non-existing, etc. the form preview will do funny things as long as the widgets don't support the multi-variant strings.
* mark plural messages as such in the qm readerOswald Buddenhagen2009-06-231-0/+18
| | | | | | this contains both a "clean" code path based on translation count and a fallback path based on looking for "%n" (for languages with only one form).
* add -input-codec option for qm readerOswald Buddenhagen2009-06-231-3/+2
| | | | | basing the input codec on the locale was broken by design and didn't really work anyway. so adding this option really is a bugfix, kind of.
* Update license headers as requested by the marketing department.Jason McDonald2009-06-161-2/+2
| | | | Reviewed-by: Trust Me
* duplicate message handling improvementsOswald Buddenhagen2009-04-021-1/+0
| | | | | | | | | | | | | | | - lrelease will not abort on duplicates any more - lconvert now gets noisy, but only if messages within one file are duplicated (combining files with identical messages is ok) - lupdate stays silent, but will eliminate duplicates again - consolidate handling of dual-encoded and duplicate messages - for performance - instead of the format loader, now the app is responsible for calling the duplicate handler. this allows for the fine-grained control necessary for optimal performance. Task-number: 247738
* static is even better than constOswald Buddenhagen2009-03-271-4/+4
|
* properly deal with messages which appear in multiple encodingsOswald Buddenhagen2009-03-271-133/+158
| | | | | | | | | | | | | in ts 1.1 and qm files, messages appear in their native encoding. that means that a message can appear multiple times - once in utf8 and once in the codecForTr. however, in ts 2.0 files, everything is utf8 and messages can have a utf8 flag for the later transformation into qm. unfortunately, there was no flag to mark that the message is needed in *both* encodings, and the respective case was completely ignored when reading ts 1.1 and qm files (causing error messages). Task-number: 249022 AutoTest: 322690
* micro-optimization: don't evaluate same condition twiceOswald Buddenhagen2009-03-271-2/+2
|
* actually ignore untranslated messages as it claimsOswald Buddenhagen2009-03-271-2/+4
|
* Long live Qt 4.5!Lars Knoll2009-03-231-0/+717