Index: ./kdebindings/ruby/qtruby/tools/rbuic/ruby/rbwriteinitialization.cpp
===================================================================
--- ./kdebindings/ruby/qtruby/tools/rbuic/ruby/rbwriteinitialization.cpp
+++ ./kdebindings/ruby/qtruby/tools/rbuic/ruby/rbwriteinitialization.cpp
@@ -471,7 +471,7 @@

     const QString widgetClassName = node->elementWidget()->attributeClass();

-    m_output << m_option.indent << "def " << "setupUi(" << m_mainWidget << ")\n";
+    m_output << m_option.indent << "def " << "setup_ui(" << m_mainWidget << ")\n";

     const QStringList connections = m_uic->databaseInfo()->connections();
     for (int i=0; i<connections.size(); ++i) {
@@ -510,7 +510,7 @@
     if (m_delayedActionInitialization.size())
         m_output << "\n" << m_delayedActionInitialization;

-    m_output << "\n" << m_option.indent << "retranslateUi(" << m_mainWidget << ")\n";
+    m_output << "\n" << m_option.indent << "retranslate_ui(" << m_mainWidget << ")\n";

     if (node->elementConnections())
         acceptConnections(node->elementConnections());
@@ -521,19 +521,15 @@
     if (m_option.autoConnection)
         m_output << "\n" << m_option.indent << "Qt::MetaObject.connectSlotsByName(" << m_mainWidget << ")\n";

-    m_output << m_option.indent << "end # setupUi\n\n";
+    m_output << m_option.indent << "end # setup_ui\n\n";

-    m_output << m_option.indent << "def " << "setup_ui(" << m_mainWidget << ")\n";
-    m_output << m_option.indent << "    setupUi(" << m_mainWidget << ")\n";
-    m_output << m_option.indent << "end\n\n";
+    m_output << m_option.indent <<"alias " << ":setupUi " << ":setup_ui\n";

-    m_output << m_option.indent << "def " << "retranslateUi(" << m_mainWidget << ")\n"
+    m_output << m_option.indent << "def " << "retranslate_ui(" << m_mainWidget << ")\n"
            << m_refreshInitialization
-           << m_option.indent << "end # retranslateUi\n\n";
+           << m_option.indent << "end # retranslate_ui\n\n";

-    m_output << m_option.indent << "def " << "retranslate_ui(" << m_mainWidget << ")\n";
-    m_output << m_option.indent << "    retranslateUi(" << m_mainWidget << ")\n";
-    m_output << m_option.indent << "end\n\n";
+    m_output << m_option.indent << "alias " << ":retranslateUi " << ":retranslate_ui\n";

     m_layoutChain.pop();
     m_widgetChain.pop();
