Sentry: Customize or translate the user feedback form title

Created on 18 Oct 2018  路  8Comments  路  Source: getsentry/sentry

I'd like to have the possibility to edit the title of the user feedback form (subtitle and inputs labels are in french but the title in english).

capture_d_ecran_2018-10-18_a_14 09 51

The sentence to update or localize : It looks like we're having some internal issues.

This request is linked to the closed issue #8166

User Feedback

All 8 comments

I have the same problem. Changing title in Raven.showReportDialog according to the documentation isn't working.

Raven.showReportDialog({
            eventId: '{{ Sentry::getLastEventID() }}',
            // use the public DSN (dont include your secret!)
            dsn: 'https://[email protected]/1234',
            title: 'Il semblerait qu\'un probl猫me soit survenu',
            user: {
                'name': 'Jean Martin',
                'email': '[email protected]',
            },
        });

Closing this as I'm told the newer @sentry/browser correctly supports this now.

I have the same problem.

1) Localization
The title and the branding is in English, while the rest of the text is localized (German in my case).

2) Customizing feedback texts
Adjusting the titles or labels like proposed in the documentation is not working.
Setting the input of the name & email field with the user object is working though.

I'm using Sentry version 9.0.0 (self-hosted).

Edit:
I'm new to Django, but this is what I found out so far.
Title and branding have html-tags inside their {% trans}... maybe it has something to do with that.

1) Localization
In File sentry/src/sentry/locale/de/LC_MESSAGES/django.po
Line 962

#: templates/sentry/error-page-embed.html:258
msgid "It looks like we're having <span>some internal</span> issues."
msgstr ""

Line 1008

#: templates/sentry/error-page-embed.html:282
msgid "Crash reports powered by <a href=\\"
msgstr "Absturzberichte von <a href=\\"

Relevant lines in sentry/src/sentry/templates/sentry/error-page-embed.html

<h2>{% blocktrans %}
It looks like we're having <span>some internal</span> issues.
{% endblocktrans %}</h2>

[...]

{% trans "Crash reports powered by <a href=\"https://sentry.io\">Sentry</a>" %}

9.0 does not support custom localization of the dialog.

Alright. Didn't know the documentation is not directly for the latest release!

I see things are better in master, but some translations are still missing in locale/de/LC_MESSAGES/django.po.

If no custom parameters are passed to showReportDialog, then the parts with missing translations remain in English, while the available parts will be localized?
Is contributing translations as easy as it looks?

For now I hard-coded my text in the error-page-embed.html.

9.0 does not support custom localization of the dialog.

@dcramer was it removed or rather never implemented? If removed, why? If not implemented, when will it be?

Did you look at the 9.1 release?

Did you look at the 9.1 release?

Being honest, I had no idea it was released. Like, the website literally says "Unreleased" in the Changelog. Thanks for the heads up, I'll look into it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

codekitchen picture codekitchen  路  3Comments

dcramer picture dcramer  路  4Comments

dkarlovi picture dkarlovi  路  4Comments

fatagun picture fatagun  路  4Comments

phiresky picture phiresky  路  3Comments