Localize keymap names in Keymap preferences

This commit is contained in:
Ingo Weinhold
2014-02-20 23:51:38 -05:00
committed by John Scipione
parent d072da2344
commit 374cf8c85d
5 changed files with 57 additions and 15 deletions
+4
View File
@@ -1,9 +1,13 @@
SubDir HAIKU_TOP src preferences keymap ;
UseHeaders [ FDirName $(HAIKU_COMMON_PLATFORM_OBJECT_DIR) data keymaps ] ;
SetSubDirSupportedPlatformsBeOSCompatible ;
UsePrivateHeaders interface shared ;
Includes [ FGristFiles KeymapWindow.cpp ] : <keymap-locale>KeymapNames.h ;
Preference Keymap :
KeyboardLayout.cpp
KeyboardLayoutView.cpp
+3 -1
View File
@@ -38,6 +38,7 @@
#include "KeyboardLayoutView.h"
#include "KeymapApplication.h"
#include "KeymapListItem.h"
#include "KeymapNames.h"
#undef B_TRANSLATION_CONTEXT
@@ -897,7 +898,8 @@ KeymapWindow::_FillSystemMaps()
if (directory.SetTo(path.Path()) == B_OK) {
while (directory.GetNextRef(&ref) == B_OK) {
fSystemListView->AddItem(new KeymapListItem(ref));
fSystemListView->AddItem(
new KeymapListItem(ref, B_TRANSLATE_NOCOLLECT(ref.name)));
}
}