[Tkabber-dev] r24 - in trunk/plugins/autoanswer: . images images/default msgs

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Tue Aug 21 00:43:27 MSD 2007


Author: kostix
Date: 2007-08-21 00:43:26 +0400 (Tue, 21 Aug 2007)
New Revision: 24

Added:
   trunk/plugins/autoanswer/images/
   trunk/plugins/autoanswer/images/default/
   trunk/plugins/autoanswer/images/default/answerback_off.gif
   trunk/plugins/autoanswer/images/default/answerback_on.gif
Modified:
   trunk/plugins/autoanswer/AUTHORS
   trunk/plugins/autoanswer/autoanswer.tcl
   trunk/plugins/autoanswer/msgs/ru.msg
Log:
* Added toolbar images for two states of auto-answer plugin.
* Fixed typos in text messages.
* Russian message catalog updated appropriately.
* Atrem Bannikov is mentioned on the AUTHORS list.


Modified: trunk/plugins/autoanswer/AUTHORS
===================================================================
--- trunk/plugins/autoanswer/AUTHORS	2007-08-20 15:40:22 UTC (rev 23)
+++ trunk/plugins/autoanswer/AUTHORS	2007-08-20 20:43:26 UTC (rev 24)
@@ -1,3 +1,3 @@
 Otto von Gebbels <gebb at ngs dot ru>
 Konstantin Khomoutov <flatworm at users.sourceforge.net>
-
+Artwork by Artem Bannikov <artstyle at plotinka.ru>

Modified: trunk/plugins/autoanswer/autoanswer.tcl
===================================================================
--- trunk/plugins/autoanswer/autoanswer.tcl	2007-08-20 15:40:22 UTC (rev 23)
+++ trunk/plugins/autoanswer/autoanswer.tcl	2007-08-20 20:43:26 UTC (rev 24)
@@ -22,7 +22,7 @@
 			contacts with the user-provided message or a \"cooked\"\
 			message describing your current availability status.\
 			This plugin is particularly useful to combat contacts\
-			that ignore your presense status."] \
+			that ignore your availability status."] \
 		-group Plugins
 
 	custom::defvar options(enabled) no \
@@ -50,7 +50,7 @@
 			Three special tokens are expanded before sending:\
 			%s is expaneded to your current availability status,\
 			%t expands to your status text and\
-			%% expands to the single %.\
+			%% expands to a single %.\
 			If this text is empty (the default) Tkabber will cook\
 			for you a polite descriptive message including your\
 			availability status and status text."] \
@@ -64,9 +64,9 @@
 	# independent of the availability status.
 	custom::defvar options(status) {away xa dnd} \
 		[::msgcat::mc "List of availability states in which\
-			auto answer is forcibly turned on independently\
+			auto-answer is forcibly turned on independently\
 			of its main setting. This must be a whitespace-separated\
-			list of tokens, available tokens are: available, away,\
+			list of tokens, valid tokens are: available, away,\
 			xa and dnd."] \
 		-group $group \
 		-type string
@@ -86,13 +86,15 @@
 		return
 	}
 	if {$options(enabled)} {
-		set txt [::msgcat::mc "Switch autoanswer off"]
+		set txt [::msgcat::mc "Auto-answer is currently on\nClick to switch it off"]
+		set img toolbar/autoanswer/on
 	} else {
-		set txt [::msgcat::mc "Switch autoanswer on"]
+		set txt [::msgcat::mc "Auto-answer is currently off\nClick to switch it on"]
+		set img toolbar/autoanswer/off
 	}
 	[tbox] itemconfigure auto_answer \
 		-command [namespace current]::toggle_active \
