[Tkabber-dev] r91 - in trunk/plugins/recentstatus: . msgs

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Wed Jan 9 01:29:28 MSK 2008


Author: kostix
Date: 2008-01-09 01:29:25 +0300 (Wed, 09 Jan 2008)
New Revision: 91

Added:
   trunk/plugins/recentstatus/msgs/
   trunk/plugins/recentstatus/msgs/ru.msg
Modified:
   trunk/plugins/recentstatus/README
   trunk/plugins/recentstatus/TODO
   trunk/plugins/recentstatus/recentstatus.tcl
Log:
recentstatus/recentstatus.tcl: Updated text resources.

recentstatus/msgs, recentstatus/msgs/ru.msg: Added Russian message
 catalog (thanks to Gebb, Sergei Yudin).

recentstatus/README: Stylistic fixes (thanks to Gebb, Sergei Yudin),
 available settings explained, limitations section updated.

recentstatus/TODO: Tasks updated.


Modified: trunk/plugins/recentstatus/README
===================================================================
--- trunk/plugins/recentstatus/README	2008-01-08 14:37:37 UTC (rev 90)
+++ trunk/plugins/recentstatus/README	2008-01-08 22:29:25 UTC (rev 91)
@@ -4,13 +4,13 @@
 
 I. The idea
 
-This plugin subverts the standard Tkabber's widget for managing
+This plugin replaces the standard Tkabber's widget for managing
 the user's availability status message (this is an entry box to
 the right of the presence menu button) by a combobox widget that
 keeps track of entered messages.
 
 The history of availability status messages is preserved across
