Bug 905674 - ABRT changes locale to English after a question about big upload
Summary: ABRT changes locale to English after a question about big upload
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Denys Vlasenko
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-29 22:31 UTC by Miro Hrončok
Modified: 2013-10-22 09:24 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-10-22 09:24:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot comparing ABRT when it happens and when not. (271.99 KB, image/png)
2013-01-29 22:31 UTC, Miro Hrončok
no flags Details

Description Miro Hrončok 2013-01-29 22:31:05 UTC
Created attachment 690067 [details]
Screenshot comparing ABRT when it happens and when not.

Description of problem:
When ABRT asks "You are going to upload 19 megabytes. Continue? 'YES'" It changes language to English.

Version-Release number of selected component (if applicable):
2.0.20-1.fc18

How reproducible:
Don't know yet, will inform you later.

Steps to Reproduce:
0. Set locales to Czech (or maybe any other language)
1. Simulate a crash wit big upload. (Use # as an example)
2. Chcek if the language chnaged to English
  
Actual results:
It changes to English.

Expected results:
It stays in Czech.

Comment 1 Jiri Moskovcak 2013-01-30 08:23:57 UTC
Actually the non-translated log messages is what we want, but the dialog asking that question should be in the preferred locale. To make that dialog appear again, you'll have to edit file $HOME/.config/abrt/settings/report-gtk.conf

and change line:

abrt_analyze_smart_ask_upload_coredump = "no"

to:

abrt_analyze_smart_ask_upload_coredump = "yes"

Comment 2 Miro Hrončok 2013-01-30 12:37:20 UTC
(In reply to comment #1)
> Actually the non-translated log messages is what we want.
So why it is sometimes translated and sometimes in English?

Comment 3 Jiri Moskovcak 2013-01-30 13:25:34 UTC
The untranslated messages should not be visible in the UI, but the current design doesn't give us any other choice. Can you please check the message in the dialog?

Comment 4 Miro Hrončok 2013-01-30 16:07:22 UTC
(In reply to comment #3)
> The untranslated messages should not be visible in the UI, but the current
> design doesn't give us any other choice.
So how it is possible, that it is *translated in one case and untranslated in another*? Have you seen the screenshot comparing both cases? Because it seems you don't get my point here.

> Can you please check the message in the dialog?
It's English.

Comment 5 Jiri Moskovcak 2013-01-30 16:57:14 UTC
I was talking about the sentence "You're going to upload..." that is expected to be in English in the log, but not in the dialog. The rest of the messages e.g: "Uploading" VS "Odeslano" is probably a bug. Can you reproduce it?

Comment 6 Denys Vlasenko 2013-09-09 11:20:45 UTC
(In reply to Miro Hrončok from comment #4)
> (In reply to comment #3)
> > The untranslated messages should not be visible in the UI, but the current
> > design doesn't give us any other choice.
> So how it is possible, that it is *translated in one case and untranslated
> in another*? Have you seen the screenshot comparing both cases?

Yes, it looks puzzling.

For what it worth, the message comes from this code in abrt-retrace-client.c

    if (size_mb > 8) /* 8 MB - should be configurable */
    {
        char *question = xasprintf(_("You are going to upload %d megabytes. "
                                     "Continue?"), size_mb);
        
        int response = ask_yes_no(question);
        free(question);
        
        if (!response)
        {
            set_xfunc_error_retval(EXIT_CANCEL_BY_USER);
            error_msg_and_die(_("Cancelled by user"));
        }
    }

No locale manipulations here...

Comment 7 Miro Hrončok 2013-09-09 12:04:34 UTC
Doesn't seem that the problem is intentional :)

Comment 8 Denys Vlasenko 2013-09-09 12:57:03 UTC
So, is it reproducible on your machine? I can't see how it can be possibly happening... :(

Comment 9 Miro Hrončok 2013-09-09 16:38:50 UTC
Right now, I have nothing to report from ABRT. Is there a way to create > 8 MB report manually?

Comment 10 Miro Hrončok 2013-10-22 09:24:16 UTC
Ok, this never happened to me on F19. Closing this and I will reopen if this will ever happen again.


Note You need to log in before you can comment on or make changes to this bug.