chorme web store.... another language?

196 views
Skip to first unread message

App_learn

unread,
Jan 12, 2012, 10:47:41 AM1/12/12
to Chromium Apps
Good day to all persons on the forum, I wanted to know if anyone could
help me with my questions, and went up to the chrome web store 2
applications (games) went up in the English language. wanted to know
if anyone knows how I have to do to put it in another language is such
that same game or go for example to update this in another language
also available. wanted to know if I have to update my application or
raise again the same application and mark it in another language?
clear without losing the original language in which it already was
uploaded earlier.
thank you very much to all

Sam Dutton

unread,
Jan 12, 2012, 10:54:01 AM1/12/12
to App_learn, Chromium Apps
Hi -- not sure if this answers your question, but you might want to look at the internationalisation documentation: http://code.google.com/chrome/webstore/docs/i18n.html.

Sam


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


App_learn

unread,
Jan 15, 2012, 2:49:07 AM1/15/12
to Chromium Apps

Thanks for your help sam the link. is exactly what I was talking and I
saw in the chrome web store, several games that are translatedinto
several languages. and my question is how?
For example I have my application (game) rise in the English language
and also want to get in Spanish and Chinese, as I have to?
because here in the link tells me the following:


Localizing your app listing
To localize your app's listing, you first localize the name and
description. Then, after uploading your localized app, you can edit
your app's listing to specify localized versions of your app's
detailed description and screenshots.
Name and description
You localize the name and description by modifying manifest.json and
providing a _locales directory in your app's ZIP file. Specifically,
you need to:
• Modify the "name" and "description" manifest fields
• Add a "default_locale" field
• Provide at least one _locales/locale/messages.json file, where
locale is a locale code; each messages.json file contains the strings
for one locale
Here's an example of how you might specify the name and description of
an internationalized hosted app that has English as its default
language and British English as its secondary language:
//in manifest.json:
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
"default_locale": "en",

//in _locales/en/messages.json:
{
"appName": {
"message": "My App",
"description": "The title of the application, displayed in the web
store."
},
"appDesc": {
"message": "This app does something awesome.",
"description":"The description of the application, displayed in
the web store."
}
}

//in _locales/en_GB/messages.json:
{
"appName": {
"message": "My Application"
},
"appDesc": {
"message": "This application does something brilliant."
}
}
If you add a locale later, you just need to add a _locales/locale/
messages.json file for that new locale. For example, if you add
support for French and Arabic, you'll need to add two files: _locales/
fr/messages.json and _locales/ar/messages.json. Each of those files
can be a copy of_locales/en_GB/messages.json, but with translated
versions of the "message" values.


But I do not understand if I have to do that part and when I go up the
game in the Chrome web store, I have to upload it 3 times, ie one in
English with his description, a description in Spanish with Spanish
and one in Chinese with their description in Chinese?

could guide me a little more sam or someone on the forum? would
greatly appreciate it. Best, Hernan

Sam Dutton

unread,
Jan 16, 2012, 5:11:22 AM1/16/12
to App_learn, Chromium Apps
Hi Hernan

For each language you want to support, add a directory to your _locales directory, with a messages.json file in it. In your case, this might be the following:

appDir/_locales/en/messages.json
appDir/_locales/es/messages.json
appDir/_locales/zh_CN/messages.json

You'll also need to define a default_locale in your manifest, and update details from your developer dashboard.


Hope that helps!

Sam

Sam Dutton

unread,
Jan 17, 2012, 5:07:18 AM1/17/12
to App_learn, Chromium Apps
Hola Hernan

la extensiones con los idiomas que tengo que definir, tienen que estar dentro del archivo manifest.json o en otro archivo? gracias.

You need to make the changes/additions I described (see below) then, from the Edit page of your developer dashboard,  edit descriptions (and possibly screenshots) for each language, and select the regions you want to support.

Sam 

Sam Dutton

unread,
Jan 20, 2012, 10:08:31 AM1/20/12
to Hernan Duprat, chromi...@chromium.org
manifest.json should include this:

 "name": "__MSG_appName__",
 "description": "__MSG_appDesc__",
 "default_locale": "en",

...and there should be a messages.json file for each locale, as per your email.

Sam


On 20 January 2012 04:00, Hernan Duprat <hdu...@gmail.com> wrote:

Dear Sam, thanks as always for helping me and guide me. I did the translation of the descriptions in Spanish and Chinese. but I have doubts if it must be so, to get me I show you doubt manifest.json file that works perfectly in English. and if adding the parts you told me in Spanish and Chinese would be as follows:
the file. manifest.json that works well in the game that went up is this:



{
  "name": "Falling Sand",
  "description": "The game involves four different particles falling from the top of the screen, which all look and move similar to sand.",
  "version": "1",
  "app": {
    "urls": [
    ],
    "browse_urls": [
     
    ],
    "launch": {
    }
  },
  "icons": {
    "24": "icon_24.png",
    "128": "icon_128.png"
  },
  "permissions": [
    "unlimited_storage"
  ]
}
 
 
now with what you told me I had to add:
 
appDir/_locales/en/messages.json
appDir/_locales/es/messages.json
appDir/_locales/zh_CN/messages.json
 
 
would have to be so manifest.json file: that is all in the same file:
 
{
  "name": "Falling Sand",
  "description": "The game involves four different particles falling from the top of the screen, which all look and move similar to sand.",
//in manifest.json:
  "name": " Falling Sand "
  "description": "  The game involves four different particles falling from the top of the screen, which all look and move similar to sand"
  "default_locale": "en",
 
//in _locales/es/messages.json: 
{
  "appName": {
    "message": "Arena",
    "description": "Este apasionante juego consiste en ir moviendo a medida que van cayendo las diferentes partículas que simulan ser arena, para crear figuras , mundos. etc."
  },
  "appDesc": {
    "message": "Arena.",
    "description":"Este apasionante juego consiste en ir moviendo a medida que van cayendo las diferentes partículas que simulan ser arena, para crear figuras , mundos. etc"
  }
}
 
//in _locales/zh_CN/messages.json:
{
  "appName": {
    "message": "落砂"
  },
  "appDesc": {
    "message": "遊戲涉及四個不同的粒子,從屏幕上方落下,而這一切的外觀和移動類似沙"
  }
}
 
 
  "version": "1",
  "app": {
    "urls": [
    ],
    "browse_urls": [
     
    ],
    "launch": {
    }
  },
  "icons": {
    "24": "icon_24.png",
    "128": "icon_128.png"
  },
  "permissions": [
    "unlimited_storage"
  ]
}
 
 
So I have to upload the file now ? or must be separately?. I have some error? can you show me how? I would really appreciate it sam
 
All the Best
Hernan

Reply all
Reply to author
Forward
0 new messages