Hi,
I am constantly changing browser language and switch between two URL addresses. I would like to display this two info (language and server name from URL) in title bar.
DETAILSI have 4 keyboard shortcuts:
First shortcut to change language settings to English:
Code: Select all
Services.prefs.setCharPref("intl.accept_languages", "en");
Second shortcut to change language settings to German language:
Code: Select all
Services.prefs.setCharPref("intl.accept_languages", "de");
Third shortcut to change URL to my 'production' server:
Code: Select all
gBrowser.loadURI('http://production.myserver.com/path_to_the_html_file');
Forth shortcut to change URL to my 'test' server:
Code: Select all
gBrowser.loadURI('http://test.myserver.com/path_to_the_html_file');
Is there a way after executing each of above shortcuts to display both 'current language' and 'only current server name from URL address' info in title bar and store the values to be preserved in title bar display after Firefox restart?
I would like to display something like (general syntax):
server_name [language]
Samples:
production.myserver.com [en]
production.myserver.com [de]
test.myserver.com [en]
test.myserver.com [de]
Thanks