This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | better support for Qt translations | ||
---|---|---|---|
Product: | cnd | Reporter: | Alexey Vladykin <alexey_vladykin> |
Component: | Project | Assignee: | issues@cnd <issues> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Alexey Vladykin
2009-02-16 13:19:35 UTC
Context menu of *.ts file should include items: 1. Update this file 2. Update all translation files 3. Compile this file 4. Compile all translation files 1 and 2 invoke lupdate, 3 and 4 invoke lrelease. Also lrelease should be invoked during build by default. There should be an option in project options to turn it off. I have a temporary solution for step 2,4 where Netbeans must update *.ts files and also generate *.qm files: 1-First of all you must Add your translation to project: Add New : Qt Translation file. after that nbproject/qt_Debug.pro must include your new empty translation file in TRANSLATION+= 2-open "Makefile" under "Important Files" of project 3- goto build section where you see this: # build build: .build-post .build-pre: # Add your pre 'build' code here... .build-post: .build-impl # Add your post 'build' code here... 4- replace that sections with these ones: TEMPRO=.tmepqt.pro # build build: .build-post .build-pre: nbproject/qt-${CONF}.pro cat nbproject/qt-${CONF}.pro > ${TEMPRO} lupdate ${TEMPRO} lrelease ${TEMPRO} rm ${TEMPRO} # Add your pre 'build' code here... .build-post: .build-impl # Add your post 'build' code here... |