[haiku-commits] r40933 - haiku/trunk/headers/os/locale

Author: kirilla
Date: 2011-03-13 20:48:20 +0100 (Sun, 13 Mar 2011)
New Revision: 40933
Changeset: http://dev.haiku-os.org/changeset/40933

Modified:
   haiku/trunk/headers/os/locale/Catalog.h
Log:
Make B_TRANSLATE_APP_NAME aware of 
BLocaleRoster::Default()->IsFilesystemTranslationPreferred().

Modified: haiku/trunk/headers/os/locale/Catalog.h
===================================================================
--- haiku/trunk/headers/os/locale/Catalog.h     2011-03-13 19:28:24 UTC (rev 
40932)
+++ haiku/trunk/headers/os/locale/Catalog.h     2011-03-13 19:48:20 UTC (rev 
40933)
@@ -102,8 +102,9 @@
 
 #undef B_TRANSLATE_APP_NAME
 #define B_TRANSLATE_APP_NAME(string) \
-       BLocaleRoster::Default()->GetCatalog()->GetString((string), \
-               B_TRANSLATE_APP_NAME_CONTEXT)
+       BLocaleRoster::Default()->IsFilesystemTranslationPreferred() \
+       ? BLocaleRoster::Default()->GetCatalog()->GetString((string), \
+               B_TRANSLATE_APP_NAME_CONTEXT) : (string)
 
 #undef B_TRANSLATE_WITH_CONTEXT
 #define B_TRANSLATE_WITH_CONTEXT(string, context) \


Other related posts: