AustinDube / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

Number of app's lang-manu #253

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
# 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

GoogleCodeExporter commented 8 years ago
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