Permalink
Browse files

Quick workaround for 2.0.1 final

Will find permanent workaround
  • Loading branch information...
Mitchell Simoens
Mitchell Simoens committed May 22, 2012
1 parent 60ae49a commit 7453602cba54a066600773cfec63711bae4dc422
Showing 1,411 changed files with 342,164 additions and 1,725 deletions.
@@ -12,10 +12,11 @@ Ext.define('Locale.controller.Main', {
onLocalePick : function(field, value) {
if (value.length > 2) {
var store = field.getStore(),
- rec = store.findRecord('text', value),
- abbr = rec.get(field.getValueField());
+ rec = store.findRecord('text', value);
+
+ value = rec.get(field.getValueField());
}
- Ux.locale.Manager.updateLocale(abbr);
+ Ux.locale.Manager.updateLocale(value);
}
});
View
@@ -19,14 +19,18 @@ Ext.define('Locale.view.Main', {
},
items : [
{
- ui : 'decline',
- locales : {
+ ui : 'decline',
+ enableLocale : true,
+ locale : Ux.locale.Manager,
+ locales : {
text : 'buttons.cancel'
}
},
{
- ui : 'confirm',
- locales : {
+ ui : 'confirm',
+ enableLocale : true,
+ locale : Ux.locale.Manager,
+ locales : {
text : 'buttons.save'
}
},
@@ -0,0 +1,73 @@
+/**
+ * Sencha Command
+ * @author Jacky Nguyen <jacky@sencha.com>
+ */
+(function() {
+ var sdkToolsVersion = '2.0.0-beta2',
+ sdkToolsEnvName = 'SENCHA_SDK_TOOLS_' + sdkToolsVersion.replace(/[\.-]/g, '_').toUpperCase(),
+ coreFiles = [
+ "Ext.js",
+ "version/Version.js",
+ "lang/String.js",
+ "lang/Number.js",
+ "lang/Array.js",
+ "lang/Function.js",
+ "lang/Object.js",
+ "lang/Date.js",
+ "lang/JSON.js",
+ "class/Base.js",
+ "class/Class.js",
+ "class/ClassManager.js",
+ "class/Loader.js",
+ "lang/Error.js"
+ ],
+ path = require('path'),
+ currentPath = __dirname,
+ srcPath = path.resolve(currentPath, '../src'),
+ corePath = path.join(srcPath, 'core'),
+ sdkToolsPath = process.env[sdkToolsEnvName],
+ command;
+
+ if (!sdkToolsPath) {
+ console.log('[ERROR] Sencha SDK Tools ' + sdkToolsVersion + ' cannot be found from your system ('+sdkToolsEnvName+
+ ' environment variable is not set). Please download and install version "'+
+ sdkToolsVersion+'" of the tools from http://www.sencha.com/products/sdk-tools . ' +
+ 'Close this terminal and open a new one after the installation is complete.');
+ return;
+ }
+
+ coreFiles.forEach(function(file) {
+ require(path.join(corePath, file));
+ });
+
+ Ext.Loader.setConfig({
+ paths: {
+ Ext: srcPath,
+ Command: path.join(currentPath, 'src')
+ }
+ });
+
+ command = Ext.create('Command.Cli', {
+ version: '2.0.1',
+ currentPath: currentPath,
+ binPath: path.join(sdkToolsPath, 'bin'),
+ modules: {
+ 'app': 'Application',
+ 'fs': 'FileSystem',
+ 'manifest': 'Manifest',
+ 'test': 'Test',
+ 'generate': 'Generate',
+ 'package': 'Package'
+ },
+ logger: Ext.create('Ext.log.Logger', {
+ writers: {
+ cli: Ext.create('Command.log.writer.Cli', {
+ formatter: Ext.create('Command.log.formatter.Cli')
+ })
+ },
+ minPriority: 'verbose'
+ })
+ });
+
+ command.run(Array.prototype.slice.call(process.argv, 2));
+})();
Oops, something went wrong.

0 comments on commit 7453602

Please sign in to comment.