[haiku-commits] r38120 - haiku/trunk/src/preferences/filetypes

  • From: korli@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 15 Aug 2010 17:30:42 +0200 (CEST)

Author: korli
Date: 2010-08-15 17:30:42 +0200 (Sun, 15 Aug 2010)
New Revision: 38120
Changeset: http://dev.haiku-os.org/changeset/38120
Ticket: http://dev.haiku-os.org/ticket/6450

Modified:
   haiku/trunk/src/preferences/filetypes/ApplicationTypeWindow.cpp
Log:
Fixed #6450. "application type" string is not translated.


Modified: haiku/trunk/src/preferences/filetypes/ApplicationTypeWindow.cpp
===================================================================
--- haiku/trunk/src/preferences/filetypes/ApplicationTypeWindow.cpp     
2010-08-15 13:24:41 UTC (rev 38119)
+++ haiku/trunk/src/preferences/filetypes/ApplicationTypeWindow.cpp     
2010-08-15 15:30:42 UTC (rev 38120)
@@ -459,8 +459,8 @@
        if (entry.GetName(name) != B_OK)
                strcpy(name, "\"-\"");
 
-       BString title(name);
-       title.Append(" application type");
+       BString title = B_TRANSLATE("%1 application type");
+       title.ReplaceFirst("%1", name);
        return title;
 }
 


Other related posts:

  • » [haiku-commits] r38120 - haiku/trunk/src/preferences/filetypes - korli