Jump to content


Important Announcement!

Please read this post about our new Privacy Policy


Photo

AMO Localiser - Ver. 0.3a


  • Please log in to reply
33 replies to this topic

#21 eviljeff

eviljeff

    Advanced Member

  • Members
  • 204 posts

Posted 28 August 2008 - 01:29 AM

QUOTE (Goofy @ Aug 26 2008, 09:52) <{POST_SNAPBACK}>
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

done wink.gif

#22 Goofy

Goofy

    Advanced Member

  • Super Mod
  • 8437 posts

Posted 28 August 2008 - 07:39 AM

QUOTE (eviljeff @ Aug 28 2008, 02:29) <{POST_SNAPBACK}>
done wink.gif

rockon.gif very good stuff, this is (almost) perfect smile.gif - I would just say that the input fields (hence the dialog window) should be resizeable (auto-resizeable ?) if possible, there can be not-so-short values to enter in amo.properties file.

Many thanks indeed for everything!
Think Global, Make Locales!


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

#23 eviljeff

eviljeff

    Advanced Member

  • Members
  • 204 posts

Posted 28 August 2008 - 10:40 AM

QUOTE (Goofy @ Aug 28 2008, 07:39) <{POST_SNAPBACK}>
rockon.gif very good stuff, this is (almost) perfect smile.gif - I would just say that the input fields (hence the dialog window) should be resizeable (auto-resizeable ?) if possible, there can be not-so-short values to enter in amo.properties file.

okay, in the release xpi the window will be (manually) resizeable.

#24 Goofy

Goofy

    Advanced Member

  • Super Mod
  • 8437 posts

Posted 28 August 2008 - 10:42 AM

QUOTE (eviljeff @ Aug 28 2008, 11:40) <{POST_SNAPBACK}>
okay, in the release xpi the window will be (manually) resizeable.


You are very kind, Thou Lord of Code.

Much gratefully

- your humble servant ;-)
Think Global, Make Locales!


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

#25 markh

markh

    BZ Jungle Guide

  • Admin
  • 4070 posts

Posted 28 August 2008 - 12:15 PM

Dutch locale updated, tested and released cool.gif
While the bankers all get their bonuses I’ll just get along with what I’ve got


#26 StefanS

StefanS

    Member

  • Members
  • 16 posts

Posted 03 September 2008 - 02:52 PM

Hello,
First: Thank you for your useful addon.

But I have some open questions:
- on my add-on-AMO-Page i can "Browse for XPI" an load the data from the "/locales/la-ng/amo.properties"-files of my addon, right? After clicking "Reuse Add-on with current page" the properties should be copied into the appropriate form-fields on the AMO-page? This is not functioning on my FF :| (because of an new design of AMO?!)
- what does "Browse for folder" mean? Can i open an extensions-rootfolder (with "install.rdf" inside)?

Can you add some userdefined properties to you system? I would add translatorsName etc... (for using inside my extension)

Regards
Stefan

#27 eviljeff

eviljeff

    Advanced Member

  • Members
  • 204 posts

Posted 03 September 2008 - 08:22 PM

QUOTE (Sorg @ Sep 3 2008, 14:52) <{POST_SNAPBACK}>
Hello,
First: Thank you for your useful addon.

But I have some open questions:
- on my add-on-AMO-Page i can "Browse for XPI" an load the data from the "/locales/la-ng/amo.properties"-files of my addon, right? After clicking "Reuse Add-on with current page" the properties should be copied into the appropriate form-fields on the AMO-page? This is not functioning on my FF :| (because of an new design of AMO?!)
the reuse button is after you've loaded the xpi once so you can use it again on another page within amo. There isn't any new design I've noticed. what doesn't work?
QUOTE (Sorg @ Sep 3 2008, 14:52) <{POST_SNAPBACK}>
- what does "Browse for folder" mean? Can i open an extensions-rootfolder (with "install.rdf" inside)?
Yes. install.rdf is ignored anyway but it will search subfolders for appropriately named folders with amo.properties inside.
QUOTE (Sorg @ Sep 3 2008, 14:52) <{POST_SNAPBACK}>
Can you add some userdefined properties to you system? I would add translatorsName etc... (for using inside my extension)

You can manually add whatever fields you want to the properties file. If you are able to write the script to extract and use the entries elsewhere then I'm sure you have the computer ability wink.gif

#28 StefanS

StefanS

    Member

  • Members
  • 16 posts

Posted 03 September 2008 - 09:04 PM

QUOTE (eviljeff @ Sep 3 2008, 20:22) <{POST_SNAPBACK}>
There isn't any new design I've noticed.

OK.... yesterday there was a "tryout the new system"-link in my AMO-Addon-Account. behind thsi link there was a new styled AMO-Design. But this don't care.

QUOTE (eviljeff @ Sep 3 2008, 20:22) <{POST_SNAPBACK}>
what doesn't work?

OK. I will describe my approach:
- I create an amo.properties-File via menu-entry "Create valid properties file" - save it to "C:/projects/myaddon/locales/de-DE/amo.properties" (this folder contains the directorytree of my addon)
- i go to "my" AMO-Addon Page - the AMO Localizer-Buttons appear
- i click "Browse for Folder" - choosing "C:/projects/myaddon" -> NOTHING happens!

Same thing, if i try your plugin with an XPI (containing the amo.properties-file)

Whats wrong?

Stefan

#29 eviljeff

eviljeff

    Advanced Member

  • Members
  • 204 posts

Posted 04 September 2008 - 08:39 PM

QUOTE (Sorg @ Sep 3 2008, 21:04) <{POST_SNAPBACK}>
OK.... yesterday there was a "tryout the new system"-link in my AMO-Addon-Account. behind thsi link there was a new styled AMO-Design. But this don't care.
Ah yes, I know about that. It doesn't work with it yet. If/when it becomes the default i'll have to make changes.
QUOTE (Sorg @ Sep 3 2008, 21:04) <{POST_SNAPBACK}>
OK. I will describe my approach:
- I create an amo.properties-File via menu-entry "Create valid properties file" - save it to "C:/projects/myaddon/locales/de-DE/amo.properties" (this folder contains the directorytree of my addon)
- i go to "my" AMO-Addon Page - the AMO Localizer-Buttons appear
- i click "Browse for Folder" - choosing "C:/projects/myaddon" -> NOTHING happens!

Same thing, if i try your plugin with an XPI (containing the amo.properties-file)

Sounds like the right steps. If you set the preference 'amoLocaliser.debug=true' the error console will show status messages showing what's going on.
You may need to set these too:
browser.dom.window.dump.enabled=true
javascript.options.showInConsole=true

#30 StefanS

StefanS

    Member

  • Members
  • 16 posts

Posted 06 September 2008 - 12:01 AM

QUOTE (eviljeff @ Sep 4 2008, 20:39) <{POST_SNAPBACK}>
If you set the preference 'amoLocaliser.debug=true' the error console will show status messages showing what's going on.
You may need to set these too:
browser.dom.window.dump.enabled=true
javascript.options.showInConsole=true


This is the output:
CODE
Warning: assignment to undeclared variable oSBPMItem
Source file: chrome://qls/content/qls.js
Line: 790
----------
Warning: assignment to undeclared variable oSBCTooltip
Source file: chrome://qls/content/qls.js
Line: 588
----------
Error: view.selection is null
Source file: chrome://global/content/config.js
Line: 364
----------
AMOLocaliser: adding button to page
----------
AMOLocaliser: AMOLocaliserButton-XPIBrowse
----------
AMOLocaliser: 9 amo.properties files found
----------
AMOLocaliser: packageName: rotateimage; chromeUri: chrome/content/
----------
AMOLocaliser: AMOLocaliserButton-Apply

Looks harmless.... but your tool inserts nothing.

Other Addons i installed on the running FF-Profile:
  • Advanced URL Builder
  • Console²
  • Quick Locale Switcher
  • Rotate Image


#31 eviljeff

eviljeff

    Advanced Member

  • Members
  • 204 posts

Posted 07 September 2008 - 03:20 PM

QUOTE (Sorg @ Sep 6 2008, 00:01) <{POST_SNAPBACK}>
This is the output:

Looks harmless.... but your tool inserts nothing.

what are your locale folders called? If the locale folders aren't called something really obvious the add-on won't match them.

#32 eviljeff

eviljeff

    Advanced Member

  • Members
  • 204 posts

Posted 14 September 2008 - 08:54 PM

version 0.3 has been uploaded. Its mainly usability improvements, though I think I've fixed the bug that StefanS was experiencing also.

p.s. Some localisers don't seem to have realised that 'localiserName' is for YOUR name so you can get credit for your work.

#33 markh

markh

    BZ Jungle Guide

  • Admin
  • 4070 posts

Posted 15 September 2008 - 09:29 AM

Dutch locale updated, briefly tested and released cool.gif
While the bankers all get their bonuses I’ll just get along with what I’ve got


#34 DakSrbija

DakSrbija

    Advanced Member

  • BabelZillian Mods
  • 422 posts

Posted 20 April 2009 - 11:45 AM

Serbian (sr-RS) localization has been released biggrin.gif


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users