Bug 74360 - Kopete: list of words to auto-replace mistranslated
Summary: Kopete: list of words to auto-replace mistranslated
Status: RESOLVED FIXED
Alias: None
Product: i18n
Classification: Translations
Component: es (show other bugs)
Version: 3.2
Platform: Compiled Sources All
: NOR minor
Target Milestone: ---
Assignee: V
URL:
Keywords:
: 76341 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-06 16:13 UTC by Alejandro Lorenzo
Modified: 2004-02-28 12:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Lorenzo 2004-02-06 16:13:49 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
Compiler:          gcc versión 3.3.3 20040110 (prerelease) (Debian)
 
OS:          Linux

The problem is that, if in the main window of the program you select "Configure Plugins" (in Spanish "Configurar extensiones") kopete activates the 'wait' icon of xfree but it don't work anymore.

The gui departs and don't response to nothing; also the application aerea is not repainted; it also hangs the ongoing chats you have, no matter what protocol.

However, if you use the default "English" this doesn't happen, so; the problem seems to be really in the kde-i18n-es package, rather than kopete.
Comment 1 Richard Smith 2004-02-09 19:36:15 UTC
CVS commit by lilachaze: 

Don't hang if the translation has an odd number of words
CCMAIL: 74360@bugs.kde.org


  M +4 -1      autoreplaceconfig.cpp   1.4


--- kdenetwork/kopete/plugins/autoreplace/autoreplaceconfig.cpp  #1.3:1.4
@@ -47,5 +47,8 @@ void AutoReplaceConfig::load()
         {
                 k = *it;
-                v = *( ++it );
+                ++it;
+                if( it == wordsList.end() )
+                        break;
+                v = *it;
                 m_map.insert( k, v );
         }


Comment 2 Richard Smith 2004-02-09 19:42:09 UTC
The string with comment "list_of_words_to_replace", value "ur,your,r,are,u,you,theres,there is,arent,are not,dont,do not" is mistranslated - the list should be a list of pairs of words where the first is the word to replace, and the second is what to replace it with. The translation in the spanish translation had 7 words in.

It used to be the case that an odd number of words here would cause Kopete to hang; this is now fixed, but the final word is just ignored. In any case, the string should be fixed to have an even number of words in it.
Comment 3 Pablo de Vicente 2004-02-09 22:17:42 UTC
CVS commit by pvicente: 

CVS_SILENT Fixes bug 74360. The list was provided by Alejandro Exojo.
CCMAIL: 74360@bugs.kde.org


  M +18 -28    kopete.po   1.398.2.2


--- kde-i18n/es/messages/kdenetwork/kopete.po  #1.398.2.1:1.398.2.2
@@ -6,4 +6,5 @@
 # Antonio Crevillen <antonio.crevillen@hispalinux.es>, 2003.
 # Jaime Robles <jaime@kde.org>, 2004.
+# Pablo de Vicente <pvicentea@wanadoo.es>, 2004.
 #
 msgid ""
@@ -11,7 +12,7 @@
 "Project-Id-Version: kopete\n"
 "POT-Creation-Date: 2004-01-27 10:11+0100\n"
-"PO-Revision-Date: 2004-01-15 14:38+0100\n"
-"Last-Translator: Miguel Revilla Rodríguez <yo@miguelrevilla.com>\n"
-"Language-Team: Español <kde-es@kybs.de>\n"
+"PO-Revision-Date: 2004-02-09 22:14CET\n"
+"Last-Translator: Pablo de Vicente <pvicentea@wanadoo.es>\n"
+"Language-Team: Español <kde-es@kyb.uni-stuttgart.de>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -375,8 +376,6 @@
 
 #: libkopete/kopetecommandhandler.cpp:169
-msgid ""
-"Available Commands:\n"
-msgstr ""
-"Comandos disponibles:\n"
+msgid "Available Commands:\n"
+msgstr "Comandos disponibles:\n"
 
 #: libkopete/kopetecommandhandler.cpp:182
@@ -5566,5 +5565,5 @@
 "_: list_of_words_to_replace\n"
 "ur,your,r,are,u,you,theres,there is,arent,are not,dont,do not"
-msgstr "x,xa,k,t,ta,nas,res"
+msgstr "x,por,xa,para,q,que,tb,también,a1q,aunque,mñn,mañana"
 
 #: plugins/contactnotes/contactnotesedit.cpp:29
@@ -5670,32 +5669,22 @@
 
 #: protocols/irc/irccontact.cpp:229
-msgid ""
-"%1 is (%2@%3): %4\n"
-msgstr ""
-"%1 es (%2@%3): %4\n"
+msgid "%1 is (%2@%3): %4\n"
+msgstr "%1 es (%2@%3): %4\n"
 
 #: protocols/irc/irccontact.cpp:231
-msgid ""
-"%1 is an IRC operator\n"
-msgstr ""
-"%1 es operador de IRC\n"
+msgid "%1 is an IRC operator\n"
+msgstr "%1 es operador de IRC\n"
 
 #: protocols/irc/irccontact.cpp:234
-msgid ""
-"on channels %1\n"
-msgstr ""
-"en los canales %1\n"
+msgid "on channels %1\n"
+msgstr "en los canales %1\n"
 
 #: protocols/irc/irccontact.cpp:237
-msgid ""
-"on IRC via server %1 ( %2 )\n"
-msgstr ""
-"en IRC vía servidor %1 ( %2 )\n"
+msgid "on IRC via server %1 ( %2 )\n"
+msgstr "en IRC vía servidor %1 ( %2 )\n"
 
 #: protocols/irc/irccontact.cpp:240
-msgid ""
-"idle: %2\n"
-msgstr ""
-"inactivo: %2\n"
+msgid "idle: %2\n"
+msgstr "inactivo: %2\n"
 
 #: protocols/irc/irccontact.cpp:275
@@ -11266,2 +11255,3 @@
 #~ msgid "WP"
 #~ msgstr "WP"
+


Comment 4 Pablo de Vicente 2004-02-09 22:24:12 UTC
Translated the string "ur,your,r,are,u,you,theres,there is,arent,are not,dont,do not" correctly. The list of pairs of words was suggested by Alejandro Exojo.

Thanks for the clarification to Richard Smith

Pablo de Vicente
Comment 5 Stefan Gehn 2004-02-28 12:06:48 UTC
*** Bug 76341 has been marked as a duplicate of this bug. ***