CVS commit by livne: Fix for RTL mode. M +7 -4 plugin_rellinks.cpp 1.32 --- kdeaddons/konq-plugins/rellinks/plugin_rellinks.cpp #1.31:1.32 @@ -22,4 +22,5 @@ // Qt includes +#include #include @@ -101,14 +102,16 @@ RelLinksPlugin::RelLinksPlugin(QObject * kaction_map["up"]->setWhatsThis( i18n("

This link references the immediate parent of the current document.

") ); - kaction_map["begin"] = new KAction( i18n("&First"), "2leftarrow", KShortcut("Ctrl+Alt+F"), this, SLOT(goFirst()), actionCollection(), "rellinks_first" ); + bool isRTL = QApplication::reverseLayout(); + + kaction_map["begin"] = new KAction( i18n("&First"), isRTL ? "2rightarrow" : "2leftarrow", KShortcut("Ctrl+Alt+F"), this, SLOT(goFirst()), actionCollection(), "rellinks_first" ); kaction_map["begin"]->setWhatsThis( i18n("

This link type tells search engines which document is considered by the author to be the starting point of the collection.

") ); - kaction_map["prev"] = new KAction( i18n("&Previous"), "1leftarrow", KShortcut("Ctrl+Alt+P"), this, SLOT(goPrevious()), actionCollection(), "rellinks_previous" ); + kaction_map["prev"] = new KAction( i18n("&Previous"), isRTL ? "1rightarrow" : "1leftarrow", KShortcut("Ctrl+Alt+P"), this, SLOT(goPrevious()), actionCollection(), "rellinks_previous" ); kaction_map["prev"]->setWhatsThis( i18n("

This link references the previous document in an ordered series of documents.

") ); - kaction_map["next"] = new KAction( i18n("&Next"), "1rightarrow", KShortcut("Ctrl+Alt+N"), this, SLOT(goNext()), actionCollection(), "rellinks_next" ); + kaction_map["next"] = new KAction( i18n("&Next"), isRTL ? "1leftarrow" : "1rightarrow", KShortcut("Ctrl+Alt+N"), this, SLOT(goNext()), actionCollection(), "rellinks_next" ); kaction_map["next"]->setWhatsThis( i18n("

This link references the next document in an ordered series of documents.

") ); - kaction_map["last"] = new KAction( i18n("&Last"), "2rightarrow", KShortcut("Ctrl+Alt+L"), this, SLOT(goLast()), actionCollection(), "rellinks_last" ); + kaction_map["last"] = new KAction( i18n("&Last"), isRTL ? "2leftarrow" : "2rightarrow", KShortcut("Ctrl+Alt+L"), this, SLOT(goLast()), actionCollection(), "rellinks_last" ); kaction_map["last"]->setWhatsThis( i18n("

This link references the end of a sequence of documents.

") );