Tabbrowser Preferences Extension
- alanjstr
- Moderator
- Posts: 9100
- Joined: November 5th, 2002, 4:43 pm
- Location: Anywhere but here
- Contact:
afaik, TBE is jp-JP which is why you get warnings about the language when you install.
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
- Chris Cook
- Posts: 898
- Joined: December 14th, 2002, 9:57 am
- Location: Québec, Canada
- Contact:
alanjstr wrote:afaik, TBE is jp-JP which is why you get warnings about the language when you install.
TBE includes support for jp-JP AND en-US (obviously). My question is what would happen if his extension supported only jp-JP and my application uses the en-US localization? Would it simply not work or would it have empty strings for the content?
- Dalai-Lama
- Posts: 64
- Joined: February 16th, 2003, 7:14 pm
- Location: France
Re: Extension localization
I have traduce TBE in french (only 2/3 expressions that i don't understand) so if you want i can send you the traduction or something like thatChris Cook wrote:If there are any volunteers to make translations of the "Tabbrowser Preferences" content for your prefered language, let me know. Better to start while its small I guess.
- Dalai-Lama
- Posts: 64
- Joined: February 16th, 2003, 7:14 pm
- Location: France
- Chris Cook
- Posts: 898
- Joined: December 14th, 2002, 9:57 am
- Location: Québec, Canada
- Contact:
Re: Extension localization
Dalai-Lama wrote:I have traduce TBE in french (only 2/3 expressions that i don't understand) so if you want i can send you the traduction or something like thatChris Cook wrote:If there are any volunteers to make translations of the "Tabbrowser Preferences" content for your prefered language, let me know. Better to start while its small I guess.
I have translated the extension content to french but feel free to make suggestions.
Code: Select all
<!ENTITY tabBarBehavior.caption "Comportement de la barre des onglets">
<!ENTITY tabBarAutohide.label "Cacher la barre des onglets quand un seul onglet est ouvert">
<!ENTITY tabBehavior.caption "Comportement des onglets">
<!ENTITY addTabBehavior.label "Ouvrir les nouveaux onglets à la page d'accueil">
<!ENTITY linkBehavior.caption "Comportement des liens">
<!ENTITY linkTarget.label "Charger les liens dans:">
<!ENTITY linkTarget.tab "Nouvel onglet">
<!ENTITY linkTarget.window "Nouvelle fenêtre">
<!ENTITY linkTarget.current "Navigateur courant">
- Dalai-Lama
- Posts: 64
- Joined: February 16th, 2003, 7:14 pm
- Location: France
hmmmm i don't see this entity in my files :/
but i think:
"Comportement de la barre des onglets" can be change in "Comportement de la barre d'onglets"
"Cacher la barre des onglets quand un seul onglet est ouvert" -> "Cacher la barre d'onglets quand un seul onglet est ouvert"
"Ouvrir les nouveaux onglets à la page d'accueil" sounds strange, what's the english for this ? I think we can translate it in "Ouvrir les nouveaux onglets en page d'accueil" ...
"Comportement" i think we can say "gestion" (management) it's better i think
But the others are fine
but i think:
"Comportement de la barre des onglets" can be change in "Comportement de la barre d'onglets"
"Cacher la barre des onglets quand un seul onglet est ouvert" -> "Cacher la barre d'onglets quand un seul onglet est ouvert"
"Ouvrir les nouveaux onglets à la page d'accueil" sounds strange, what's the english for this ? I think we can translate it in "Ouvrir les nouveaux onglets en page d'accueil" ...
"Comportement" i think we can say "gestion" (management) it's better i think
But the others are fine
- Dalai-Lama
- Posts: 64
- Joined: February 16th, 2003, 7:14 pm
- Location: France
- Dalai-Lama
- Posts: 64
- Joined: February 16th, 2003, 7:14 pm
- Location: France
- Chris Cook
- Posts: 898
- Joined: December 14th, 2002, 9:57 am
- Location: Québec, Canada
- Contact:
Dalai-Lama wrote:another thing, the accents (é à è ...) don't work i think, you have to change them.
I know about this. I left them for easy reading for everyone else.
I took your changes for "des ongles" -> "d'ongles".
I think I will change the english phrase "Open new tabs at the home page" to "Load the home page for new tabs" as the former doesn't seem clear to everyone. How is "Charger la page d'accueil pour les nouveaux onglets" for the french?
I'm not sure why you suggest "gestion" instead of "comportement" since I'm talking about how tabs or links "behave/function" and not about management. It could be used instead though I guess.
Last edited by Chris Cook on March 9th, 2003, 4:28 pm, edited 1 time in total.
- RAF
- Moderator
- Posts: 12609
- Joined: November 5th, 2002, 2:19 pm
- Location: .nl
- Chris Cook
- Posts: 898
- Joined: December 14th, 2002, 9:57 am
- Location: Québec, Canada
- Contact:
- RAF
- Moderator
- Posts: 12609
- Joined: November 5th, 2002, 2:19 pm
- Location: .nl
- Chris Cook
- Posts: 898
- Joined: December 14th, 2002, 9:57 am
- Location: Québec, Canada
- Contact:
Localization help
Can anyone tell me what, if anything, special I need to do to get an extension to support multiple localizations? I've created all the locales and updated the xpi install script to install the different locales. If I install it over a previous extension version there does not seems to be any problems (although I haven't tried it with a non-english distro). However, if I install it in a clean version the browser won't run following the extension install.
Looking at the chrome.rdf reveals that all the specified locales were installed. I've checked over the code and everything looks ok so I'm left wondering if the script should install only the locale that is used by the application. Piro installs 2 locales in TBE though. Anyone have any thoughts?
Looking at the chrome.rdf reveals that all the specified locales were installed. I've checked over the code and everything looks ok so I'm left wondering if the script should install only the locale that is used by the application. Piro installs 2 locales in TBE though. Anyone have any thoughts?
Code: Select all
var version = '0.3';
var err = initInstall('Tabbrowser Preferences', 'tabprefs', version),
UChrome = getFolder('Chrome'),
messages = loadResources('install.properties'),
files = [];
var contentFlag = CONTENT | DELAYED_CHROME;
var localeFlag = LOCALE | DELAYED_CHROME;
logComment('initInstall: ' + err);
setPackageFolder(UChrome);
addFile('Chris Cook', 'tabprefs.jar', UChrome, '');
files.push(UChrome+'tabprefs.jar');
var folder = getFolder(UChrome, 'tabprefs.jar');
registerChrome(contentFlag, folder, 'content/tabprefs/');
registerChrome(localeFlag, folder, 'locale/en-US/tabprefs/');
registerChrome(localeFlag, folder, 'locale/fr-FR/tabprefs/');
registerChrome(localeFlag, folder, 'locale/de-DE/tabprefs/');
registerChrome(localeFlag, folder, 'locale/nl-NL/tabprefs/');
registerChrome(localeFlag, folder, 'locale/sv-SE/tabprefs/');
registerChrome(localeFlag, folder, 'locale/it-IT/tabprefs/');
err = getLastError();
if (err == SUCCESS) {
performInstall();
alert(messages.complete);
}
else {
cancelInstall(err);
}