Opened 14 years ago

Last modified 20 months ago

#7289 assigned enhancement

Attribute labels not localized

Reported by: humdinger Owned by: nobody
Priority: normal Milestone: R1
Component: Applications/People Version: R1/Development
Keywords: localization Cc:
Blocked By: Blocking: #15518, #18110
Platform: All

Description

This is hrev40661.

The labels of the attributes shown in the People window are not localized. I guess because the attributes' descriptions are used, which are not localized either. Which may be the actual problem to solve underneath, because that crops up as well with displaying email attributes in Tracker, for instance.

Attachments (6)

0014-Tracker-Add-attr-public_name-localization.patch (8.2 KB ) - added by mt 3 years ago.
FileTypes - People.png (97.5 KB ) - added by User_Z 20 months ago.
FileTypes-Fax.png (100.8 KB ) - added by User_Z 20 months ago.
FileTypes-Fax-uk.png (100.8 KB ) - added by User_Z 20 months ago.
FileTypes-People-change.png (27.0 KB ) - added by User_Z 20 months ago.
People-uk.png (24.4 KB ) - added by User_Z 20 months ago.

Download all attachments as: .zip

Change History (17)

comment:1 by deejam, 14 years ago

I consider this to be a bug, not an enhancement.

comment:2 by axeld, 8 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:3 by humdinger, 5 years ago

Blocking: 15518 added

comment:4 by diver, 4 years ago

Keywords: localization added

comment:5 by mt, 3 years ago

I think localizing TrackerInitialState.cpp may fix this ticket.

I wrote a patch, but there is a problem: every reboot attr:public_name is reset, so user can't edit attr:public_name directly via filetypes etc.

Any ideas?

comment:6 by humdinger, 2 years ago

Blocking: 18110 added

comment:7 by User_Z, 20 months ago

Hello.

It turns out a strange thing.

If this is implemented for "Name", then why can't it be implemented for the rest of the labels? For example, like this - see the attached file "PeopleApp.cpp" (of course, I'm a so-so programmer, but nonetheless).

It turns out that the program takes the values for the inscriptions from the MIME types of the FileTypes program. If you change the name of the type to Ukrainian there, then the inscription in the "People" window will also change. (See screenshots)

All files placed in Attachments.

by User_Z, 20 months ago

Attachment: FileTypes - People.png added

by User_Z, 20 months ago

Attachment: FileTypes-Fax.png added

by User_Z, 20 months ago

Attachment: FileTypes-Fax-uk.png added

by User_Z, 20 months ago

Attachment: FileTypes-People-change.png added

comment:8 by waddlesplash, 20 months ago

This will not have the attributes translated in Tracker views, though.

The above proposed change by mt is probably closer to the correct solution and will work everywhere. However, as he noted, it appears to not work in a variety of circumstances. So more investigation is needed.

comment:9 by User_Z, 20 months ago

Hello.

With help from active community members, I was able to recompile the People program with the changes I made to the "PeopleApp.cpp" file.

Everything turned out and works. (see screenshot for confirmation) Not only for me, but also in the Russian locale too. Checked.

by User_Z, 20 months ago

Attachment: People-uk.png added

comment:10 by User_Z, 20 months ago

"This will not have the attributes translated in Tracker views, though."

So we need to think further. And most importantly, do something. 12 years since the ticket has been opened!

comment:11 by nephele, 20 months ago

I don't think when tickets were opened matters that much :)

Note: See TracTickets for help on using tickets.