|
Show me
|
||
![]() ![]() |
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 |
|
|
|
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. |
|
|
|
Aug 19 2008, 06:39
Post
#3
|
|
![]() BZ Jungle Guide ![]() Group: Admin Posts: 3.894 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
-------------------- |
|
|
|
Aug 19 2008, 07:23
Post
#4
|
|
![]() BZ Jungle Guide ![]() Group: Admin Posts: 3.894 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?
-------------------- |
|
|
|
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) |
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 |
|
|
|
Aug 19 2008, 08:39
Post
#6
|
|
![]() BZ Jungle Guide ![]() Group: Admin Posts: 3.894 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 |
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 OK, I have translated as ‘Re-use Add-on data on current page’. Two remarks:
Dutch locale added, tested (well, I don’t have any extensions on AMO so I cannot test fully) and released -------------------- |
|
|
|
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) |
OK, I have translated as ‘Re-use Add-on data on current page’. Two remarks:
Hmm, you're right that the sentence doesn't 'sound' right. I've adopted your suggestion. (And I'm a native English speaker!
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. Dutch locale added, tested (well, I don’t have any extensions on AMO so I cannot test fully) and released 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. |
|
|
|
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. |
|
|
|
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
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. |
|
|
|
Aug 25 2008, 12:27
Post
#10
|
|
![]() BZ Jungle Guide ![]() Group: Admin Posts: 3.894 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 |
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 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:
AMO_Localizer____Firefox_add_ons_1219663575951.png ( 4.57K )
Number of downloads: 11-------------------- |
|
|
|
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) |
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:
AMO_Localizer____Firefox_add_ons_1219663575951.png ( 4.57K )
Number of downloads: 11Yeah. 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. |
|
|
|
Aug 25 2008, 13:50
Post
#12
|
|
![]() Advanced Member ![]() Group: Super Mod Posts: 8.352 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 |
1. I have tried to download and install this version here on BZ and got only an error message
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 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 |
|
|
|
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) |
1. I have tried to download and install this version here on BZ and got only an error message
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 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) |
|
|
|
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) |
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 To see what's happening you can enable amoLocaliser.debug |
|
|
|
Aug 25 2008, 16:01
Post
#15
|
|
![]() Advanced Member ![]() Group: Super Mod Posts: 8.352 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 |
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 |
|
|
|
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) |
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? |
|
|
|
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
|
|
|
|
Aug 26 2008, 00:34
Post
#18
|
|
![]() Advanced Member ![]() Group: Super Mod Posts: 8.352 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 |
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 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 |
|
|
|
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) |
Ok I think I understand now (at last 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. |
|
|
|
Aug 26 2008, 09:52
Post
#20
|
|
![]() Advanced Member ![]() Group: Super Mod Posts: 8.352 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 |
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. thanks for you promising answer, maybe you will give it a try when you have one minute left -------------------- 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 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 04:42 |