Welcome Guest ( Log In | Register )


Recommended Addon
sponsored link
Sponsored link

2 Pages V   1 2 >  
Reply to this topicStart new topic
> AMO Localiser - Ver. 0.3a, Updated: 14/09/08 21:50
eviljeff
post Aug 18 2008, 22:41
Post #1


Advanced Member
***

Group: Members
Posts: 204
Joined: 29-January 06
From: sheffield
Member No.: 591
Extension Developer: Yes
Extensions: attachmentextractor
AMOLocaliser

Translator for English (en-GB / British)



Creator: Andrew Williamson
Ext. Version: 0.3a

Extension is compatible to:
Firefox: 3.0 - 3.0.*
Included locales: de-DE en-GB en-US fr-FR it-IT ja-JP nl-NL pl-PL pt-BR pt-PT tr-TR
Description: Simplifies adding localised text to your add-on's description, etc on Addons.Mozilla.Org

 View on WTS -- Download the extension

This post has been edited by eviljeff: Sep 14 2008, 20:50
Go to the top of the page
 
+Quote Post
eviljeff
post Aug 18 2008, 23:03
Post #2


Advanced Member
***

Group: Members
Posts: 204
Joined: 29-January 06
From: sheffield
Member No.: 591
Extension Developer: Yes
Extensions: attachmentextractor
AMOLocaliser

Translator for English (en-GB / British)



Thanks everyone (in advance) for contributing. I'm still ironing out some bugs and some procedures in that the add-on is going to be used as a tool to update its own meta-data on amo so please bear with me for a while.

I don't imagine this to go past 0.3 or 0.4 as its supposed to be light-weight simple add-on.

Still to do:
* apply button needs to be enabled on every page in every tab not just the current one
* read chrome manifest - read and process locale lines
* cross match locale lines from manifest with amo.properties matches to get locale->file content
* work with jars inside xpis
* work with pre-gecko1.9 localisation workarounds (specifying {..}.description in prefs.js)
* load automatically on submit pages as we know the xpi.
Go to the top of the page
 
+Quote Post
markh
post Aug 19 2008, 06:39
Post #3


BZ Jungle Guide
Group Icon

Group: Admin
Posts: 3.897
Joined: 24-April 06
From: the culinary and touristically unchallenged parts of the Netherlands
Member No.: 1.264


Extension Developer: No
Translator for Dutch (nl)
My OS Windows
Translation Credits to markh van BabelZilla.org



Well, welcome welcomeani.gif with this awaited extension!


--------------------
Don’t have to be beautiful but it helps

Go to the top of the page
 
+Quote Post
markh
post Aug 19 2008, 07:23
Post #4


BZ Jungle Guide
Group Icon

Group: Admin
Posts: 3.897
Joined: 24-April 06
From: the culinary and touristically unchallenged parts of the Netherlands
Member No.: 1.264


Extension Developer: No
Translator for Dutch (nl)
My OS Windows
Translation Credits to markh van BabelZilla.org



What exactly do you mean by this?
QUOTE
Reuse Add-on with current page
A brief testing suggested that the latest action should be repeated, is that correct?


--------------------
Don’t have to be beautiful but it helps

Go to the top of the page
 
+Quote Post
eviljeff
post Aug 19 2008, 08:25
Post #5


Advanced Member
***

Group: Members
Posts: 204
Joined: 29-January 06
From: sheffield
Member No.: 591
Extension Developer: Yes
Extensions: attachmentextractor
AMOLocaliser

Translator for English (en-GB / British)



QUOTE (markh @ Aug 19 2008, 07:23) *
What exactly do you mean by this? A brief testing suggested that the latest action should be repeated, is that correct?

Sort of. It doesn't reload the xpi/folder, just inserts the data from the last xpi/folder you loaded into the current page. I've not quite got the terminology correct happy.gif
Go to the top of the page
 
+Quote Post
markh
post Aug 19 2008, 08:39
Post #6


BZ Jungle Guide
Group Icon

Group: Admin
Posts: 3.897
Joined: 24-April 06
From: the culinary and touristically unchallenged parts of the Netherlands
Member No.: 1.264


Extension Developer: No
Translator for Dutch (nl)
My OS Windows
Translation Credits to markh van BabelZilla.org



QUOTE (eviljeff @ Aug 19 2008, 09:25) *
Sort of. It doesn't reload the xpi/folder, just inserts the data from the last xpi/folder you loaded into the current page. I've not quite got the terminology correct happy.gif

OK, I have translated as ‘Re-use Add-on data on current page’.
Two remarks:
  • In amo.properties/description: ‘The filename for the properties files are called amo.properties by default.’ I suggest ‘The default filename for the properties file is amo.properties.’
  • The description is not localized; I have attached a version with a localized description here wink.gif
[attachment=100001205:amoLocal...cription.xpi]
Dutch locale added, tested (well, I don’t have any extensions on AMO so I cannot test fully) and released cool.gif


--------------------
Don’t have to be beautiful but it helps

Go to the top of the page
 
+Quote Post
eviljeff
post Aug 19 2008, 21:07
Post #7


Advanced Member
***

Group: Members
Posts: 204
Joined: 29-January 06
From: sheffield
Member No.: 591
Extension Developer: Yes
Extensions: attachmentextractor
AMOLocaliser

Translator for English (en-GB / British)



QUOTE (markh @ Aug 19 2008, 08:39) *
OK, I have translated as ‘Re-use Add-on data on current page’.
Two remarks:
  • In amo.properties/description: ‘The filename for the properties files are called amo.properties by default.’ I suggest ‘The default filename for the properties file is amo.properties.’

Hmm, you're right that the sentence doesn't 'sound' right. I've adopted your suggestion. (And I'm a native English speaker! rolleyes.gif )
QUOTE (markh @ Aug 19 2008, 08:39) *
  • The description is not localized; I have attached a version with a localized description here wink.gif

I'm using localised install.rdf entries:
(http://developer.mozilla.org/en/docs/Localizing_extension_descriptions#Localizing_in_Gecko_1.9)
rather than the preferences workaround pre Firefox3 its just I had to strip it out to workaround the bug in WTS. The install.rdf will contain the same as the Summary entry in amo.properties.

QUOTE (markh @ Aug 19 2008, 08:39) *
Dutch locale added, tested (well, I don’t have any extensions on AMO so I cannot test fully) and released cool.gif
smile.gif

I'd be open to suggestions as to the best way to record everyone's name as a localiser - having to do it manually is a chore but I'd like to give everyone credit for their work. The problem is the supported localisations change and having to contact everyone to get their name and email, and then update the install is a nightmare. In AttachmentExtractor I just directed people here which isn't ideal as you have to register to find it out and even then its difficult. I need for localisers to be able to add their own details.
Go to the top of the page
 
+Quote Post
eviljeff
post Aug 21 2008, 22:43
Post #8


Advanced Member
***

Group: Members
Posts: 204
Joined: 29-January 06
From: sheffield
Member No.: 591
Extension Developer: Yes
Extensions: attachmentextractor
AMOLocaliser

Translator for English (en-GB / British)



No xpi changes but I've added a field in amo.properties called 'LocaliserName' for you to enter your names. My xpi script will then generate <translator> fields for you all in the install.rdf. (Don't start your name with "**" like in the en-US locale or it will be ignored.)

p.s. I accidentally uploaded a .bak file in the xpi. just ignore it or fill it with random text.
Go to the top of the page
 
+Quote Post
eviljeff
post Aug 25 2008, 10:17
Post #9


Advanced Member
***

Group: Members
Posts: 204
Joined: 29-January 06
From: sheffield
Member No.: 591
Extension Developer: Yes
Extensions: attachmentextractor
AMOLocaliser

Translator for English (en-GB / British)



I uploaded v0.2 to addons.mozilla.org yesterday. Its still in the sandbox so won't update automatically. (If you've used it please consider writing a review. Even AMO editors have to follow the rules and get reviews wink.gif)
I'm trialling having the homepage for the add-on and all the associated support functions on mozdev rather than my own website this time, but there are a few issues I'm trying to sort out.
Go to the top of the page
 
+Quote Post
markh
post Aug 25 2008, 12:27
Post #10


BZ Jungle Guide
Group Icon

Group: Admin
Posts: 3.897
Joined: 24-April 06
From: the culinary and touristically unchallenged parts of the Netherlands
Member No.: 1.264


Extension Developer: No
Translator for Dutch (nl)
My OS Windows
Translation Credits to markh van BabelZilla.org



QUOTE (eviljeff @ Aug 25 2008, 10:17) *
I uploaded v0.2 to addons.mozilla.org yesterday. Its still in the sandbox so won't update automatically. (If you've used it please consider writing a review. Even AMO editors have to follow the rules and get reviews wink.gif)
I'm trialling having the homepage for the add-on and all the associated support functions on mozdev rather than my own website this time, but there are a few issues I'm trying to sort out.

Very nice, I hope you get your reviews in quickly. I noticed that the line breaks you used in the properties file do not work:
Attached File  AMO_Localizer____Firefox_add_ons_1219663575951.png ( 4.57K ) Number of downloads: 11


--------------------
Don’t have to be beautiful but it helps

Go to the top of the page
 
+Quote Post
eviljeff
post Aug 25 2008, 12:42
Post #11


Advanced Member
***

Group: Members
Posts: 204
Joined: 29-January 06
From: sheffield
Member No.: 591
Extension Developer: Yes
Extensions: attachmentextractor
AMOLocaliser

Translator for English (en-GB / British)



QUOTE (markh @ Aug 25 2008, 12:27) *
Very nice, I hope you get your reviews in quickly. I noticed that the line breaks you used in the properties file do not work:
Attached File  AMO_Localizer____Firefox_add_ons_1219663575951.png ( 4.57K ) Number of downloads: 11

Yeah. I'm considering changing from the javascript newline charactor (\n) anyway as it causes problems if you use the string in javascript and WTS seems to mangle it too also. Might use <br> and convert it.
Go to the top of the page
 
+Quote Post
Goofy
post Aug 25 2008, 13:50
Post #12


Advanced Member
Group Icon

Group: Super Mod
Posts: 8.357
Joined: 30-July 05
From: GoofyLand
Member No.: 13


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



smile.gif This is a brilliant idea but closedeyes.gif mmh I am stuck in two issues so I cannot test it unfortunately

1. I have tried to download and install this version here on BZ and got only an error message
Attached File  amolocalizer_installbug.png ( 6.16K ) Number of downloads: 7

(it says "unexpected install error")

2. I have tried to install directly the version on amo sandbox and there has been a strange behaviour

- on install, there was no usual button "restart firefox" to complete install
- when browser has been restarted anyway, I got the Tools menu item correctly, and I tried to select one test xpi of mine (with amo.properties inside), but when validation this process all I got was the error console with nothing in rolleyes.gif

my config
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1


--------------------
Think Global, Make Locales!



You like languages? You should contribute to Tatoeba project!

Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox
Go to the top of the page
 
+Quote Post
eviljeff
post Aug 25 2008, 14:36
Post #13


Advanced Member
***

Group: Members
Posts: 204
Joined: 29-January 06
From: sheffield
Member No.: 591
Extension Developer: Yes
Extensions: attachmentextractor
AMOLocaliser

Translator for English (en-GB / British)



QUOTE (Goofy @ Aug 25 2008, 13:50) *
smile.gif This is a brilliant idea but closedeyes.gif mmh I am stuck in two issues so I cannot test it unfortunately

1. I have tried to download and install this version here on BZ and got only an error message
Attached File  amolocalizer_installbug.png ( 6.16K ) Number of downloads: 7

