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

List:       kde-commits
Subject:    kdebase/kcontrol/fonts
From:       Lukáš Tinkl <lukas () kde ! org>
Date:       2004-07-23 9:11:52
Message-ID: 20040723091152.CF71A16AF5 () office ! kde ! org
[Download RAW message or body]

CVS commit by lukas: 

get the hinting stuff translated


  M +2 -2      Makefile.am   1.20
  M +6 -6      fonts.cpp   1.90


--- kdebase/kcontrol/fonts/Makefile.am  #1.19:1.20
@@ -18,6 +18,6 @@
 noinst_HEADERS = fonts.h kxftconfig.h
 
-messages:
-        $(XGETTEXT) -kni18n $(kcm_fonts_la_SOURCES) -o $(podir)/kcmfonts.pot
+messages: rc.cpp
+        $(XGETTEXT) -kni18n *.cpp -o $(podir)/kcmfonts.pot
 
 xdg_apps_DATA = fonts.desktop

--- kdebase/kcontrol/fonts/fonts.cpp  #1.89:1.90
@@ -238,5 +238,5 @@ FontAASettings::FontAASettings(QWidget *
 
   for(int t=KXftConfig::SubPixel::None+1; t<=KXftConfig::SubPixel::Vbgr; ++t)
-    subPixelType->insertItem(aaPixmaps[t-1], \
KXftConfig::description((KXftConfig::SubPixel::Type)t)); +    \
subPixelType->insertItem(aaPixmaps[t-1], \
i18n(KXftConfig::description((KXftConfig::SubPixel::Type)t).utf8()));  
 #ifdef HAVE_FONTCONFIG
@@ -246,5 +246,5 @@ FontAASettings::FontAASettings(QWidget *
   layout->addMultiCellWidget(hintingStyle, 2, 2, 1, 3);
   for(int s=KXftConfig::Hint::NotSet+1; s<=KXftConfig::Hint::Full; ++s)
-    hintingStyle->insertItem(KXftConfig::description((KXftConfig::Hint::Style)s));
+    hintingStyle->insertItem(i18n(KXftConfig::description((KXftConfig::Hint::Style)s).utf8()));
  
   QString hintingText(i18n("Hinting is a process used to enhance the quality of \
fonts at small sizes.")); @@ -397,5 +397,5 @@ int \
FontAASettings::getIndex(KXftConfig:  
   for(index=0; index<subPixelType->count(); ++index)
-    if(subPixelType->text(index)==KXftConfig::description(spType))
+    if(subPixelType->text(index)==i18n(KXftConfig::description(spType).utf8()))
     {
       pos=index;
@@ -411,5 +411,5 @@ KXftConfig::SubPixel::Type FontAASetting
 
   for(t=KXftConfig::SubPixel::None; t<=KXftConfig::SubPixel::Vbgr; ++t)
-    if(subPixelType->currentText()==KXftConfig::description((KXftConfig::SubPixel::Type)t))
 +    if(subPixelType->currentText()==i18n(KXftConfig::description((KXftConfig::SubPixel::Type)t).utf8()))
  return (KXftConfig::SubPixel::Type)t;
 
@@ -424,5 +424,5 @@ int FontAASettings::getIndex(KXftConfig:
 
   for(index=0; index<hintingStyle->count(); ++index)
-    if(hintingStyle->text(index)==KXftConfig::description(hStyle))
+    if(hintingStyle->text(index)==i18n(KXftConfig::description(hStyle).utf8()))
     {
       pos=index;
@@ -439,5 +439,5 @@ KXftConfig::Hint::Style FontAASettings::
 
   for(s=KXftConfig::Hint::NotSet; s<=KXftConfig::Hint::Full; ++s)
-    if(hintingStyle->currentText()==KXftConfig::description((KXftConfig::Hint::Style)s))
 +    if(hintingStyle->currentText()==i18n(KXftConfig::description((KXftConfig::Hint::Style)s).utf8()))
  return (KXftConfig::Hint::Style)s;
 


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

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