Jump to content


Important Announcement!

Please read this post about our new Privacy Policy


Photo

Firecookie - Ver. 1.1b7bz


  • Please log in to reply
24 replies to this topic

#21 Jan Odvarko

Jan Odvarko

    Advanced Member

  • Members
  • 71 posts
  • Gender:Male
  • Location:Czech Republic
  • Translator for [No translator]
  • Extension Developer: Yes
  • Extensions: Firecookie

Posted 29 June 2010 - 07:40 AM

Hi All,
I have just uploaded Firecookie 1.1b5bz.

I have decided to get rid of DTD entities and removed firecookie.dtd file. DTD entities are not scriptable and missing entity causes fatal error when loading the extension.

All strings in firecookie.dtd have been moved into firecookie.properties file (keeping the same string ID).

So for example:

<!ENTITY firecookie.Create "Create Cookie">
is transformed to:
firecookie.Create=Create Cookie

I haven't found any way how to force Babelzilla to use the existing translations (note again all the string IDs are still the same), but if there is a way, please let me know! I want to do the same also for Firebug and such feature could save time!

Of course, I have all the previous DTD files so, let me know if you need it.

Thanks for the help!
Honza


#22 Jan Odvarko

Jan Odvarko

    Advanced Member

  • Members
  • 71 posts
  • Gender:Male
  • Location:Czech Republic
  • Translator for [No translator]
  • Extension Developer: Yes
  • Extensions: Firecookie

Posted 29 June 2010 - 07:47 AM

Comments here: http://www.babelzill...?...=4494&st=20

QUOTE (Jan Odvarko @ Jul 14 2008, 07:09) <{POST_SNAPBACK}>
Maintainer: Jan Odvarko
Creator: Jan Odvarko

Ext. Version: 1.1b5bz
Release date: 0000-00-00
Description: Cookie manager for Firebug. Firebug has to be installed in order to use this extension.
Extension is compatible to: ( 2.0 - 3.7.*) ( Mozilla Toolkit 1.9.0.* - 1.9.3.*)

Included locales: ca-AD cs-CZ de-DE en-US es-AR es-ES fr-FR hu-HU it-IT ja-JP ko-KR nl-NL pl-PL pt-BR pt-PT ro ru-RU sv-SE tr-TR uk-UA zh-CN

View on WTS -- Download the extension



#23 hector_zhao

hector_zhao

    Member

  • Members
  • 13 posts
  • Gender:Male
  • Location:Beijing, China
  • Translator for Chinese (zh-CN / Simplified)
  • Extension Developer: No
  • Translation Credits to Hector Zhao

Posted 29 June 2010 - 11:36 AM

QUOTE (Jan Odvarko @ Jun 29 2010, 07:40) <{POST_SNAPBACK}>
I haven't found any way how to force Babelzilla to use the existing translations (note again all the string IDs are still the same), but if there is a way, please let me know! I want to do the same also for Firebug and such feature could save time!


Maybe you could update properties files using script like this?

CODE
#!/bin/sh
ls */firecookie.dtd |
sed "s/\(.*\).dtd/sed 's\/<!ENTITY \\\(.*\\\) \"\\\(.*\\\)\">\/\\\1=\\\2\/g' \1.dtd >> \1.properties/g" |
sh


#24 Jan Odvarko

Jan Odvarko

    Advanced Member

  • Members
  • 71 posts
  • Gender:Male
  • Location:Czech Republic
  • Translator for [No translator]
  • Extension Developer: Yes
  • Extensions: Firecookie

Posted 29 June 2010 - 01:10 PM

QUOTE (hector_zhao @ Jun 29 2010, 10:36) <{POST_SNAPBACK}>
Maybe you could update properties files using script like this?

CODE
#!/bin/sh
ls */firecookie.dtd |
sed "s/\(.*\).dtd/sed 's\/<!ENTITY \\\(.*\\\) \"\\\(.*\\\)\">\/\\\1=\\\2\/g' \1.dtd >> \1.properties/g" |
sh


Sound promising!
Would this preserve the encoding of all files?

Honza

#25 hector_zhao

hector_zhao

    Member

  • Members
  • 13 posts
  • Gender:Male
  • Location:Beijing, China
  • Translator for Chinese (zh-CN / Simplified)
  • Extension Developer: No
  • Translation Credits to Hector Zhao

Posted 29 June 2010 - 01:37 PM

QUOTE (Jan Odvarko @ Jun 29 2010, 13:10) <{POST_SNAPBACK}>
Sound promising!
Would this preserve the encoding of all files?

Honza


I tested zh-CN files, and the encoding of updated firecookie.properties was still "UTF-8 w/o BOM".

Hector



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users