-		-text $txt -helptext $txt -relief link
+		-image $img -helptext $txt -relief link
 }
 
 proc autoanswer::toggle_active {} {
@@ -203,6 +205,13 @@
 }
 
 namespace eval autoanswer {
+	image create photo toolbar/autoanswer/on \
+		-file [file join [file dir [info script]] \
+			images default answerback_on.gif]
+	image create photo toolbar/autoanswer/off \
+		-file [file join [file dir [info script]] \
+			images default answerback_off.gif]
+
 	hook::add process_message_hook \
 		[namespace current]::process_message 150
 

Added: trunk/plugins/autoanswer/images/default/answerback_off.gif
===================================================================
(Binary files differ)


Property changes on: trunk/plugins/autoanswer/images/default/answerback_off.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/plugins/autoanswer/images/default/answerback_on.gif
===================================================================
(Binary files differ)


Property changes on: trunk/plugins/autoanswer/images/default/answerback_on.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: trunk/plugins/autoanswer/msgs/ru.msg
===================================================================
--- trunk/plugins/autoanswer/msgs/ru.msg	2007-08-20 15:40:22 UTC (rev 23)
+++ trunk/plugins/autoanswer/msgs/ru.msg	2007-08-20 20:43:26 UTC (rev 24)
@@ -1,13 +1,13 @@
 # $Id$
 # vim:enc=utf-8
 
-::msgcat::mcset ru "Auto Answer provides autoresponding to incoming messages of type \"chat\" sent by certain contacts with the user-provided message or a \"cooked\" message describing your current availability status. This plugin is particularly useful to combat contacts that ignore your presense status." \
+::msgcat::mcset ru "Auto Answer provides autoresponding to incoming messages of type \"chat\" sent by certain contacts with the user-provided message or a \"cooked\" message describing your current availability status. This plugin is particularly useful to combat contacts that ignore your availability status." \
 	"Auto Answer обеспечивает автоответ на входящие сообщения типа \"чат\", посланные указанными контактами, заданным пользователем сообщением, описывающим состояние вашей текущей доступности. Этот плагин особенно удобен для борьбы с контактами, игнорирующими статус вашей доступности."
-::msgcat::mcset ru "Body of message used for auto-answering. Three special tokens are expanded before sending: %s is expaneded to your current availability status, %t expands to your status text and %% expands to the single %. If this text is empty (the default) Tkabber will cook for you a polite descriptive message including your availability status and status text." \
+::msgcat::mcset ru "Body of message used for auto-answering. Three special tokens are expanded before sending: %s is expaneded to your current availability status, %t expands to your status text and %% expands to a single %. If this text is empty (the default) Tkabber will cook for you a polite descriptive message including your availability status and status text." \
 	"Тело сообщения, используемого для автоответа. Перед отсылкой в сообщении раскрываются три ключевых слова: %s раскрывается в текущий статус вашей доступности, %t -- в описание статуса, а %% -- в символ %. Если этот текст является пустой строкой (это значение по умолчанию), Tkabber самостоятельно сформирует вежливый текст, содержащий статус вашей текущей доступности и его описание."
 ::msgcat::mcset ru "Enables or disables automatic answering. You can also control this setting from the main toolbar." \
 	"Разрешает или запрещает автоответ. Вы также можете управлеть этой настройкой при помощи кнопки на главной панели инструментов."
-::msgcat::mcset ru "List of availability states in which auto answer is forcibly turned on independently of its main setting. This must be a whitespace-separated list of tokens, available tokens are: available, away, xa and dnd." \
+::msgcat::mcset ru "List of availability states in which auto-answer is forcibly turned on independently of its main setting. This must be a whitespace-separated list of tokens, valid tokens are: available, away, xa and dnd." \
 	"Список состояний доступности, в которых автоответ включается принудительно, независимо от состояния его основной настройки. Это должен быть список ключевых слов, разделённых пробельными символами. Допустимые ключевые слова: available, away, xa и dnd."
 ::msgcat::mcset ru "Plugins options." \
 	"Настройки плагинов."
@@ -17,8 +17,8 @@
 	"Регулярное выражение, подходящее под JID'ы, для которых автоответ использоваться не будет. Значение по умолчанию \"^$\" означает отсутствие ограничений."
 ::msgcat::mcset ru "Sorry, but my status is now %s (%s)" \
 	"Извините, но мой текущий статус: %s (%s)"
-::msgcat::mcset ru "Switch autoanswer off" \
-	"Выключить автоответ"
-::msgcat::mcset ru "Switch autoanswer on" \
-	"Включить автоответ"
+::msgcat::mcset ru "Auto-answer is currently on\nClick to switch it off" \
+	"Автоответ включён\nКликните чтобы выключить"
+::msgcat::mcset ru "Auto-answer is currently off\nClick to switch it on" \
+	"Автоответ выключен\nКликните чтобы включить"
 



More information about the Tkabber-dev mailing list