[Tkabber-dev] r222 - in trunk/plugins/bldjid: . msgs

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Thu Apr 30 06:36:22 MSD 2009


Author: bigote
Date: 2009-04-30 06:36:21 +0400 (Thu, 30 Apr 2009)
New Revision: 222

Added:
   trunk/plugins/bldjid/msgs/
   trunk/plugins/bldjid/msgs/ru.msg
Modified:
   trunk/plugins/bldjid/ChangeLog
   trunk/plugins/bldjid/bldjid.tcl
Log:
Russian translation added for all plugin messages
so some messages required adapting to translatable format.
An error fixed that was provoked by recent changes in muc.tcl.

--- TODO:
Heavy testing is required before releasing a "stable" version,
especially new translation should be well tested.
Please send your feedback directly to me :)


Modified: trunk/plugins/bldjid/ChangeLog
===================================================================
--- trunk/plugins/bldjid/ChangeLog	2009-04-26 02:19:41 UTC (rev 221)
+++ trunk/plugins/bldjid/ChangeLog	2009-04-30 02:36:21 UTC (rev 222)
@@ -1,3 +1,22 @@
+2009-04-30  Serge Yudin  <xmpp:bigote at jabber.ru> <mailto:bigote at gmail.com>
+
+--- Version 0.5.19 of the plugin.
+--- Files added:
+	msgs/ru.msg
+
+--- Files modified:
+    bldjid.tcl, ChangeLog.
+
+--- Changes:
+	Russian translation added for all plugin messages
+	so some messages required adapting to translatable format.
+	An error fixed that was provoked by recent changes in muc.tcl.
+
+--- TODO:
+	Heavy testing is required before releasing a "stable" version,
+	especially new translation should be well tested.
+	Please send your feedback directly to me :)
+
 2009-04-26  Serge Yudin  <xmpp:bigote at jabber.ru> <mailto:bigote at gmail.com>
 
 --- Version 0.5.18 of the plugin.

Modified: trunk/plugins/bldjid/bldjid.tcl
===================================================================
--- trunk/plugins/bldjid/bldjid.tcl	2009-04-26 02:19:41 UTC (rev 221)
+++ trunk/plugins/bldjid/bldjid.tcl	2009-04-30 02:36:21 UTC (rev 222)
@@ -1,4 +1,4 @@
-# "Bldjid" plugin for Tkabber. 2009-04-26 v. 0.5.18
+# "Bldjid" plugin for Tkabber. 2009-04-30 v. 0.5.19
 # Written by Serge Yudin xmpp:bigote at jabber.ru
 # See README file for usage.
 
@@ -176,7 +176,7 @@
 }
 
 proc bldjid::handle_commands {chatid user body type} {
-	set no_jid "I can't see any JID of this user."
+	set no_jid [::msgcat::mc "I can't see any JID of this user."]
 
 # Detect the command.
 	if {[string match {/bldjid*} $body]} {
@@ -275,7 +275,7 @@
 			if {[winfo exists $w]} {
 				destroy $w
 			}
-			Dialog $w -title [::msgcat::mc "Forgive all outcasts here?"]] \
+			Dialog $w -title [::msgcat::mc "Forgive all outcasts here?"] \
 				-modal none -separator 1 -anchor e -default 0 -cancel 1 \
 				-parent .
 				set f [$w getframe]
@@ -284,8 +284,8 @@
 				$w add -text [::msgcat::mc "Cancel"] -command [list destroy $w]
 
 				label $w.lsure -padx 10 -pady 5 \
-				-text "Are you sure you want to unban all outcasts in this room?\n\
-				There will be no backup: you're either kind-hearted or not ;)"
+				-text [::msgcat::mc "Are you sure you want to unban all outcasts in this room?\n\
+				There will be no backup: you're either kind-hearted or not :)"]
 				pack $w.lsure -expand yes -fill both
 				$w draw
 		}
