[haiku-bugs] Re: [Haiku] #5743: Texts in resource file is not localized in Printers preflet

  • From: "Karvjorm" <trac@xxxxxxxxxxxx>
  • Date: Mon, 24 May 2010 15:05:25 -0000

#5743: Texts in resource file is not localized in Printers preflet
---------------------------------+------------------------------------------
 Reporter:  Karvjorm             |       Owner:  laplace  
     Type:  bug                  |      Status:  new      
 Priority:  normal               |   Milestone:  R1       
Component:  Preferences/Print    |     Version:  R1/alpha1
 Keywords:  Preview Save as PDF  |    Platform:  All      
Blockedby:                       |       Patch:  0        
 Blocking:                       |  
---------------------------------+------------------------------------------

Comment(by Karvjorm):

 Replying to [comment:5 laplace]:
 > Replying to [comment:4 Karvjorm]:[[BR]]
 >
 > I don't want to demotivate you, but have you tested the patch at all?

 Yes, but I'm not able to do it correct, because application is opened only
 partly. When Printers application is generated to
 gererated/objects/.../preferences/print directory, I have linked lib
 directory with the present generated libraries to a subdirectory for the
 print directory.

 Then I call ./Printers in command line window and Printers open in deskbar
 below Tracker and Terminal, but without open window (submenu shows only
 "no window" and "quit application" options).

 Problem is, that I have not succeeded to open any other localized
 application (except src/bin/filepanel) from the version control tree.  I
 do not know, how I should do it.

 >
 > The text you're trying to translate is stored in file attributes, so
 changing the locale later won't update the text, resulting in an
 inconsistent state. I would rather leave the text untranslated in English
 than to use that broken workaround.
 >
 > Line 100, 405 & 407: I have tried to explain why that won't work in
 [comment:1].[[BR]]
 > Line 110: at the moment the "connection" text is not displayed anywhere,
 and won't be updated when the locale changes as explained above.[[BR]]
 > Line 190: "Print" is the name of the printer driver add-on folder and
 must not to be translated.
 >
 > I would be very grateful if someone would come to a proper solution for
 the translation problems.
 >

 Then about this "Preview" issue: when I open preferences/print from
 deskbar, I still will see "Preview" (two times) there. From the source
 code I can find only those "Preview" texts and they should be localized, I
 think. If some attribute value (?) is shown there in the view window, then
 it should be localized, or some other solution should be used there. When
 comparing strings B_TRANSLATE macro should return the same localized
 string that is in attribute and the code should then work. That is my
 logic, but it is obviously wrong?

 > BTW if you want to contribute more the printing related issues, for
 example have a look a ticket #4178.
 OK, I will check that. Thanks.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5743#comment:7>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: