Jump to content


Important Announcement!

Please read this post about our new Privacy Policy


Photo

Open Link Host - Ver. 1.3.2


  • Please log in to reply
46 replies to this topic

#1 Captain Caveman

Captain Caveman

    Advanced Member

  • Moderator
  • 272 posts
  • Gender:Male
  • Location:The Netherlands


  • Translator for [No translator]
  • Extension Developer: Yes
  • Extensions: Copy Link Name, Open Link Host, Web Search Pro, Grocery List Generator, Quick Locale Switcher, PONG! Multiplayer, My Image Here, Drag & DropZone Searching, FabTabs, Kongregate Sidebar

Posted 02 August 2005 - 03:53 PM

Creator: Martijn Kooij
Ext. Version: 1.3.2

Extension is compatible to:
Firefox: 1.0 - 3.0a1
Mozilla Suite: 1.7 - 1.8
Included locales: be-BY bg-BG ca-AD de-DE en-US es-ES fi-FI fr-FR it-IT ja-JP ko-KR mk-MK nb-NO nl-NL pl-PL pt-BR pt-PT ru-RU tr-TR zh-TW
Description: Open the host of a link.

 View on WTS -- Download the extension

Edited by Captain Caveman, 25 July 2007 - 06:14 PM.

Read more about the Mozilla Add-ons I have created on my website.

#2 Goofy

Goofy

    Advanced Member

  • Super Mod
  • 8,437 posts
  • Gender:Male
  • Location:GoofyLand


  • Translator for French (fr)
  • Extension Developer: Yes
  • Extensions: BabelZillaMenu-BabelZilla Glossary-OpenTran...
  • Translation Credits to Goofy
  • My OS Gnu/Linux

Posted 02 August 2005 - 04:07 PM

smile.gif I go and make the french locale if nobody objects cool.gif
Think Global, Make Locales!


Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox

#3 Luana