(it says "unexpected install error")

2. I have tried to install directly the version on amo sandbox and there has been a strange behaviour

- on install, there was no usual button "restart firefox" to complete install
- when browser has been restarted anyway, I got the Tools menu item correctly, and I tried to select one test xpi of mine (with amo.properties inside), but when validation this process all I got was the error console with nothing in rolleyes.gif

my config
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

the version on bz is an earlier version (though should still have worked).
The version on amo works for me as I just tested it now with my testing (blank) profile - the lack of install may have been due to the failure in 1.
There isn't supposed to be any dialog as it just works. The error console will contain status messages but you need to have the right settings to enable console dumping (I can't work out which ones now). I'm going to turn off the error console popup as it was really just for development.

Which page didn't the add-on work on? (You can paste a developer panel url as I have admin access on amo)
Go to the top of the page
 
+Quote Post
eviljeff
post Aug 25 2008, 14:50
Post #14


Advanced Member
***

Group: Members
Posts: 204
Joined: 29-January 06
From: sheffield
Member No.: 591
Extension Developer: Yes
Extensions: attachmentextractor
AMOLocaliser

Translator for English (en-GB / British)



QUOTE (eviljeff @ Aug 25 2008, 14:36) *
There isn't supposed to be any dialog as it just works. The error console will contain status messages but you need to have the right settings to enable console dumping (I can't work out which ones now).

I forgot I disabled the messages by default rolleyes.gif
To see what's happening you can enable amoLocaliser.debug
Go to the top of the page
 
+Quote Post
Goofy
post Aug 25 2008, 16:01
Post #15


Advanced Member
Group Icon

Group: Super Mod
Posts: 8.357
Joined: 30-July 05
From: GoofyLand
Member No.: 13


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



smile.gif a bit better now, thanks for your help. I succeeded on instaling corectly on a clean new profile, then I went to my dev panel for BabelZilla Glossary extension, and tried to use one version of this extension with amo.properties file included. I can see now the added options of your extension on AMO page but seems of no effect.
Maybe just my goofiness:

the variable in amo.properties MUST be named according to this, mustn't they?
CODE
    const AMOFIELDS=new Array('VersionReleasenotes','AddonName','AddonHomepage','AddonSupportemail',
                               'AddonSupporturl','AddonSummary','AddonDescription','AddonEula','AddonPrivacypolicy

if yes it is probably the reason of my failure, since I tried with
ShortDescription=blah
LongDescription=blahbla

??


--------------------
Think Global, Make Locales!



You like languages? You should contribute to Tatoeba project!

Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox
Go to the top of the page
 
+Quote Post
eviljeff
post Aug 25 2008, 16:15
Post #16


Advanced Member
***

Group: Members
Posts: 204
Joined: 29-January 06
From: sheffield
Member No.: 591
Extension Developer: Yes
Extensions: attachmentextractor
AMOLocaliser

Translator for English (en-GB / British)



QUOTE (Goofy @ Aug 25 2008, 16:01) *
smile.gif a bit better now, thanks for your help. I succeeded on instaling corectly on a clean new profile, then I went to my dev panel for BabelZilla Glossary extension, and tried to use one version of this extension with amo.properties file included. I can see now the added options of your extension on AMO page but seems of no effect.
Maybe just my goofiness:

the variable in amo.properties MUST be named according to this, mustn't they?
CODE
    const AMOFIELDS=new Array('VersionReleasenotes','AddonName','AddonHomepage','AddonSupportemail',
                               'AddonSupporturl','AddonSummary','AddonDescription','AddonEula','AddonPrivacypolicy

if yes it is probably the reason of my failure, since I tried with
ShortDescription=blah
LongDescription=blahbla

??

The constants there are the ID's that mozilla has used on its webpages.
The properties I've used in the amo.properties are shown here:
http://www.babelzilla.org/index.php?option...type=properties
They're the same without the 'Addon' bit by default but you they're defined in the prefs so they can be changed with about:config if you don't want them called that.

Do you think I should use identical id's?
Go to the top of the page
 
+Quote Post
lloco
post Aug 25 2008, 22:59
Post #17


Moderator for pt-PT forum
***

Group: BabelZillian Mods
Posts: 78
Joined: 22-September 06
From: Portugal
Member No.: 2.435


Extension Developer: No
Translator for Portuguese (pt-PT / Portugal)
Translation Credits to Carlos Simão



done for pt-PT
Go to the top of the page
 
+Quote Post
Goofy
post Aug 26 2008, 00:34
Post #18


Advanced Member
Group Icon

Group: Super Mod
Posts: 8.357
Joined: 30-July 05
From: GoofyLand
Member No.: 13


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



QUOTE (eviljeff @ Aug 25 2008, 17:15) *
The properties I've used in the amo.properties are shown here:
http://www.babelzilla.org/index.php?option...type=properties

Ok I think I understand now (at last laugh.gif )
QUOTE
Do you think I should use identical id's?

No, everything is fine.

Now my suggestion. Could there be some feature in your extension to help the developer to semi-automatically create the amo.properties file, by means of a form to fill with already-suggested variable names matching the extension, hence amo fields ids :

Summary=
Description=
Homepage=
Supportemail=
Supporturl=
VersionNotes=
DeveloperComments=
Eula=
PrivacyPolicy=
(with no variable in the file if one field left blank)

... once the fields filled, the developer would just download his file, drop it in the extension and here we go.

Would it be possible in the (distant) future ?


--------------------
Think Global, Make Locales!



You like languages? You should contribute to Tatoeba project!

Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox
Go to the top of the page
 
+Quote Post
eviljeff
post Aug 26 2008, 09:47
Post #19


Advanced Member
***

Group: Members
Posts: 204
Joined: 29-January 06
From: sheffield
Member No.: 591
Extension Developer: Yes
Extensions: attachmentextractor
AMOLocaliser

Translator for English (en-GB / British)



QUOTE (Goofy @ Aug 26 2008, 00:34) *
Ok I think I understand now (at last laugh.gif )

No, everything is fine.

Now my suggestion. Could there be some feature in your extension to help the developer to semi-automatically create the amo.properties file, by means of a form to fill with already-suggested variable names matching the extension, hence amo fields ids :

Summary=
Description=
Homepage=
Supportemail=
Supporturl=
VersionNotes=
DeveloperComments=
Eula=
PrivacyPolicy=
(with no variable in the file if one field left blank)

... once the fields filled, the developer would just download his file, drop it in the extension and here we go.

Would it be possible in the (distant) future ?

Hmm, possibly. I wasn't really planning on creating any kind of gui as the user of the add-on is a developer who should know how to navigate about:config once to set it up if necessary. Creating the file with the entries to fill in though should be pretty easy.
Go to the top of the page
 
+Quote Post
Goofy
post Aug 26 2008, 09:52
Post #20


Advanced Member
Group Icon

Group: Super Mod
Posts: 8.357
Joined: 30-July 05
From: GoofyLand
Member No.: 13


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



QUOTE (eviljeff @ Aug 26 2008, 10:47) *
Hmm, possibly. I wasn't really planning on creating any kind of gui as the user of the add-on is a developer who should know how to navigate about:config once to set it up if necessary. Creating the file with the entries to fill in though should be pretty easy.


smile.gif Sure decent developers don't really need help to write a simple .properties file. What I suggest is just a question of having the job half done quickly with no question like "btw, what shall I choose as variable names? Do they have a field for Version notes on AMO?" and the kind.

thanks for you promising answer, maybe you will give it a try when you have one minute left rolleyes.gif


--------------------
Think Global, Make Locales!



You like languages? You should contribute to Tatoeba project!

Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th June 2013 - 07:41
Bridged By IpbWiki: Integration Of Invision Power Board and MediaWiki © GlobalSoft