@@ -359,7 +359,7 @@
 	::xmpp::xml::split $child tag xmlns attrs cdata items
 	if {$items == {}} {
 		chat::add_message $chatid $group error \
-		[::msgcat::mc "The blacklist is already empty for $group"] {}
+		[::msgcat::mc "The blacklist is already empty for %s." $group] {}
 		return
 	}
 	set items2 {}
@@ -395,7 +395,7 @@
 			-to $group \
 			-command [list muc::test_error_res \
 			[::msgcat::mc "Sending %s %s list" $attr $val] \
-			$xlib $group]
+			$xlib $group $chatid]
 	}
 	chat::add_message $chatid $group info \
 	[::msgcat::mc "Thank you for your generosity! +10 to Reputation!"] {}
@@ -471,10 +471,10 @@
 	set maxindex [expr {[llength $user_list] - 1}]
 	if {$maxindex < 0} {
 # Nothing to show: list is empty. There's a check for it up there, however.
-		chat::add_message $chatid $group error "The list is empty." {}
+		chat::add_message $chatid $group error [::msgcat::mc "The list is empty."] {}
 		return stop
 	} elseif {$index > $maxindex || $index < 0} {
-		chat::add_message $chatid $group error "Index out of range." {}
+		chat::add_message $chatid $group error [::msgcat::mc "Index out of range."] {}
 		return stop
 	} else {
 		set jid [lindex [lindex $user_list $index] 2]
@@ -492,29 +492,29 @@
 	if {$options(enable_jids_gathering)} {
 		global jids_by_chats
 		set user_list {}
-		set header "Group filtering is "
+		set header [::msgcat::mc "Group filtering is "]
 		if {$options(filter_admin_rooms)} {
 			set which admin
-			append header "ON."
+			append header [::msgcat::mc "ON."]
 		} else {
 			set which all
-			append header "OFF."
+			append header [::msgcat::mc "OFF."]
 		}
-		append header " Show all visits to the "
+		append header [::msgcat::mc " Show all visits to the "]
 		if {$room == ""} {
 			set room $group
-			append header "current room:"
+			append header [::msgcat::mc "current room:"]
 		} elseif {$options(matching_rules) == "exact"} {
-			append header "room $room:"
+			append header [::msgcat::mc "room %s:" $room]
 		} else {
-			append header "rooms that match *$room*:"
+			append header [::msgcat::mc "rooms that match *%s*:" $room]
 		}
 
 		if {$options(matching_rules) == "exact" \
 		&& ![info exists jids_by_chats($room)]} {
-			chat::add_message $chatid $group error "List for the requested room doesn't exist.\
-			Make sure if you provide a full room's JID, if the plugin is turned on,\
-			or if you use Loose match rules." {}
+			chat::add_message $chatid $group error [::msgcat::mc "List for the requested room doesn't exist.\
+			Make sure you provide a full room's JID, if JIDs gathering is turned on,\
+			or if you use Loose match rules."] {}
 			return stop
 		} elseif {$options(matching_rules) == "exact"} {
 			if {$options(filter_admin_rooms)} {
@@ -543,7 +543,7 @@
 		set msg [[namespace current]::prepare_print_res]
 		[namespace current]::print_search_res $chatid $group $header $msg
 	} else {
-		chat::add_message $chatid $group error "JIDs gathering is disabled." {}
+		chat::add_message $chatid $group error [::msgcat::mc "JIDs gathering is disabled."] {}
 	}
 }
 
@@ -553,40 +553,40 @@
 	if {$options(enable_jids_gathering)} {
 		global jids_by_chats
 		set user_list {}
-		set header "Group filtering is "
+		set header [::msgcat::mc "Group filtering is "]
 		if {$options(filter_admin_rooms)} {
 			set which admin
-			append header "ON."
+			append header [::msgcat::mc "ON."]
 		} else {
 			set which all
-			append header "OFF."
+			append header [::msgcat::mc "OFF."]
 		}
-		append header " Show visits of "
+		append header [::msgcat::mc " Show visits of "]
 		if {$nick == ""} {
 			chat::add_message $chatid $group error \
-			"Parameters expected. Type /bldhelp for usage examples." {}
+			[::msgcat::mc "Parameters expected. Type /bldhelp for usage examples."] {}
 			return stop
 		} elseif {$room == ""} {
 			if {$options(matching_rules) == "exact"} {
-				append header "$nick to all rooms:"
+				append header [::msgcat::mc "%s to all rooms:" $nick]
 			} else {
-				append header "users matching *$nick* to all rooms:"
+				append header [::msgcat::mc "users matching *%s* to all rooms:" $nick]
 			}
 			set groupjids [[namespace current]::valid_groups $xlib $which {}]
 			[namespace current]::prepare_user_list $groupjids $nick
 		} else {
 			if {$options(matching_rules) == "exact"} {
-				append header "$nick to the room $room:"
+				append header [::msgcat::mc "%s to the room %s:" $nick $room]
 			} else {
-				append header "users matching *$nick*\
-				to the rooms that match *$room*:"
+				append header [::msgcat::mc "users matching *%s*\
+				to the rooms that match *%s*:" $nick $room]
 			}
 			if {$options(filter_admin_rooms)} {
 				set iam [lindex [whoami $xlib $group] 1]
 				if {!($iam == "admin" || $iam == "owner")} {
 					chat::add_message $chatid $group error \
-					"You turned off showing results in the rooms\
-					where you don't have admin privileges." {}
+					[::msgcat::mc "You turned off showing results in the rooms\
+					where you don't have admin privileges."] {}
 					return stop
 				}
 			}
@@ -596,7 +596,7 @@
 		set msg [[namespace current]::prepare_print_res]
 		[namespace current]::print_search_res $chatid $group $header $msg
 	} else {
-		chat::add_message $chatid $group error "JIDs gathering is disabled." {}
+		chat::add_message $chatid $group error [::msgcat::mc "JIDs gathering is disabled."] {}
 	}
 }
 
@@ -625,8 +625,8 @@
 }
 
 proc bldjid::help {chatid group} {
-	set header "Short usage examples for Bldjid plugin"
-	lappend msg "\nBan in all rooms where you have admin privileges:\
+	set header [::msgcat::mc "Short usage examples for Bldjid plugin"]
+	lappend msg [::msgcat::mc "\nBan in all rooms where you have admin privileges:\
 	\n/bldjid JID\
 	\nSome reason for banning (optional).\
 	\n\nUnban a banned person in these rooms:\
@@ -657,7 +657,7 @@
 	\n\nTo toggle between Show and Close monitor states use <Control-m> shortcut.\
 	\n\nSee README file for more information.\
 	\nVisit Tkabber -> Customize -> Plugins -> Bldjid\
-	\nto tune the plugin for your needs."
+	\nto tune the plugin for your needs."]
 	[namespace current]::print_search_res $chatid $group $header $msg
 }
 

Added: trunk/plugins/bldjid/msgs/ru.msg
===================================================================
--- trunk/plugins/bldjid/msgs/ru.msg	                        (rev 0)
+++ trunk/plugins/bldjid/msgs/ru.msg	2009-04-30 02:36:21 UTC (rev 222)
@@ -0,0 +1,64 @@
+# ./bldjid.tcl
+# Translated by Serge Yudin <xmpp:bigote at jabber.ru>
+::msgcat::mcset ru "%s has entered" "%s вошёл"
+::msgcat::mcset ru "Bldjid options." "Настройки расширения Bldjid."
+::msgcat::mcset ru "Cancel" "Отмена"
+::msgcat::mcset ru "Enable JIDs logging. Disabling it doesn't prevent /bldjid-like commands to work." \
+"Включить ведение списка джидов. Если его не включать, команды типа /bldjid всё равно будут работать."
+::msgcat::mcset ru "Exact match." "Точное совпадение."
+::msgcat::mcset ru "Field separator for /visit* commands." \
+"Разделитель полей для команд /visit*."
+::msgcat::mcset ru "Forgive all outcasts here?" \
+"Простить всех пользователей, забаненных здесь?"
+::msgcat::mcset ru "Generate and send to chats smart system messages about user entrances (will only work with Minimum verbosity level)." \
+"Генерировать и посылать в чаты умные системные сообщения о входе пользователей (будет работать только с установленным минимальным Уровнем подробности)."
+::msgcat::mcset ru "Loose match." "Нестрогое совпадение."
+::msgcat::mcset ru "Matching rules for /visit* commands." \
+"Правила совпадений для команд /visit*."
+::msgcat::mcset ru "Max length of your JID list for each room. Zero means unlimited. See README for details." \
+"Максимальная длина списка джидов для каждой из комнат. Ноль означает бесконечный список. Читайте подробности в файле README."
+::msgcat::mcset ru "Maximum: All entrances of each user will be logged." \
+"Максимальный: Будут зарегистрированы все заходы каждого пользователя."
+::msgcat::mcset ru "Minimum: Log each entrance or nick change of a unique pair nick/jid only once per room (less memory used)." \
+"Минимальный: Регистрировать заходы или смены ника для каждой уникальной пары ник/джид только один раз на комнату (экономится память)."
+::msgcat::mcset ru "OK"
+::msgcat::mcset ru "Are you sure you want to unban all outcasts in this room?\n There will be no backup: you're either kind-hearted or not :)" \
+"Вы уверены, что хотите разбанить всех забаненных в этой комнате?\n Это действие нельзя будет отменить: либо вы добрый человек, либо нет :)"
+::msgcat::mcset ru "Plugins options." "Настройки плагинов."
+::msgcat::mcset ru "Redirect output of /visit* and /bldhelp commands to a special monitor window. Use <Ctrl-m> to toggle between monitor states." \
+"Перенаправлять вывод команд /visit* и /bldhelp в специальное окно монитора. Для включения/выключения окна пользуйтесь сочетанием клавиш Ctrl-m."
+::msgcat::mcset ru "The blacklist is already empty." "Чёрный список уже пуст."
+::msgcat::mcset ru "Sending %s %s list"
+::msgcat::mcset ru "Thank you for your generosity! +10 to Reputation!" \
+"Спасибо за ваше великодушие! +10 к Репутации!"
+::msgcat::mcset ru "This option doesn't prevent logging in the rooms where you don't have admin privileges but it helps in not showing such results." \
+"Эта опция не выключает ведение списка джидов в комнатах, где у вас нет админских прав, но с её помощью вам не будут показываться эти результаты."
+::msgcat::mcset ru "Verbosity level." "Уровень подробности."
+# ./bldjid.tcl
+::msgcat::mcset ru " Show all visits to the " " Показать все визиты в "
+::msgcat::mcset ru " Show visits of " " Показать визиты "
+::msgcat::mcset ru "%s to the room %s:" "пользователя %s в комнату %s:"
+::msgcat::mcset ru "%s to all rooms:" "пользователя %s во все комнаты:"
+::msgcat::mcset ru "Group filtering is " "Фильтрование групп "
+::msgcat::mcset ru "I can't see any JID of this user." "Я не вижу ни одного джида этого пользователя."
+::msgcat::mcset ru "Index out of range." "Индекс вне диапазона."
+::msgcat::mcset ru "JIDs gathering is disabled." "Сбор джидов выключен."
+::msgcat::mcset ru "List for the requested room doesn't exist. Make sure you provide a full room's JID, if JIDs gathering is turned on, or if you use Loose match rules." \
+"Список для запрошенной комнаты не существует. Убедитесь, что вы ввели полный джид комнаты, сбор джидов включен или вы используете Нестрогое совпадение."
+::msgcat::mcset ru "OFF." "выключено."
+::msgcat::mcset ru "ON." "включено."
+::msgcat::mcset ru "Parameters expected. Type /bldhelp for usage examples." \
+"Здесь должны идти параметры. Наберите /bldhelp для получения справки."
+::msgcat::mcset ru "Short usage examples for Bldjid plugin" "Примеры использования команд плагина Bldjid"
+::msgcat::mcset ru "The blacklist is already empty for %s." "Чёрный список комнаты %s уже пуст."
+::msgcat::mcset ru "The list is empty." "Список пуст."
+::msgcat::mcset ru "You turned off showing results in the rooms where you don't have admin privileges." \
+"Вы отключили показ результатов в комнатах, где у вас нет админских прав."
+::msgcat::mcset ru "\nBan in all rooms where you have admin privileges: \n/bldjid JID \nSome reason for banning (optional). \n\nUnban a banned person in these rooms: \n/unbldjid JID \n\nBan a user in the current room by his/her JID: \n/banjid JID \nSome reason for banning (optional). \n\nUnban all people banned in the current room: \n/amnesty \n\nShow all visitors of the current room: \n/visitors \n\nShow all visitors of rooms that match *room*: \n/visitors room \n\nShow visits made by someone whose nick matches *nick*: \n/visited nick \n\nShows visits made by *nick*, to the rooms that match *room*: \n/visited nick \nroom \n\nBan in all rooms where you have admin privileges: \n?n? means an item number from a list given by a /visit* command. \n/bldjid ?n? \nSome reason for banning (optional). \n\nBan in the current room by a number from a list given by a /visit* command. \n/banjid ?n? \nSome reason for banning (optional). \n\nClear the current monitor window: \n/clearmon \n\nTo toggle between Show and Close monitor states use <Control-m> shortcut. \n\nSee README file for more information. \nVisit Tkabber -> Customize -> Plugins -> Bldjid \nto tune the plugin for your needs." \
+"\nЗабанить во всех комнатах, где у вас есть админские права: \n/bldjid JID \nПричина бана (необязательна). \n\nРазбанить забаненного пользователя в таких комнатах: \n/unbldjid JID \n\nЗабанить в текущей комнате пользователя по его/её джиду: \n/banjid JID \nПричина бана (необязательна). \n\nРазбанить всех забаненных в текущей комнате: \n/amnesty \n\nПоказать всех посетителей в текущей комнате: \n/visitors \n\nПоказать всех посетителей комнаты, название которой подходит к *room*: \n/visitors room \n\nПоказать визиты пользователя, чей ник подходит к *nick*: \n/visited nick \n\nПоказать визиты, сделанные *nick*, в комнаты, подходящие к *room*: \n/visited nick \nroom \n\nЗабанить во всех комнатах, где у вас есть админские права: \n?n? означает номер в списке, выведенном по команде /visit*. \n/bldjid ?n? \nПричина бана (необязательна). \n\nЗабанить в текущей комнате по номеру в списке, выведенном командой /visit*. \n/banjid ?n? \nПричина бана (необязательна). \n\nОчистить текущее окно монитора: \n/clearmon \n\nЧтобы показать/скрыть монитор, воспользуйтесь сочетанием клавиш <Control-m>. \n\nПодробное описание команд читайте в файле README. \nЗайдите в Tkabber -> Настройки -> Plugins -> Bldjid, \nчтобы настроить плагин под ваши нужды."
+::msgcat::mcset ru "current room:" "текущую комнату:"
+::msgcat::mcset ru "room %s:" "комнату %s:"
+::msgcat::mcset ru "rooms that match *%s*:" "комнаты, названия которых подходят к *%s*:"
+::msgcat::mcset ru "users matching *%s* to all rooms:" "пользователей, чьи ники подходят к *%s*, во все комнаты:"
+::msgcat::mcset ru "users matching *%s* to the rooms that match *%s*:" \
+"пользователей, чьи ники подходят к *%s*, в комнаты, подходящие к *%s*:"



More information about the Tkabber-dev mailing list