-Tkabber restarts (via the Customize mechanism -- "Technical
+Tkabber restarts (via the Customize mechanism -- see "Technical
 details" below").
 
 
@@ -18,16 +18,16 @@
 
 Usage is not very different from the standard widget: you type
 your new availability message and press the Return (Enter) key
-to "apply" (send) it (or, alternatively, select another
-availability status from the status menu).
+to "apply" (send) it, or, alternatively, select another
+availability status from the status menu.
 
 When you set the new status message it's saved and made
 available via the drop-down list of this combobox widget.
 
-So instead of manually entering the message you want you can
-just post the drop-down list (using the special button on the
-right-hand side of the combobox widget or pressing the "Cursor
-Down" key) and select one of the saved messages.
+So instead of manually entering the message you can just post
+the drop-down list (using the special button on the right-hand
+side of the combobox widget or pressing the Cursor Down key)
+and select one of the saved messages.
 
 NOTE that when you select a message using the drop-down list you
 still need to "apply" it (see above).
@@ -41,16 +41,23 @@
 
 III. Configuration
 
-Currently there's no configuration options available for this
-plugin.
+This plugin can be configured via the Customize interface of
+Tkabber -- open its window via the Tkabber -> Customize main
+menu entry, then navigate to the Plugins -> Recent Status group
+of settings.
 
+Currently there's only one option to tweak:
 
+* options(maxhistorysize) -- specifies the maximum number of
+  status messages kept in the history. When the number of
+  history messages reaches this limit, the oldest message is
+  deleted automatically.
+
+
 IV. Limitations
 
-* The maximum number of messages kept in history cannot be set.
-
 * There's no way to edit the history messages from within
-  Tkabber.
+  Tkabber (but see "Technical Details" below).
 
 
 V. Technical Details
@@ -60,12 +67,14 @@
 "custom.tcl" located under the Tkabber configuration directory.
 
 So observe some things:
+
 * If you run several Tkabber processes in parallel and they all
   share the same configuration directory, the history of
-  availability status messages will be overwritten each time you
-  set it from one copy or another; the history which will be
-  reloaded the next time Tkabber is run will be the history of
-  the last Tkabber process it will be written from.
+  availability status messages is overwritten each time you
+  set it from one copy or another; the history which is
+  loaded the next time Tkabber is run will be the history of
+  the last Tkabber process it was written from.
+
 * You may edit the history messages by manually editing
   "custom.tcl" -- look for the variable named
   "::plugins::recentstatus::history". Note that its value must

Modified: trunk/plugins/recentstatus/TODO
===================================================================
--- trunk/plugins/recentstatus/TODO	2008-01-08 14:37:37 UTC (rev 90)
+++ trunk/plugins/recentstatus/TODO	2008-01-08 22:29:25 UTC (rev 91)
@@ -1,5 +1,8 @@
 $Id$
 
+* Status message isn't recorded in the history if it's applied
+  by changing the status.
+
 * Implement editing of history messages.
   Deletion of arbitrary history messages also would be cool.
 

Added: trunk/plugins/recentstatus/msgs/ru.msg
===================================================================
--- trunk/plugins/recentstatus/msgs/ru.msg	                        (rev 0)
+++ trunk/plugins/recentstatus/msgs/ru.msg	2008-01-08 22:29:25 UTC (rev 91)
@@ -0,0 +1,25 @@
+# $Id$
+# vim:enc=utf-8
+
+::msgcat::mcset ru "History of availability status messages" \
+	"История сообщений статусов доступности"
+::msgcat::mcset ru "Plugins options." \
+	"Настройки плагинов."
+::msgcat::mcset ru "Recent Status plugin options.\
+	This plugin keeps the history of avalability status messages\
+	entered manually by the user and allows to select\
+	them from a drop-down list.\
+	The history is preserved across restarts." \
+	"Настройки расширения Recent Status.\
+	Это расширение хранит историю статусных сообщений (описаний статуса),\
+	вручную установленных пользователем, и позволяет выбирать их из выпадающего списка.\
+	История сохраняется при перезапуске Ткаббера."
+::msgcat::mcset ru "Maximum number of status messages to keep.\
+	If the history size reaches this threshold,\
+	the oldest message will be deleted automatically\
+	when a new one is recorded." \
+	"Максимальное число хранимых сообщений.\
+	Если размер истории достигает указанного лимита, наиболее старое сообщение\
+	удаляется при добавлении нового."
+::msgcat::mcset ru "Clear history" "Очистить историю"
+


Property changes on: trunk/plugins/recentstatus/msgs/ru.msg
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Modified: trunk/plugins/recentstatus/recentstatus.tcl
===================================================================
--- trunk/plugins/recentstatus/recentstatus.tcl	2008-01-08 14:37:37 UTC (rev 90)
+++ trunk/plugins/recentstatus/recentstatus.tcl	2008-01-08 22:29:25 UTC (rev 91)
@@ -13,6 +13,9 @@
 	variable history
 	variable options
 
+	package require msgcat
+	::msgcat::mcload [file join [file dir [info script]] msgs]
+
 	custom::defvar history [list] \
 		[::msgcat::mc "History of availability status messages"] \
 		-type list \
@@ -22,15 +25,15 @@
 		-group Tkabber
 	custom::defgroup {Recent Status} \
 		[::msgcat::mc "Recent Status plugin options.\
-			This plugin records all availability status messages\
-			manually set by the user and allows to select them\
-			via the drop down menu. The recorded messages are\
-			preserved across restarts."] \
+			This plugin keeps the history of avalability status messages\
+			entered manually by the user and allows to select\
+			them from a drop-down list.\
+			The history is preserved across restarts."] \
 		-group Plugins
 
 	custom::defvar options(maxhistorysize) 5 \
-		[::msgcat::mc "Maximum number of status messages to record.\
-			If the history size grows beyond this threshold,\
+		[::msgcat::mc "Maximum number of status messages to keep.\
+			If the history size reaches this threshold,\
 			the oldest message will be deleted automatically\
 			when a new one is recorded."] \
 		-type integer -group {Recent Status}
@@ -80,7 +83,7 @@
 	set m $w.menu
 
 	if {![winfo exists $m]} {
-		menu $m -title [::msgcat::mc "Availability status history"]
+		menu $m -title [::msgcat::mc "History of availability status messages"]
 		$m add command \
 			-label [::msgcat::mc "Clear history"] \
 			-command [list [namespace current]::clear_history $w]



More information about the Tkabber-dev mailing list