Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | kill TranslatorMessage::operator==() and qHash(TranslatorMessage) | Oswald Buddenhagen | 2009-11-06 | 5 | -29/+27 |
| | | | | preparation work ... | ||||
* | eliminate TranslatorMessagePtr from the Translator api | Oswald Buddenhagen | 2009-11-06 | 6 | -48/+51 |
| | |||||
* | improve ordered message insertion | Oswald Buddenhagen | 2009-11-06 | 1 | -1/+1 |
| | | | | | | | | | in a ts file, the top level categorization are the contexts, so it makes no sense to make messages adjoint by file when the context is different. a more clever algorithm which tries to order the entire contexts is conceivable. that would be advantageous for files which use multiple contexts subsequentially if each context appears in only one file. | ||||
* | eliminate Translator::contains() | Oswald Buddenhagen | 2009-11-06 | 3 | -11/+11 |
| | | | | replace the one use case with something more efficient | ||||
* | eliminate Translator::replace() | Oswald Buddenhagen | 2009-11-06 | 3 | -17/+3 |
| | |||||
* | use right method to record new messages | Oswald Buddenhagen | 2009-11-06 | 1 | -1/+1 |
| | | | | consistent with all other source parsers | ||||
* | do not consider plural source in comparisons | Oswald Buddenhagen | 2009-11-06 | 1 | -4/+0 |
| | | | | | | | | two messages with identical singular but different plural sources simply make no sense. this should be quite a bit faster, as it saves lots of QHash<QString,...> lookups. | ||||
* | remove unused TranslatorMessage::operator<() | Oswald Buddenhagen | 2009-11-06 | 2 | -12/+0 |
| | | | | it was once needed for QMap, but we don't use that any more | ||||
* | cut code dupe ... | Oswald Buddenhagen | 2009-11-06 | 1 | -12/+5 |
| | | | | ... with gotos :) | ||||
* | don't construct a new message for look-up purposes only | Oswald Buddenhagen | 2009-11-06 | 3 | -13/+5 |
| | |||||
* | add -markuntranslated option | Oswald Buddenhagen | 2009-11-04 | 3 | -16/+29 |
| | | | | maemo *really* want it, so pushing it in now ... | ||||
* | reshuffle command line parsing | Oswald Buddenhagen | 2009-11-04 | 1 | -16/+12 |
| | | | | | collect the files into a string list during the initial run instead of iterating the argument list twice. | ||||
* | construct ConversionData earlier | Oswald Buddenhagen | 2009-11-04 | 1 | -31/+21 |
| | | | | to avoid the insane number of function arguments in a few places | ||||
* | don't break on unterminated C comments | Oswald Buddenhagen | 2009-11-04 | 1 | -1/+1 |
| | |||||
* | introduce delayed resolution of aliases | Oswald Buddenhagen | 2009-11-04 | 1 | -16/+41 |
| | | | | | | | | this has two effects: - using-declarations which use forward-declared classes work without collecting the forward declarations, as the resolution happens at a place where the class definition must have been encountered already - it should be a bit faster | ||||
* | fix bogus "Class '<foo>' lacks Q_OBJECT macro" | Oswald Buddenhagen | 2009-11-04 | 1 | -3/+3 |
| | | | | | | the optimization not to look for parent definitions if we already knew that there would be none did not consider that we only know that the leaf node is missing, not any intermediate nodes. | ||||
* | namespaces can have parents, too | Oswald Buddenhagen | 2009-11-04 | 1 | -5/+10 |
| | |||||
* | Merge remote branch 'mainline/4.6' into 4.6 | Oswald Buddenhagen | 2009-11-02 | 1 | -0/+20 |
|\ | |||||
| * | Add a French translation to Assistant. Update the phrase book. | Benjamin Poulain | 2009-10-30 | 1 | -0/+20 |
| | | | | | | | | Reviewed-by: Pierre Rossi | ||||
* | | Make Linguist on Mac use the unified toolbar, like Assistant. | Daniel Molkentin | 2009-10-30 | 1 | -0/+1 |
|/ | | | | Reviewed-By: Oswald Buddenhagen | ||||
* | do not crash | Oswald Buddenhagen | 2009-10-29 | 1 | -5/+7 |
| | |||||
* | make magic comment parsing stricter | Oswald Buddenhagen | 2009-10-28 | 1 | -9/+9 |
| | | | | | | there must be a space after the //: and similar comments, otherwise harmless comments of the sort of //====== foo here ===== will be parsed as message ids, etc. | ||||
* | consider message id when comparing messages | Oswald Buddenhagen | 2009-10-22 | 1 | -2/+6 |
| | |||||
* | id-based: do not drop unfinished untranslated messages | Oswald Buddenhagen | 2009-10-22 | 1 | -1/+1 |
| | | | | otherwise the fallback to use the source string is rather pointless | ||||
* | id-based: use source strings instead of empty translations only for ↵ | Oswald Buddenhagen | 2009-10-22 | 1 | -3/+4 |
| | | | | unfinished messages | ||||
* | actually guess the target language from the file name | Oswald Buddenhagen | 2009-10-22 | 1 | -0/+2 |
| | | | | --help says it does, but it didn't really. | ||||
* | Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qt into 4.6 | Simon Hausmann | 2009-10-01 | 2 | -9/+8 |
|\ | |||||
| * | make -{source,target}-language actually override values from files | Oswald Buddenhagen | 2009-10-01 | 1 | -4/+4 |
| | | | | | | | | -help says it does, and it kinda makes sense | ||||
| * | make -help reflect reality | Oswald Buddenhagen | 2009-10-01 | 1 | -5/+4 |
| | | |||||
* | | fix ts and qm targets for shadow builds and builds with -prefix | Oswald Buddenhagen | 2009-10-01 | 1 | -7/+9 |
| | | |||||
* | | remove *_untranslated.ts | Oswald Buddenhagen | 2009-10-01 | 1 | -1/+0 |
| | | | | | | | | | | | | | | with the current scheme of running "make ts" only when doing a particular translation and checking in only the relevant file, these files are never updated. lconvert can generate an empty template from any translation anyway. | ||||
* | | Merge branch '4.5' into 4.6 | Thiago Macieira | 2009-09-30 | 1 | -4/+11 |
|\ \ | |/ | |||||
| * | Fix locale encoding in XLIFF files | Andy Shaw | 2009-09-30 | 1 | -4/+11 |
| | | | | | | | | | | | | xlf uses xx-YY notation instead of xx_YY Reviewed-by: ossi | ||||
* | | fix solaris build | Oswald Buddenhagen | 2009-09-29 | 1 | -1/+5 |
| | | | | | | | | "A class with a reference member must have a user-defined constructor." | ||||
* | | Merge branch 'origin/4.5' into 4.6 | Oswald Buddenhagen | 2009-09-25 | 1 | -10/+82 |
|\ \ | |/ | | | | | | | Conflicts: translations/qt_ru.ts | ||||
| * | Update Russian phrasebook | Ritt Konstantin | 2009-09-25 | 1 | -10/+82 |
| | | | | | | | | | | Merge-request: 1611 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | ||||
| * | Update license headers again. | Jason McDonald | 2009-09-08 | 83 | -332/+332 |
| | | | | | | | | Reviewed-by: Trust Me | ||||
* | | remove completely useless .qm install sub-target | Oswald Buddenhagen | 2009-09-25 | 1 | -3/+0 |
| | | | | | | | | qms are installed centrally from the top-level install target | ||||
* | | detect and eliminate forwarding headers | Oswald Buddenhagen | 2009-09-23 | 1 | -7/+20 |
| | | | | | | | | | | this will save quite some hash lookups (even if in empty hashes) and make the VisitRecorder bitmap smaller. | ||||
* | | reduce peak memory consumption | Oswald Buddenhagen | 2009-09-23 | 1 | -30/+70 |
| | | | | | | | | | | drop the parse results of files which are unlikely to be included (i.e., which are not headers). | ||||
* | | actually use the argument of Q_DECLARE_TR_FUNCTIONS | Oswald Buddenhagen | 2009-09-23 | 1 | -9/+59 |
| | | | | | | | | | | | | which means that one can set an arbitrary context. as a side effect, this caches the stringified context of Q_OBJECT-derived classes. | ||||
* | | namespaces *can* have tr() functions, after all | Oswald Buddenhagen | 2009-09-23 | 1 | -11/+8 |
| | | | | | | | | | | | | ... by virtue of the Q_DECLARE_TR_FUNCTIONS macro. so remove the artificial limitation to classes (which was mostly an optimization anyway). | ||||
* | | drastically improve lupdate's scalability | Oswald Buddenhagen | 2009-09-23 | 1 | -197/+280 |
| | | | | | | | | | | | | | | do not import all data from included files into the current file (which turned out to be extremely expensive for 3rdparty/webkit), but do hierarchical lookups on demand. this makes the lookups as such much slower, of course, but it still pays off. | ||||
* | | optimize/clarify function context stringification | Oswald Buddenhagen | 2009-09-23 | 1 | -5/+6 |
| | | |||||
* | | do not record class forward declarations | Oswald Buddenhagen | 2009-09-23 | 1 | -28/+27 |
| | | | | | | | | | | they don't create useful namespaces and don't hold flags, so it is pointless to clutter the namespace maps with them. | ||||
* | | remove more dead code | Oswald Buddenhagen | 2009-09-23 | 1 | -2/+1 |
| | | | | | | | | no need for parameter "unresolved" | ||||
* | | remove dead code | Oswald Buddenhagen | 2009-09-23 | 1 | -13/+2 |
| | | | | | | | | needsTrFunctions was never set any more | ||||
* | | move static objects out of function scope | Oswald Buddenhagen | 2009-09-23 | 1 | -6/+6 |
| | | | | | | | | | | cuts away a few thousand instructions. need to revisit this in case of making the parser a dynamic library. | ||||
* | | use a source char pointer instead of a string + index | Oswald Buddenhagen | 2009-09-23 | 1 | -13/+18 |
| | | |||||
* | | take advantage of knowing that qstrings are zero-terminated internally | Oswald Buddenhagen | 2009-09-23 | 1 | -6/+5 |
| | |