Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of app's lang-manu #253

Closed
GoogleCodeExporter opened this issue Mar 25, 2015 · 2 comments
Closed

Number of app's lang-manu #253

GoogleCodeExporter opened this issue Mar 25, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Acess apps(apps/index.html or 
https://blockly-demo.appspot.com/static/apps/index.html)
2. languageMenu have 47items.
3. however there are 81 js files in apps\index\generate.

What is the expected output? What do you see instead?

 I think languageMenu have same number of js files.

What browser are you using?

 firefox, Chromme on Windows7

Please provide any additional information below.

 All app's languageMenu is not number of js file.

    languageMenu    js files
-------+-------+-------------------------
code    35  81 (apps\code\generated)
graph   35  81 (apps\graph\generated)
maze    41  81 (apps\maze\generated)
plane   38  81 (apps\plane\generated)
puzzle  62  81 (apps\puzzle\generated)
turtle  30  81 (apps\turtle\generated)

Original issue reported on code.google.com by yyyca...@gmail.com on 13 Oct 2014 at 7:28

@GoogleCodeExporter
Copy link
Author

# Solution

add BlocklyApps.LANGUAGES like this in the files(ex. maze.js).

 // Supported languages.
 BlocklyApps.LANGUAGES =
   ['ace', 'af', 'ar', 'arz', 'az', 'be-tarask.jbg', 'bn', 'br', 'ca', 'cdo',
    'cs', 'da', 'de', 'diq', 'el', 'en', 'es', 'eu', 'fa', 'fi', 'fo', 'fr',
    'frr', 'gl', 'gn', 'hak', 'he', 'hi', 'hrx', 'hu', 'ia', 'is', 'it', 'ja',
    'ka', 'km', 'ko', 'ksh', 'ku-latn', 'ky', 'la', 'lb', 'lrc', 'lt', 'lv',
    'mg', 'mk', 'ml', 'mr', 'ms', 'mzn', 'nb', 'ne', 'nl', 'oc', 'pa', 'pl',
    'pms', 'ps', 'pt-br', 'pt', 'ro', 'ru', 'sc', 'sco', 'si', 'sk', 'sr', 'sv',
    'sw', 'ta', 'te', 'th', 'tlh', 'tr', 'tzm', 'uk', 'vi', 'zh-hans', 'zh-hant'];

Original comment by yyyca...@gmail.com on 14 Oct 2014 at 2:54

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

This is intentional.  Many of those js files (or rather the json files that 
generate the js files) are terribly incomplete.  There exist some languages 
where "OK" is the only translated message, the rest are in English.  Until a 
translation has over 80% of the messages translated for an app, we don't show 
that language in the menu.

Original comment by neil.fra...@gmail.com on 19 Oct 2014 at 8:48

  • Changed state: Invalid
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant