[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    patch to get kab User fields translated
From:       Francois-Xavier Duranceau <duranceau () free ! fr>
Date:       2000-09-27 21:09:18
[Download RAW message or body]

Hi,
 
Please could you review this patch^H^H^H^H^H big big hack to get the
"(User field*)" messages translated in kab. Feel free to commit
something 
better ;)

FX
-- 
Francois-Xavier DURANCEAU
mailto:duranceau@free.fr, mailto:duranceau@kde.org
Visitez http://www.kde.org/fr/

KDE -- Color Outside The Lines !
["kab.diff" (text/plain)]

? look_edit.cc.fx
? look_edit_tabuser.cc.fx
? dialog_configurefile.cc.fx
Index: dialog_configurefile.cc
===================================================================
RCS file: /home/kde/kdeutils/kab/dialog_configurefile.cc,v
retrieving revision 1.8
diff -b -p -u -r1.8 dialog_configurefile.cc
--- dialog_configurefile.cc	2000/07/10 18:41:46	1.8
+++ dialog_configurefile.cc	2000/09/27 20:57:20
@@ -120,6 +120,22 @@ KabFileConfigWidget::KabFileConfigWidget
 	      kdDebug() << "TabUser::configure: missing settings " <<
 			 "in configuration section!";
 	    }
+
+          if( (0 == count) && ("(User fields)" == text) )
+            text = i18n("(User fields)");
+ 
+          else if( (1 == count) && ("(User field 1)" == text) )
+            text = i18n("(User field 1)");
+ 
+          else if( (2 == count) && ("(User field 2)" == text) )
+            text = i18n("(User field 2)");
+ 
+          else if( (3 == count) && ("(User field 3)" == text) )
+            text = i18n("(User field 3)");
+ 
+          else if( (4 == count) && ("(User field 4)" == text) )
+            text = i18n("(User field 4)");                                      
+
 	  *ledits[count]=new QLineEdit(text, userFields);
 	  if(*labels[count]==0 || *ledits[count]==0)
 	    {
Index: look_edit.cc
===================================================================
RCS file: /home/kde/kdeutils/kab/look_edit.cc,v
retrieving revision 1.22
diff -b -p -u -r1.22 look_edit.cc
--- look_edit.cc	2000/09/27 04:53:57	1.22
+++ look_edit.cc	2000/09/27 20:57:22
@@ -65,6 +65,9 @@ KABEditLook::KABEditLook(KabAPI* api, QW
 	{
 	  keys=configsection->getKeys();
 	  keys->get("user_headline", headline);
+
+         if( "(User fields)" == headline )
+            headline = i18n("(User fields)");                                   
 	}
       tabuser->configure(db);
     }
Index: look_edit_tabuser.cc
===================================================================
RCS file: /home/kde/kdeutils/kab/look_edit_tabuser.cc,v
retrieving revision 1.12
diff -b -p -u -r1.12 look_edit_tabuser.cc
--- look_edit_tabuser.cc	2000/07/10 18:41:46	1.12
+++ look_edit_tabuser.cc	2000/09/27 20:57:23
@@ -132,6 +132,19 @@ void TabUser::configure(KabAPI* api)
 		  kdDebug() << "TabUser::configure: missing settings " <<
 		    "in configuration section!" << endl;
 		}
+
+              if( (0 == count) && ("(User field 1)" == text) )
+                text = i18n("(User field 1)");
+ 
+              else if( (1 == count) && ("(User field 2)" == text) )
+                text = i18n("(User field 2)");
+ 
+              else if( (2 == count) && ("(User field 3)" == text) )
+                text = i18n("(User field 3)");
+ 
+              else if( (3 == count) && ("(User field 4)" == text) )
+                text = i18n("(User field 4)");                                  
+
 	      labels[count]->setText(text);
 	    }
 	}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic