[Tkabber-dev] r373 - in trunk/plugins/tastebin: . msgs

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Sun Aug 29 21:12:03 MSD 2010


Author: Rejjin
Date: 2010-08-29 21:12:03 +0400 (Sun, 29 Aug 2010)
New Revision: 373

Modified:
   trunk/plugins/tastebin/msgs/ru.msg
   trunk/plugins/tastebin/tastebin.tcl
Log:
Peculiarities in the files: tastebin.tcl and ru.msg - fix problems with displaying nickname on pastebin.com

Modified: trunk/plugins/tastebin/msgs/ru.msg
===================================================================
--- trunk/plugins/tastebin/msgs/ru.msg	2010-08-25 09:46:05 UTC (rev 372)
+++ trunk/plugins/tastebin/msgs/ru.msg	2010-08-29 17:12:03 UTC (rev 373)
@@ -8,7 +8,7 @@
 ::msgcat::mcset ru "History" "История"
 ::msgcat::mcset ru "Tastebin options" "Tastebin-настройки"
 ::msgcat::mcset ru "Show on top of all windows" "Отображать поверх всех окон"
-::msgcat::mcset ru "Your name or nick (Default name - \"Tastebin - Tkabber Plugin\")" "Ваше имя или ник. (Имя по-умолчанию - \"Tastebin - Tkabber Plugin\")"
+::msgcat::mcset ru "Your name or nick" "Ваше имя или ник"
 ::msgcat::mcset ru "Use a special display window" "Использовать специальное отображение окна"
 ::msgcat::mcset ru "Use the priority to generate a list of highlights syntax" "Использовать приоритетную генерацию списка подсветок синтаксиса"
 ::msgcat::mcset ru "Size of popup menu" "Высота всплывающего меню"

Modified: trunk/plugins/tastebin/tastebin.tcl
===================================================================
--- trunk/plugins/tastebin/tastebin.tcl	2010-08-25 09:46:05 UTC (rev 372)
+++ trunk/plugins/tastebin/tastebin.tcl	2010-08-29 17:12:03 UTC (rev 373)
@@ -21,8 +21,8 @@
 		[::msgcat::mc "Tastebin options"] \
 			-group Plugins	
 	
-	custom::defvar options(default,name) [::msgcat::mc "Your name or nick"] \
-		[::msgcat::mc "Your name or nick (Default name - \"Tastebin - Tkabber Plugin\")"] \
+	custom::defvar options(default,name) {} \
+		[::msgcat::mc "Your name or nick"] \
 		-group Tastebin -type string
 		
 	custom::defvar options(save_state) 0 \
@@ -250,8 +250,9 @@
 				[::msgcat::mc "Error"] warning]
 	}	
 	
-	if { [info exist options(choised,name)] && $options(choised,name) == 0 } {
-		set name "Tastebin - Tkabber Plugin"
+	if { ( [info exist options(choised,name)] && $options(choised,name) == 0 ) || \
+		( [.tastebin.main_bar.header get] eq {} ) } {
+			set name "Tastebin - Tkabber Plugin"
 	} else {
 		set name [.tastebin.main_bar.header get]
 	}



More information about the Tkabber-dev mailing list