i18n Gallery Error

10 views
Skip to first unread message

hexid

unread,
Jan 25, 2010, 5:07:05 PM1/25/10
to Chromium-extensions
When trying to upload my extension to the gallery I get the error "An
error occurred: Missing extension name in default locale."

I have checked the file multiple times and can't find an error...

messages.json:

{
"extName": {
"message": "Facebook Styler"
},
"extDescription": {
"message": "Gives the user options to customize the layout and to
give more functionality to Facebook."
},
"updatePA": {
"message": "Facebook Styler Updated"
},
...
}

There were 200 lines in the file...so I just posted these as an
example...
In the extensions page of chrome it shows up fine for English (the
default) and German...

Arne Roomann-Kurrik

unread,
Jan 26, 2010, 6:26:39 PM1/26/10
to hexid, Chromium-extensions
Could you post your manifest file?

Thanks,
~Arne


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


hexid

unread,
Jan 26, 2010, 6:32:31 PM1/26/10
to Chromium-extensions
{
"default_locale": "en",
"content_scripts": [ {
"js": [ "jquery/jquery-1.4.min.js", "facebook.dev.js" ],
"css": [ "facebook.css" ],
"matches": [ "http://facebook.com/*", "https://facebook.com/*",
"http://*.facebook.com/*", "https://*.facebook.com/*", "http://
facebook.com/*", "https://facebook.com/*/*", "http://*.facebook.com/*/
*", "https://*.facebook.com/*/*" ]
} ],
"description": "__MSG_extDescription__",
"name": "__MSG_extName__",
"options_page": "options.html",
"background_page": "background.html",
"permissions": [
"tabs"
],
"icons": {
"32": "images/facebook_32.png",
"48": "images/facebook_48.png",
"64": "images/facebook_64.png",
"128": "images/facebook_128.png"
},
"page_action": {
"default_icon": "images/facebook_32.png",
"default_title": "__MSG_updatePA__",
"popup": "popup.html"
},
"version": "2.7.8"
}

> > To post to this group, send email to chromium-extensi...@chromium.org.


> > To unsubscribe from this group, send email to

> > chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>

Arne Roomann-Kurrik

unread,
Jan 26, 2010, 7:25:02 PM1/26/10
to hexid, Chromium-extensions
Interesting, looks like there's a bug in the gallery.  Until it is fixed, try changing

"name": "__MSG_extName__",
to
"name": "__MSG_name__",

and updating the corresponding keys in your messages.json files.

~Arne



To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.

hexid

unread,
Jan 26, 2010, 7:26:51 PM1/26/10
to Chromium-extensions

hexid

unread,
Jan 26, 2010, 7:33:59 PM1/26/10
to Chromium-extensions
Now I am getting a new error...

"An error occurred: Cannot parse message.json file from uploaded
package."

I think this is because the file is supposed to be called
messages.json
I tried renaming it to message.json but I got an error from chrome
saying that it couldn't find the 'en' localization...

Arne Roomann-Kurrik

unread,
Jan 26, 2010, 7:37:55 PM1/26/10
to hexid, Chromium-extensions
The file should be named "messages.json".   Could you try removing parts of that file and reuploading to see if you can identify what code isn't being parsed correctly?  My minimal sample uploaded fine.

~Arne


To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.

hexid

unread,
Jan 26, 2010, 7:54:36 PM1/26/10
to Chromium-extensions
Can you upload your messages.json so that I can see what I may have
messed up?? I have tried removing everything but the name and
description without success...

> > > > > <chromium-extensions%2Bunsubscr...@chromium.org<chromium-extensions%252Bunsubscr...@chromium.org>
> > <chromium-extensions%252Bunsubscr...@chromium.org<chromium-extensions%25252Bunsubscr...@chromium.org>

Colin Bleckner

unread,
Jan 26, 2010, 7:58:36 PM1/26/10
to hexid, Chromium-extensions
Random thought: do you have any comments in your messages.json file? I
had comments in mine and it caused the same error.

Colin

hexid

unread,
Jan 26, 2010, 8:02:19 PM1/26/10
to Chromium-extensions
No...

I took everything out and it still doesn't work...

This is all thats left

_locales/en/messages.json :

{
"name": {
"message": "Facebook Styler"
},
"description": {

Arne Roomann-Kurrik

unread,
Jan 26, 2010, 8:07:30 PM1/26/10
to hexid, Chromium-extensions
This is my minimal example:

{
  "name" : {
    "message" : "Hello World",
    "description" : "Title of the extension"
  },
  "description" : {
    "message" : "Test description",
    "description" : "Description of the extension"
  }
}

Try adding "description" fields to each item?

~Arne

To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.

hexid

unread,
Jan 27, 2010, 5:28:41 PM1/27/10
to Chromium-extensions
Ok...found the problem...

The encoding had been set to 'UTF-8 Signature'
I changed this to 'UTF-8' and it works...

Also I tried changing the 'name' back to 'extName' and that broke it
again...just to let people know

> > > >>> <chromium-extensions%252Bunsubscr...@chromium.org<chromium-extensions%25252Bunsubscr...@chromium.org>
> > <chromium-extensions%25252Bunsubscr...@chromium.org<chromium-extensions%2525252Bunsubscr...@chromium.org>

Arne Roomann-Kurrik

unread,
Jan 28, 2010, 4:37:44 PM1/28/10
to hexid, Chromium-extensions
Thanks for letting me know what the fix was.  We're currently adding a note to the i18n docs about the gallery bug and will look into the UTF-8 encoding issue.

~Arne

To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.

TobiFromBavaria

unread,
Feb 12, 2010, 1:06:07 PM2/12/10
to Chromium-extensions
The upload function of the extension gallery let's me upload an
extension with messages.json files encoded in ANSI. But when I want to
install it I get an error from the browser.
Reply all
Reply to author
Forward
0 new messages