Skip to content

Commit

Permalink
Исправление для модуля EchoLink
Browse files Browse the repository at this point in the history
Исправлены неверные падежи для информации о количестве подключенных станций
  • Loading branch information
circool committed Apr 1, 2020
1 parent d33a5cd commit 72aa6c4
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- [X] Создать клипы для имеющихся в системе аналогов
- [ ] Модуль EchoLink
- [X] Создать клипы для имеющихся в системе аналогов
- [ ] Изменить порядок информирования о количестве подключенных станций
- [X] Изменить порядок информирования о количестве подключенных станций
- [X] Модуль Frn
- [X] Создать клипы для имеющихся в системе аналогов
- [X] Модуль Help
Expand Down
Binary file added ru_RU/EchoLink/connected_station.wav
Binary file not shown.
Binary file added ru_RU/EchoLink/connected_station1.wav
Binary file not shown.
33 changes: 33 additions & 0 deletions ru_RU/events.d/local/EchoLink.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Исправление для модуля EchoLink
# by R2ADU
#
#

###############################################################################
#
# EchoLink module event handlers
#
###############################################################################


#
# This is the namespace in which all functions and variables below will exist.
# The name must match the configuration variable "NAME" in the
# [ModuleEchoLink] section in the configuration file. The name may be changed
# but it must be changed in both places.
#
namespace eval EchoLink {


proc status_report {} {
variable num_connected_stations;
variable module_name;
global active_module;

if {$active_module == $module_name} {
speakNumber "EchoLink" $num_connected_stations "connected_station"
playSilence 200
}
}

}
2 changes: 1 addition & 1 deletion ru_RU/events.d/local/locale.tcl
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ proc speakNumber {module_name value unit} {
return;
}
regexp {^0*(\d+)} $value _dummy value
if {$unit=="minute" || $unit=="thousand" || $unit=="unit_mps" || $unit=="integer"} {
if {$unit=="minute" || $unit=="thousand" || $unit=="unit_mps" || $unit=="integer" || $unit=="connected_station"} {
set gender "f"
} else {
set gender ""
Expand Down

0 comments on commit 72aa6c4

Please sign in to comment.