Luana

    (Just a passionate localizer since 2004!)

  • Admin
  • 3,478 posts
  • Gender:Female
  • Location:(Previously known as MatrixIsAllOver, now simply Luana; I'm from the past, like a ghost...)
  • Interests:Let me dream one better world...<br />Let me believe that we can begin together from here...<br />Let me the time in order to see the volunteers of all international Forums, without distinctions, here for this project!


  • Translator for Italian (it)
  • Extension Developer: No
  • Translation Credits to it: Luana Di Muzio - BabelZilla

Posted 02 August 2005 - 04:24 PM

Pedro? rolleyes.gif
Do you want to co-localize this extension with me?
Or, do you prefere to localize it alone? biggrin.gif
E' meglio tacere ed essere, che dire e non essere (Ignazio, II sec. d. C)
Quod scripturae mandatur, non solum praesentibus sed futuris prodesse valeat...

#4 Pedro

Pedro

    eXtenZilla IT Member

  • Members
  • 711 posts
  • Gender:Male
  • Location:Ferrara - Italia


  • Extension Developer: No
  • Translation Credits to Luca Pedrazzi - www.extenzilla.org

Posted 02 August 2005 - 04:31 PM

Let's go M.I.A.O!! biggrin.gif

@Captain Caveman
I have seen that the options window isn't localizated tongue.gif
Are you sure that I am a translator? Have you seen my english? IPB Image
IPB Image IPB Image IPB Image
Goofy's corrections © inside. The dog with the glasses has come back.

#5 Goofy

Goofy

    Advanced Member

  • Super Mod
  • 8,437 posts
  • Gender:Male
  • Location:GoofyLand


  • Translator for French (fr)
  • Extension Developer: Yes
  • Extensions: BabelZillaMenu-BabelZilla Glossary-OpenTran...
  • Translation Credits to Goofy
  • My OS Gnu/Linux

Posted 02 August 2005 - 04:34 PM

dear Pedro, I just localized the two missing strings of the about window, just have a look at the edit message above biggrin.gif biggrin.gif

The french locale is here smile.gif

Attached Files


Think Global, Make Locales!


Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox

#6 Luana

Luana

    (Just a passionate localizer since 2004!)

  • Admin
  • 3,478 posts
  • Gender:Female
  • Location:(Previously known as MatrixIsAllOver, now simply Luana; I'm from the past, like a ghost...)
  • Interests:Let me dream one better world...<br />Let me believe that we can begin together from here...<br />Let me the time in order to see the volunteers of all international Forums, without distinctions, here for this project!


  • Translator for Italian (it)
  • Extension Developer: No
  • Translation Credits to it: Luana Di Muzio - BabelZilla

Posted 02 August 2005 - 04:36 PM

We will wait for with patience! biggrin.gif

ADDED
Ooops, the localization is really short!
So, I think Pedro may do it alone wink.gif
E' meglio tacere ed essere, che dire e non essere (Ignazio, II sec. d. C)
Quod scripturae mandatur, non solum praesentibus sed futuris prodesse valeat...

#7 Captain Caveman

Captain Caveman

    Advanced Member

  • Moderator
  • 272 posts
  • Gender:Male
  • Location:The Netherlands


  • Translator for [No translator]
  • Extension Developer: Yes
  • Extensions: Copy Link Name, Open Link Host, Web Search Pro, Grocery List Generator, Quick Locale Switcher, PONG! Multiplayer, My Image Here, Drag & DropZone Searching, FabTabs, Kongregate Sidebar

Posted 02 August 2005 - 05:22 PM

Hi guys! Newbie here smile.gif
You know I wanted to keep this extension as small as possible... So, I found another way to add the description you see in the Tools/extensions menu which saves quite a lot of space, cause it does not need a properties file.

How does this work now? Should I upload the new file?

ps1. Before today I did not even know you could also translate the description...

Read more about the Mozilla Add-ons I have created on my website.

#8 Ptit Lutin

Ptit Lutin

    Tech Admin

  • Admin
  • 901 posts


  • Translator for French (fr)
  • Extension Developer: No

Posted 02 August 2005 - 05:37 PM

QUOTE(Captain Caveman @ Aug 2 2005, 18:22)
Hi guys! Newbie here smile.gif
You know I wanted to keep this extension as small as possible... So, I found another way to add the description you see in the Tools/extensions menu which saves quite a lot of space, cause it does not need a properties file.

How does this work now? Should I upload the new file?

ps. Before today I did not even know you could also translate the description...

View Post


Hi smile.gif

A better solution than option 2 here ?
http://babelzilla.or...hp?showtopic=13

Could you explain that please wink.gif

#9 Captain Caveman

Captain Caveman

    Advanced Member

  • Moderator
  • 272 posts
  • Gender:Male
  • Location:The Netherlands


  • Translator for [No translator]
  • Extension Developer: Yes
  • Extensions: Copy Link Name, Open Link Host, Web Search Pro, Grocery List Generator, Quick Locale Switcher, PONG! Multiplayer, My Image Here, Drag & DropZone Searching, FabTabs, Kongregate Sidebar

Posted 02 August 2005 - 05:44 PM

(I did not say better, just smaller, and maybe even easier for the translators...)
Option 2 requires 1 extra prefs.js file, and n extra ext.properties files.

My option uses the translation from the normal dtd file, and is added (only) on first run of the extension, dynamicly from code.
So you need no extra files, no extra places to translate something, and only 2 lines of code. The only disadvantage is, that it wont change if you change your locale... (Even that can me aranged, but it would require +/- 4 exrta lines of code...)
Read more about the Mozilla Add-ons I have created on my website.

#10 Ptit Lutin

Ptit Lutin

    Tech Admin

  • Admin
  • 901 posts


  • Translator for French (fr)
  • Extension Developer: No

Posted 02 August 2005 - 05:55 PM

QUOTE(Captain Caveman @ Aug 2 2005, 18:44)
(I did not say better, just smaller, and maybe even easier for the translators...)
Option 2  requires 1 extra prefs.js file, and n extra ext.properties files.

Option 2 doesn't require an extra .properties files wink.gif

QUOTE(Captain Caveman @ Aug 2 2005, 18:44)
My option uses the translation from the normal dtd file, and is added (only) on first run of the extension, dynamicly from code.
So you need no extra files, no extra places to translate something, and only 2 lines of code. The only disadvantage is, that it wont change if you change your locale... (Even that can me aranged, but it would require +/- 4 exrta lines of code...)

View Post


sad.gif not very good
Could you give us the code please ?


#11 Goofy

Goofy

    Advanced Member

  • Super Mod
  • 8,437 posts
  • Gender:Male
  • Location:GoofyLand


  • Translator for French (fr)
  • Extension Developer: Yes
  • Extensions: BabelZillaMenu-BabelZilla Glossary-OpenTran...
  • Translation Credits to Goofy
  • My OS Gnu/Linux

Posted 02 August 2005 - 06:03 PM

Very interesting, and far beyond my capacities in terms of code understanding rolleyes.gif
But...
When I tried your last proposition, the initial description (in the extension manager window) remained in english, only the tooltip was set to the french text...
And if you speak of these lines (?)
CODE
document.getElementById("contentAreaContextMenu").addEventListener("popupshowing",Popup,true)
var oPref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.");
if (!oPref.prefHasUserValue("{32D83016-0657-4cd3-B7D2-0B4D12CEC60E}.description")) oPref.setCharPref("{32D83016-0657-4cd3-B7D2-0B4D12CEC60E}.description", document.getElementById("oh-context").getAttribute('tooltiptext'));

they are very likely to concern the tooltip text and not the initial description.

(Maybe I did not understand the whole thing, in that case please forgive me and forget about my nonsense blink.gif )
Think Global, Make Locales!


Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox

#12 Captain Caveman

Captain Caveman

    Advanced Member

  • Moderator
  • 272 posts
  • Gender:Male
  • Location:The Netherlands


  • Translator for [No translator]
  • Extension Developer: Yes
  • Extensions: Copy Link Name, Open Link Host, Web Search Pro, Grocery List Generator, Quick Locale Switcher, PONG! Multiplayer, My Image Here, Drag & DropZone Searching, FabTabs, Kongregate Sidebar

Posted 02 August 2005 - 06:08 PM

1. it does require a properties file doesn't it? If so, then for MY extension, that would be an extra properties file, cause at the moment I don't use one.
2a. I don't think that a basic user will often (or at all) change his/her locale.
2b. It can be done so, but that would require some 4 lines of code extra
2c. The code is just making use of available translations from dtd on an item:
(Purely based on making it as small as possible... No beauty awards...)
CODE

JS:
var oPref =
Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.");
if (!oPref.prefHasUserValue("{32D83016-0657-4cd3-B7D2-0B4D12CEC60E}.description")) oPref.setCharPref("{32D83016-0657-4cd3-B7D2-0B4D12CEC60E}.description", document.getElementById("oh-context").getAttribute('tooltiptext'));

XUL:
<menu label="&openhost.context.main;" id="oh-context" tooltiptext="&openhost.description;">

Read more about the Mozilla Add-ons I have created on my website.

#13 xavivars

xavivars

    Advanced Member

  • Members
  • 62 posts
  • Location:Benissa - País Valencià
  • Extension Developer: No
  • Translation Credits to Xavi Ivars - Softcatalà

Posted 02 August 2005 - 06:15 PM

IMHO, the size of a properties file with a description won't be bigger than 100bytes, and once compressed, it size will be more or less a half. So, 50 bytes per locale doesn't increase the size of the extension too much....

#14 Goofy

Goofy

    Advanced Member

  • Super Mod
  • 8,437 posts
  • Gender:Male
  • Location:GoofyLand


  • Translator for French (fr)
  • Extension Developer: Yes
  • Extensions: BabelZillaMenu-BabelZilla Glossary-OpenTran...
  • Translation Credits to Goofy
  • My OS Gnu/Linux

Posted 02 August 2005 - 06:23 PM

Sorry captain caveman,I tested again with a clean new profile in fr without changing locale pref, and it still does not work :
- everything else is in french, and the tooltip of course
- the initial description remains in english dry.gif

... But I understand perfectly the challenge (half for fun ?) of the shortest possible code. I think there is much to remove from the content/contents.rdf files that include useless stuff (?) since the about.xul file gives the informations.

maybe this could save some bytes :
instead of having one "openhost" folder per locale, just have one which includes all the locales, as in many extensions I know (not sure it is byte saving, just suggesting)
Think Global, Make Locales!


Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox

#15 Captain Caveman

Captain Caveman

    Advanced Member

  • Moderator
  • 272 posts
  • Gender:Male
  • Location:The Netherlands


  • Translator for [No translator]
  • Extension Developer: Yes
  • Extensions: Copy Link Name, Open Link Host, Web Search Pro, Grocery List Generator, Quick Locale Switcher, PONG! Multiplayer, My Image Here, Drag & DropZone Searching, FabTabs, Kongregate Sidebar

Posted 02 August 2005 - 07:09 PM

Ok, dinner helps a lot...

I am quite sure it will work with this version.
The description will now change (after Ff restart/open new window) when you change your locale, and it saved me 83 characters doing that smile.gif
I also took up on the idea of removing the locale's openhost subfolder, which will save 9 characters per locale...

Goofy, it might be that I screwed up you fr-FR translation by opening it in a dutch (non-unicode) text editor (never was really good in understanding character sets...). Could you check it?

I will update the main download file in a minute...

Enjoy translating these 6 lines!
Read more about the Mozilla Add-ons I have created on my website.

#16 Pedro

Pedro

    eXtenZilla IT Member

  • Members
  • 711 posts
  • Gender:Male
  • Location:Ferrara - Italia


  • Extension Developer: No
  • Translation Credits to Luca Pedrazzi - www.extenzilla.org

Posted 02 August 2005 - 07:33 PM

Ok!! Now I can post the definitive italian locale!! biggrin.gif

(Removed old zip file)
Are you sure that I am a translator? Have you seen my english? IPB Image
IPB Image IPB Image IPB Image
Goofy's corrections © inside. The dog with the glasses has come back.

#17 Goofy

Goofy

    Advanced Member

  • Super Mod
  • 8,437 posts
  • Gender:Male
  • Location:GoofyLand


  • Translator for French (fr)
  • Extension Developer: Yes
  • Extensions: BabelZillaMenu-BabelZilla Glossary-OpenTran...
  • Translation Credits to Goofy
  • My OS Gnu/Linux

Posted 02 August 2005 - 08:42 PM

(apart from saving bytes, what I do like as a kind of funny challenge - what with having a kind of bookmarklet ? laugh.gif )

Don't be afraid translators, here are the ONLY strings to translate :
CODE

<!ENTITY openhost.context.main "Open Link Host">
<!ENTITY openhost.description "Open the host of a link.">
<!ENTITY openhost.createdby  "Created by:">
<!ENTITY openhost.context.cuwi "In Current Window">
<!ENTITY openhost.context.newi "In New Window">
<!ENTITY openhost.context.neta "In New Tab">


Even if the core code is subject to various weird rolleyes.gif adjustments, I think this set of strings will remain, so you can even add your direct translation down here ! cool.gif
Think Global, Make Locales!


Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox

#18 victory

victory

    Advanced Member

  • Members
  • 237 posts


  • Translator for [No translator]
  • Extension Developer: No

Posted 02 August 2005 - 10:32 PM

ja_JP locale smile.gif

#19 xavivars

xavivars

    Advanced Member

  • Members
  • 62 posts
  • Location:Benissa - País Valencià
  • Extension Developer: No
  • Translation Credits to Xavi Ivars - Softcatalà

Posted 03 August 2005 - 12:41 AM

Here you hava Catalan locale (ca-AD)

Attached Files



#20 Ptit Lutin

Ptit Lutin

    Tech Admin

  • Admin
  • 901 posts


  • Translator for French (fr)
  • Extension Developer: No

Posted 03 August 2005 - 02:50 AM

description localization still doesn't work.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users