Welcome Guest ( Log In | Register )


Recommended Addon
sponsored link
Sponsored link

> Developing Externalize extension, Dafi's extension under progress here
Goofy
post Sep 19 2006, 07:10
Post #1


Advanced Member
Group Icon

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



smile.gif This new topic is dedicated to the work on Davide Ficano's Externalize extension. This very good tool was originally requested by me (see on this topic ) and I tested it successfully since May '06 on more than 45 extensions which were lacking a locale structure, a good number of them were submitted on BZ by their devs afterwards (see this topic of the moderators corner)
I also began a babelwiki page which is uncomplete and needing screenshots among others.



biggrin.gif Good news are coming. Dafi has now some time to spare on this extension. Just to remember, I put here some kind of wishlist by order of priority (imho) :


[color=#FF0000]* trim the length of the created entities to a customized number of characters. In the current version there is manual work to limit the length to something reasonable. So the entitizing process itself is very quick and spares much time, but you have to check every file afterwards for empty strings and too long entity names.
* add the extension name (or first chars of it) at the beginning of entity names (as it is common use for most of manually created entities)
* detect empty strings from the xul files and avoid creating empty useless entities
* make the .txt files editable and customizable throughout the extension interface
* fix a kind of mess that may happen when creating the doctype line in case there already is one (a "public" one, referring to FF chrome itself)

* add an extra dialog popping when a file is processed, telling "Strings from this file are now successfully entitized, do you want to process another file ? (Y/N)" . When there are numerous files to "externalize", user has to restart the main dialog for each file, it would be quicker to leave the main dialog (file selector) open as long as there are files to process


--------------------
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
 
Start new topic
Replies
Goofy
post Oct 29 2006, 21:02
Post #2


Advanced Member
Group Icon

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



QUOTE
Thanks Davide, I will try tonight.

smile.gif
Done: it works fine with your workaround. Thanks!


--------------------
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
dafi
post Oct 30 2006, 07:04
Post #3


WTS Developer
***

Group: WTS Developer
Posts: 498
Joined: 7-August 05
From: Palermo (Italy)
Member No.: 79


Extension Developer: Yes
Extensions: Some bonsai extensions
Translator for [No translator]



QUOTE(Goofy @ Oct 29 2006, 22:02) [snapback]21009[/snapback]

smile.gif
Done: it works fine with your workaround. Thanks!

Honestly I know this is only a workaround not a solution. sad.gif
It is the quickest way to continue to use Externalize without waiting for a new build.
Maybe a solution should allow to choose the technique for discarding values per tag.
For example

CODE

  Tag/Attribute         Discard value RegExpr
     accesskey               None
     label                  RE1, RE2

Imagine a UI to obtain a similar result.
Adding an UI to handle files is a priority and I'll add it ASAP (but not before December sad.gif )

Stay tuned tongue.gif


--------------------
Davide Ficano
Author of the ViewSourceWith extension
http://dafizilla.sourceforge.net/viewsourcewith
Go to the top of the page
 
+Quote Post
Goofy
post Oct 30 2006, 07:37
Post #4


Advanced Member
Group Icon

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



QUOTE(dafi @ Oct 30 2006, 07:04) [snapback]21020[/snapback]


Maybe a solution should allow to choose the technique for discarding values per tag.
For example

CODE

  Tag/Attribute         Discard value RegExpr
     accesskey               None
     label                  RE1, RE2

Imagine a UI to obtain a similar result.
Adding an UI to handle files is a priority and I'll add it ASAP (but not before December sad.gif )

Stay tuned tongue.gif

surprise.gif I am impressed and not sure to understand how the per-tag regexp* will work unsure.gif , but I am ready for Goofytesting even if I must wait for Santa Claus smile.gif

*For one thing I don't know about regexp syntax (I have read tutorials but I have no mathematician brain- well I suspect I have no brain at all to tell the truth) but what makes things more complicated is that every file may need a specific choice, and also in the same file sometimes a string must be externalized or not.

For example, it often happens to have in the same file
value="Davide is Great" (-->must be translated in every possible language)
and
value="Codestuff" (--> must be left as it is to make the extension run smoothly)

So the workaround here should be to allow user to select step by step what must be externalized and what mustn't be



--------------------
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

Posts in this topic
- Goofy   Developing Externalize extension   Sep 19 2006, 07:10
- - dafi   QUOTE(Goofy @ Sep 19 2006, 08:10) 19046 I...   Sep 19 2006, 08:07
- - Goofy   QUOTEdefinition files can be downloaded from a wel...   Sep 19 2006, 10:30
|- - dafi   QUOTE(Goofy @ Sep 19 2006, 11:30) 19060 I...   Sep 19 2006, 10:41
- - Goofy   Yes you are wise, let's have an "official...   Sep 19 2006, 10:49
- - Pedro   QUOTE(Goofy @ Sep 19 2006, 08:10) 19046.....   Sep 19 2006, 14:31
|- - dafi   QUOTE(Pedro @ Sep 19 2006, 15:31) 19063 I...   Sep 19 2006, 18:27
|- - Pedro   QUOTE(dafi @ Sep 19 2006, 19:27) 19072 Co...   Sep 19 2006, 19:12
- - dafi   Another brick in the wall. Here you find the new ...   Sep 23 2006, 11:40
- - Goofy   amazing work and improvements, dear Davide ! ...   Sep 23 2006, 13:27
|- - dafi   QUOTE(Goofy @ Sep 23 2006, 14:27) 19166 Y...   Sep 23 2006, 13:34
|- - Goofy   QUOTE(dafi @ Sep 23 2006, 14:34) 19167 To...   Sep 23 2006, 13:49
- - Goofy   Just to remember : you added this line in the wish...   Sep 28 2006, 22:54
|- - dafi   QUOTE(Goofy @ Sep 28 2006, 23:54) 19450 ...   Sep 29 2006, 06:01
- - Goofy   QUOTEThe steps should be: 1. detect every single a...   Sep 29 2006, 06:33
|- - dafi   QUOTE(Goofy @ Sep 29 2006, 07:33) 19456 ...   Sep 30 2006, 13:27
- - Goofy   Wow impressive stuff again. First tests seem to gi...   Sep 30 2006, 16:26
|- - dafi   QUOTE(Goofy @ Sep 30 2006, 17:26) 19503 -...   Sep 30 2006, 18:06
- - Goofy   I attach here a zipped .js file for testing purpos...   Sep 30 2006, 18:27
|- - dafi   QUOTE(Goofy @ Sep 30 2006, 19:27) 19513 ...   Sep 30 2006, 18:52
- - dafi   You can find a new build here. Fixed bugs describe...   Oct 1 2006, 08:37
|- - Pedro   QUOTE(dafi @ Oct 1 2006, 09:37) 19546Goof...   Oct 1 2006, 14:07
- - Goofy   yes successful first test (see attachment with ori...   Oct 1 2006, 09:21
|- - dafi   QUOTE(Goofy @ Oct 1 2006, 10:21) 19547 1....   Oct 1 2006, 09:44
- - Goofy   No dear friend there is nothing difficult in its u...   Oct 1 2006, 14:14
|- - Pedro   QUOTE(Goofy @ Oct 1 2006, 15:14) 19560 No...   Oct 1 2006, 14:21
- - Pedro   Great job JeanBernard: your new improvements on th...   Oct 1 2006, 20:50
- - dafi   Another little fix. Now xml and js share the excl...   Oct 2 2006, 06:28
- - Goofy   Very good news again, thanks so much Davide! (...   Oct 2 2006, 07:32
- - Pedro   Sure Jean Bernard If it's on time I will do ...   Oct 2 2006, 09:12
|- - Goofy   QUOTE(Pedro @ Oct 2 2006, 10:12) 19590 Su...   Oct 2 2006, 11:07
- - Goofy   hello Davide I copy for you some bits of our exc...   Oct 2 2006, 22:37
|- - dafi   QUOTE(Goofy @ Oct 2 2006, 23:37) 19626 he...   Oct 3 2006, 06:21
- - Goofy   QUOTEWell I can add two buttons: 1. uncheck all 2....   Oct 3 2006, 07:10
|- - dafi   QUOTE(Goofy @ Oct 3 2006, 08:10) 19633 ah...   Oct 4 2006, 19:32
- - Pedro   Thanks Davide I download it immediately   Oct 4 2006, 19:50
- - Goofy   Grazie mille Davide   Oct 4 2006, 19:54
- - dafi   About measureit. The problem is the drag&drop...   Oct 5 2006, 13:47
- - Goofy   QUOTEprobably adding a <stringbundle/> into ...   Oct 6 2006, 19:32
|- - dafi   QUOTE(Goofy @ Oct 6 2006, 20:32) 19817 ...   Oct 7 2006, 08:25
- - Goofy   QUOTEproblem doesn't depend by Externalize Of...   Oct 7 2006, 08:31
- - Pedro   Hi guys, don't break your head with this exte...   Oct 7 2006, 10:10
- - Goofy   A little observation while testing Externalize .js...   Oct 7 2006, 19:30
|- - dafi   QUOTE(Goofy @ Oct 7 2006, 20:30) 19866 A ...   Oct 8 2006, 07:29
- - Goofy   Ah this time I think there is a probable bug in th...   Oct 8 2006, 08:08
- - Goofy   I confirm when testing on a very simple file with ...   Oct 8 2006, 08:19
|- - dafi   QUOTE(Goofy @ Oct 8 2006, 09:19) 19887 I...   Oct 8 2006, 08:21
- - Goofy   --- another test with same file Now I have change...   Oct 8 2006, 08:25
|- - dafi   QUOTE(Goofy @ Oct 8 2006, 09:25) 19889 --...   Oct 8 2006, 08:37
- - Goofy   I am sorry same bug again. (to be confirmed) Oh ...   Oct 8 2006, 08:57
|- - dafi   QUOTE(Goofy @ Oct 8 2006, 09:57) 19891 I...   Oct 8 2006, 09:00
- - dafi   New build: - report fixed for JS - remove duplicat...   Oct 8 2006, 12:42
- - Goofy   dear Davide Thanks for the new features! I use...   Oct 10 2006, 06:49
|- - dafi   QUOTE(Goofy @ Oct 10 2006, 07:49) 20010 *...   Oct 10 2006, 07:03
- - dafi   On BabelWiki I read: QUOTEToDo List * avoid e...   Oct 10 2006, 10:53
|- - Goofy   QUOTE(dafi @ Oct 10 2006, 11:53) 20027 On...   Oct 10 2006, 11:25
|- - Pedro   QUOTE(Goofy @ Oct 10 2006, 12:25) 20028 @...   Oct 10 2006, 12:58
- - Pedro   Well Jean Bernard, the screnshoots are updated ...   Oct 10 2006, 20:46
- - Goofy   Thanks for your nice screenshots, dear Pedro (I h...   Oct 10 2006, 21:18
- - Goofy   This week I reached my 62nd extension localized wi...   Oct 22 2006, 09:02
|- - dafi   QUOTE(Goofy @ Oct 22 2006, 10:02) 20624 ...   Oct 22 2006, 09:14
- - Goofy   QUOTE("dafi")may you send me more info s...   Oct 23 2006, 18:34
- - Goofy   hello Davide. I don't know what stupid mistake...   Oct 29 2006, 16:09
|- - dafi   QUOTE(Goofy @ Oct 29 2006, 17:09) 20988 ...   Oct 29 2006, 16:32
|- - dafi   QUOTE(Goofy @ Oct 29 2006, 17:09) 20988 ...   Oct 29 2006, 16:45
|- - dafi   QUOTE(Goofy @ Oct 29 2006, 17:09) 20988 ...   Oct 29 2006, 17:12
- - Pedro   It is quite off topic, but I havent caption in my ...   Oct 29 2006, 16:16
- - Pedro   Thanks Davide I try and I have the same result ...   Oct 29 2006, 16:45
- - Goofy   Thanks Davide QUOTE("Luca")It is quite...   Oct 29 2006, 16:47
- - Pedro   Thanks Jean Bernard... now the matter is clearer   Oct 29 2006, 16:59
- - Goofy   Thanks Davide, I will try tonight. Now I am skept...   Oct 29 2006, 17:30
- - Goofy   QUOTEThanks Davide, I will try tonight. Done: it ...   Oct 29 2006, 21:02
|- - dafi   QUOTE(Goofy @ Oct 29 2006, 22:02) 21009 ...   Oct 30 2006, 07:04
|- - Goofy   QUOTE(dafi @ Oct 30 2006, 07:04) 21020 M...   Oct 30 2006, 07:37
- - Goofy   @Pedro for information, I am currently trying to e...   Nov 11 2006, 16:39
|- - Pedro   QUOTE(Goofy @ Nov 11 2006, 16:39) 21619 @...   Nov 11 2006, 23:11
- - Goofy   [Done]   Nov 12 2006, 00:37
- - dafi   Finally I've restart to develop and I've a...   Jan 21 2007, 09:32
- - Goofy   Dear Davide it is just great ! apart from t...   Jan 21 2007, 10:25
- - Goofy   Ooops I found a disturbing issue... I have seen t...   Jan 22 2007, 00:20
|- - dafi   QUOTE(Goofy @ Jan 22 2007, 00:20) 24383 ...   Jan 22 2007, 07:12
- - Goofy   well in that case I must have made something wrong...   Jan 22 2007, 07:28
|- - dafi   QUOTE(Goofy @ Jan 22 2007, 07:28) 24391 ...   Jan 22 2007, 07:35
- - Goofy   Great Keep rollin' dear Davide!   Jan 22 2007, 07:57
- - dafi   I hope this fixes the problem. Please apologize m...   Jan 22 2007, 20:33
- - Goofy   Thanks dear Davide I tested again with the same t...   Jan 22 2007, 22:24
- - Goofy   hey I have been testing version 0.0.6 (the wester...   Sep 10 2008, 16:37
- - dafi   QUOTE (Goofy @ Sep 10 2008, 17:37) hey I...   Sep 10 2008, 16:39


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: 24th May 2013 - 19:29
Bridged By IpbWiki: Integration Of Invision Power Board and MediaWiki © GlobalSoft