Changing Language and Time Announcements

Home Forums Feature Requests Changing Language and Time Announcements

This topic contains 7 replies, has 2 voices, and was last updated by  Aaron, N3MBH 2 months, 2 weeks ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2875

    Hi,
    I find your work very helpful.
    I am running an EchoLink Simplex Node (DQ4T) for our local Amateur Radio Club. As you probably can imagine, our members would like to have the announcements in German. Changing the default language alone is not enough, the German language has some peculiarities when it comes to quoting numbers. Also we use the 24 hour clock. Some people have changed the .tcl programs to correctly spell the time in German, but I have not found a way to insert this program snippet into the framework without being eliminated on the next “recompile” action. Any ideas?

    Keep up the good work!

    73
    Georg, DD8ZX

    #2876

    Aaron, N3MBH
    Forum Administrator

    What file are you trying to modify the TCL in? Once I know that, I can probably offer some direction.

    73,
    Aaron – N3MBH

    OpenRepeater is offered free of charge. Find out how you can support us.

    #2877

    Hi Aaron,
    thanks for your speedy reply.
    The modified file is located in /usr/share/svxlink/events.d/local, is called locale.tcl. File size about 5 K. Can I just paste it in this window or is there a feature to upload a file?

    Thank you
    73

    Georg, DD8ZX

    #2878

    Aaron, N3MBH
    Forum Administrator

    I just wanted to confirm you meant:
    /usr/share/svxlink/events.d/local/locale.tcl

    and not
    /usr/share/svxlink/events.d/local/Logic.tcl
    This file is modified by ORP.

    The path for the locale.tcl above doesn’t exist on ORP by default. There is a locale.tcl in the directory above that though. If it is the Logic.tcl file instead that is modified by a PHP class, so you may need to modify that. If it is a locale.tcl file then we will need to figure out how that would be implemented.

    73,
    Aaron – N3MBH

    OpenRepeater is offered free of charge. Find out how you can support us.

    #2879

    Hi,
    /usr/share/svxlink/events.d/local/locale.tcl is correct.

    Just to clarify, usr/share/svxlink/sounds/de_DE contains the German sound files, they are not renamed to German, but retain their original English names, just the contents is German. There are some files with German names when there is no English equivalent like “Uhr”.

    Sorry for the trouble
    73
    Georg, DD8ZX

    #2880

    Aaron, N3MBH
    Forum Administrator

    OK, the “/usr/share/svxlink/events.d/local/locale.tcl” is not written to by ORP so that should remain unchanged. If you look at the “/usr/share/svxlink/events.d/local/Logic.tcl” in the same folder, that gets written to by ORP. Any TCL or CONG files that get written to by ORP should have a custom comment headers at the top stating so. Take a look at the Logic.tcl in that folder or the svxlink.conf file and you will see what I mean.

    My guess at this point is ORP is not breaking your locale.tcl file as it should not be writing to it. I have not used it before, so I don’t know off hand if you have to declare the file in a different file like svxlink.conf that does get overwritten by ORP.

    I would imagine that you are changing your DEFAULT_LANG in the svxlink.conf from “en_US” to “de_DE”, in that case, yes that would get overwritten by ORP. 1) you could modify the PHP class that writes this as the language is currently hard coded. This is located at “/var/www/openrepeater/includes/classes/SVXLink.php”. There are two occurrences of “en_US” in this file that would need replaced. 2) A simpler alternative that should work is to just rename your language sound folders. Maybe change “en_US” to “en_US_orig” and change “de_DE” to “en_US”

    Let me know where that gets you.

    73,
    Aaron – N3MBH

    OpenRepeater is offered free of charge. Find out how you can support us.

    #2898

    Problem solved. Renamed the language files to en_US, deleted old en_US and copied them to the sounds directory. Speaking perfect German now!

    73

    Georg, DD8ZX

    #2900

    Aaron, N3MBH
    Forum Administrator

    Glad to hear and thanks for reporting back so others that wish to do the same know how.

    At some point, I would like to make language switching a part of the UI, but it will still require some level of customization and obtaining/creating the appropriate language packs and maybe modifying some localization settings, so that is one reason that it’s not on the top of the list. Then there is adding translation options to the UI as well which is a whole other animal. Having been trying to work that way slowly such as separating the back-end functions from the front end code…is a progression for sure.

    73,
    Aaron – N3MBH

    OpenRepeater is offered free of charge. Find out how you can support us.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.