Commit c04b208030fde7abdf8e875649e024e04d3a3dcb

Authored by ksamak
1 parent e9140806

add_gettext_translation_support_to_tracking

plugins/mousepoll/src/accessibilitywatcher.cpp
... ... @@ -238,6 +238,10 @@ bool AccessibilityWatcher::app_specific_filter(const FocusInfo& focus, const Ats
238 238 if (focus.application == "soffice" && focus.role == "paragraph") { // LO-calc: avoid spam event from main edit line
239 239 auto parent = atspi_accessible_get_parent(event->source, NULL);
240 240 std::string parent_label = atspi_accessible_get_name(parent, NULL);
  241 + // tell which application it is, then get the translation from it.
  242 + //bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
  243 + //bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
  244 + //textdomain (GETTEXT_PACKAGE);
241 245 if (parent_label == "Input line" ||
242 246 parent_label == _("Input line")) {
243 247 return true;
... ...