1
0

api_localesi.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #include <precomp.h>
  2. //<?#include "<class data="implementationheader"/>"
  3. #include "api_localesi.h"
  4. //?>
  5. #include <api/locales/localesmgr.h>
  6. #include <api/wnd/keyboard.h>
  7. api_locales *localesApi = NULL;
  8. api_localesI::api_localesI() {
  9. LocalesManager::init();
  10. }
  11. api_localesI::~api_localesI() {
  12. LocalesManager::deinit();
  13. }
  14. const wchar_t *api_localesI::locales_getTranslation(const wchar_t *str)
  15. {
  16. return LocalesManager::getTranslation(str);
  17. }
  18. void api_localesI::locales_addTranslation(const wchar_t *from, const wchar_t *to) {
  19. LocalesManager::addTranslation(from, to);
  20. }
  21. const wchar_t *api_localesI::locales_getBindFromAction(int action)
  22. {
  23. return LocalesManager::getBindFromAction(action);
  24. }
  25. /* // TODO: benski> maybe hook up to Winamp 5.5's new lang pack stuff
  26. int api_localesI::locales_getNumEntries()
  27. {
  28. return LocalesManager::getNumLocales();
  29. }
  30. const wchar_t *api_localesI::locales_enumEntry(int n)
  31. {
  32. return LocalesManager::enumLoadableLocales(n);
  33. }*/
  34. void api_localesI::locales_registerAcceleratorSection(const wchar_t *name, ifc_window *wnd, int global)
  35. {
  36. Keyboard::registerAcceleratorSection(name, wnd, global);
  37. }