Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always translate Processing debug messages tab title #2808

Merged
merged 1 commit into from
Feb 18, 2016

Conversation

m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented Feb 18, 2016

Fix #14287 (Redmine)

@volaya does it make sense to you to translate the log tab title? Other tab titles there are translated as well.

@m-kuhn m-kuhn added this to the 2.14 milestone Feb 18, 2016
@@ -31,6 +31,7 @@
import datetime
from processing.tools.system import userFolder
from processing.core.ProcessingConfig import ProcessingConfig
from processing.core import Processing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduces circular dependency. ProcessingLog imports Processing and in same time Processing imports ProcessingLog. IMHO it is better to create method in the ProcessingLog class for i18n support, like in we already have in ProcessingConfig

    def tr(self, string, context=''):
        if context == '':
            context = 'ProcessingLog'
        return QCoreApplication.translate(context, string)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review Alex

alexbruy added a commit that referenced this pull request Feb 18, 2016
[processing] always translate debug messages tab title (fix #14287)
@alexbruy alexbruy merged commit f36214c into qgis:master Feb 18, 2016
@qgib qgib mentioned this pull request May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants