Bug 636 - Change name of web interface
: Change name of web interface
Status: RESOLVED WORKSFORME
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: unspecified
: All All
: P5 trivial (vote)
: Future
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-10-27 08:54 UTC by Jim Willsher
Modified: 2005-08-08 11:21 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Willsher 2004-10-27 08:54:40 UTC
This really is trivial, but it's worth mentioning nontheless.

When you have loads of applications open in Windows, the text in the Taskbar 
gets truncated. As such, all I can currently see in the Windows Taskbar 
is "Welcom...".

Would it not make sense to change the HTML TITLE from "Welcome to Squeezebox" 
to "Squeezebox" ? That way no matter how it was truncated it would be easier 
to find the right window (very few apps start with "Squ...".

Jim
Comment 1 Vidur Apparao 2004-11-04 12:45:57 UTC
FWIW, you can make the change on your local machine by modifying the file
strings.txt. Look for the entry for WELCOME_TO_SQUEEZEBOX and modify the English
string that follows it.
Comment 2 KDF 2004-11-09 10:44:28 UTC
or even creating a files called slimserver-strings.txt which wouldnt' be
overwritten during upgrades.  it takes precedence over strings.txt for any
entries you want to alter.  Just copy the WELCOME_TO_SQUEEZEBOX (seems to be
WELCOME_TO_SLIMSERVER for the 5.4 pre-release) section, and change the text to
be how you want it.  this coudl probably be closed since this is already a
readily customisable option.
Comment 3 Jim Willsher 2004-11-16 08:16:59 UTC
I can't seem to get this to work. I've created a 
file /usr/local/slimserver/slimserver-strings.txt and given it the same 
owner/permissions as strings.txt. I've restarted the daemon. No change :-(

My file contains:

WELCOME_TO_SQUEEZEBOX
        DE      Willkommen bei Squeezebox
        DK      Velkommen til Squeezebox
        EN      Squeezebox
        ES      Bienvenido al Squeezebox
        FI      Squeezebox Tervetuloa!
        FR      Bienvenue sur la Squeezebox
        IT      Benvenuto a Squeezebox
        NL      Welkom bij Squeezebox
        NO      Velkommen til Squeezebox
        PT      Bem-vindo ao Squeezebox
        SE      Välkommen till Squeezebox


I'm running Centos 3.1 (essentially RedHat Enterprise), and I'm on version 
5.3.1 of SlimServer.

Heeelllppppp!!!!!!

Many thanks, Jim
Comment 4 KDF 2004-11-16 19:11:33 UTC
maybe its WELCOME_TO_SLIMSERVER in 5.3.1 as well, i can't rememeber.
also, it might be due to browser caching, or html caching on the part of the
server.  go into server settings, performance, and turn off html caching. 
refresh the browser and then you can turn it back on.  

I've tested the change to slimserver-strings.txt myself and it does work, so
keep trying.  it'll get there :)
Comment 5 KDF 2004-11-19 22:28:30 UTC
any luck jim?
Comment 6 Jim Willsher 2004-11-20 01:19:28 UTC
Nope, still can't get it to work. Most likely something I'm doing/not doing.

I'm running on Linux (CentOs 3.3, otherwise known as RHEL 3) and I'm now using 
version 5.4.0 of Squeeze. My strings.txt file is in /usr/local/slimserver, and 
so that is where I've created my slimserver-strings.txt file. The permissions 
on the two files are the same.

I notice that the /usr/local/slimserver/HTML/Default/index.html file contains:

<title>[% "WELCOME_TO_SQUEEZEBOX" | string %]</title>


I also notice that the /usr/local/slimserver/slimserver.pl file contains:

Slim::Utils::Strings::init(catdir($Bin,'strings.txt'), "EN");

but I can't find anywhere which references slimserver-strings.txt

So, I'm not realy sure where to look next, as I'm not familiar with the 
internals of the HTTP interface.


Jim
Comment 7 Blackketter Dean 2004-11-23 10:19:00 UTC
I definitely recommend updating to 5.4, that will likely make this easier.
Comment 8 KDF 2005-08-08 11:21:40 UTC
for future reference: from Slim\Utils\Strings.pm in 6.x

sub stringsFiles {

	my @stringsFiles = qw(
		strings.txt
		.slimp3-strings.txt
		slimp3-strings.txt 
		.slimserver-strings.txt
		slimserver-strings.txt
		.custom-strings.txt
		custom-strings.txt
	);

	return @stringsFiles;
}

Tested a change of string using slimserver-strings.txt with 6.x and it works now.