Project

General

Profile

MUC translation of system notice' messages

Aleksandr Kostyrev
Added almost 5 years ago

Good day!

When I create new MUC room I receive those messages:

[20:15:27] *** New room created

[20:15:27] *** Room is locked. Please configure.

[20:15:27] *** Welcome! You created new Multi User Chat Room. Room is locked now. Configure it please!

[20:15:27] *** Room is now unlocked

What is the right way to do translation of those messages to different languages ( in my case - Russian)

And the same question for Room configuration window with:

Natural-Language Room Name

Short Description of Room

Make Room Publicly Searchable

and such

I want translate those too.

thank you in advance!


Replies (3)

Avatar?id=6098&size=32x32

Added by Bartosz Malkowski TigaseTeam almost 5 years ago

No. All messages are hardcoded.

To allow it, we should modify our code.

(1)

Added by Aleksandr Kostyrev almost 5 years ago

Our programmers downloaded source code of MUC component from here https://repository.tigase.org/git/tigase-muc.git

changed there system messages

build it with eclipse

handed over me that new jar

I replaced old jar in $TIGASE_HOME/jars/tigase-muc.jar with custom one

but all the system messages are still in English.

How can I force tigase to use our custom build of muc component?

our config:

--cluster-mode = false

config-type = --gen-config-def

--debug = server,muc

--bosh-extra-headers-file = etc/bosh-extra-headers.txt

--user-db = mysql

--auth-db = tigase-auth

--admins = admin@example.org,shak@example.org

--user-db-uri = jdbc:mysql://dbhost/tigasedb?user=test_user&password=test_pass&autoCreateUser=true

--virt-hosts = example.org

--sm-plugins = +jabber:iq:auth,+urn:ietf:params:xml:ns:xmpp-sasl,+urn:ietf:params:xml:ns:xmpp-bind,+urn:ietf:params:xml:ns:xmpp-session,+jabber:iq:register,+jabber:iq:roster,+presence,+jabber:iq:privacy,+jabber:iq:version,+http://jabber.org/protocol/stats,+starttls,+msgoffline,+vcard-temp,+http://jabber.org/protocol/commands,+jabber:iq:private,+urn:xmpp:ping,+basic-filter,+domain-filter,+pep,-zlib,+message-archive-xep-0136

--auth-db-uri = jdbc:mysql://dbhost/EXIM?user=test_user&password=test_pass

--comp-name-2=muc

--comp-class-2=tigase.muc.MUCComponent

(1)
Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam almost 5 years ago

Make sure the old jar for the original MUC is not in the folder under a different name. Also remember to restart the Tigase server after you replaced library with a new one.

    (1-3/3)