hi,

I figured out the way but just want to communicate that the step 
mentioned that config.json does not include the translation job by 
default. So, we need to add the line :

"translation" :
    {
      "extend" : ["appconf::translation"]
    }

in the JSON file. And if the load application is diff., then you do :

...
 "jobs" :
  {
      "common" :
    {
      "include" :
      [
        "new application name",
        "${QXTHEME}",
        "qx.legacy.theme.ClassicRoyale"
      ],
      "settings" :
      {
        "qx.legacy.theme" : "qx.legacy.theme.ClassicRoyale",
        "qx.application"  : "new application name"
      }
    },
...
"translation" :
    {
      "extend" : ["common", "appconf::translation"]
    }

cheers
Amit

Amit Rana wrote:
> Hi,
>
> I am using v0.8 SDK and I want to use the internationalization feature. 
> I was following the instructions as given on : 
> http://qooxdoo.org/documentation/0.8/internationalization
>
> But, I am getting errors. How do I setup my config.json for this ? I use 
> a path diff. from Application.js (like custom.abc.xyz.js)
>
> ----------Error 1:------------------------------
>
> When I do : generate.py translation, I get error as :
>  >generate.py translation
>
> <my path>\qooxdoo-0.8\tool\pylib\generator\runtime\Cache.py:1: 
> DeprecationWarning: the sha module is deprecated; use the
> hashlib module instead
>   import os, sys, sha, time, cPickle
>
> ============================================================================
>     INITIALIZING: SPAGOBI
> ============================================================================
>  >>> Configuration: config.json
>  >>> Jobs: translation
>  >>> No such job: translation
>  >>> Available jobs:
>   - api
>   - appconf::api
>   - appconf::build
>   - appconf::clean
>   - appconf::distclean
>   - appconf::fix
>   - appconf::lint
>   - appconf::migration
>   - appconf::pretty
>   - appconf::profiling
>   - appconf::publish
>   - appconf::source
>   - appconf::test
>   - appconf::test-source
>   - appconf::translation
>   - build
>   - clean
>   - common
>   - distclean
>   - fix
>   - lint
>   - migration
>   - pretty
>   - publish
>   - source
>   - test
>   - test-source
>   - translate
>
> ----------- Error 2 ------------------------------------
> Then, I tried : generate.py translate and I got the error :
> <my path>\qooxdoo-0.8\tool\pylib\generato
> r\runtime\Cache.py:1: DeprecationWarning: the sha module is deprecated; 
> use the
> hashlib module instead
>   import os, sys, sha, time, cPickle
>
> ============================================================================
>     INITIALIZING: SPAGOBI
> ============================================================================
>  >>> Configuration: config.json
>  >>> Jobs: translate
>  >>> Resolving jobs...
> Traceback (most recent call last):
>   File "<my path>\qooxdoo-0.8\tool\bin\generator.py", line 133, in <module>
>     main()
>   File "<my path>\qooxdoo-0.8\tool\bin\generator.py", line 114, in main
>     expandedjobs = config.resolveExtendsAndRuns(options.jobs[:])
>   File "<my path>\qooxdoo-0.8\tool\pylib\generator\config\Config.py", 
> line 291, in resolveExtendsAndRuns    self._resolveExtends(jobList)
>   File "<my path>\qooxdoo-0.8\tool\pylib\generator\config\Config.py", 
> line 309, in _resolveExtends    job.resolveExtend()
>   File "<my path>\qooxdoo-0.8\tool\pylib\generator\config\Job.py", line 
> 93, in resolveExtend    raise RuntimeError, "No such job: \"%s\" (trace: 
> %s)" % (entry, entryTrace+[self.name])
> RuntimeError: No such job: "appconf::translate" (trace: ['translate'])
>
> ---------- Error 3 -----------------------------
> Then, I tried : generate.py appconf::translation and I got the error
>
> <my path>\qooxdoo-0.8\tool\pylib\generator\runtime\Cache.py:1: 
> DeprecationWarning: the sha module is deprecated; use the
> hashlib module instead
>   import os, sys, sha, time, cPickle
>
> ============================================================================
>     INITIALIZING: SPAGOBI
> ============================================================================
>  >>> Configuration: config.json
>  >>> Jobs: appconf::translation
>  >>> Resolving jobs...
>  >>> Resolving macros...
>  >>> Resolving libs/manifests...
>
> ============================================================================
>     EXECUTING: APPCONF::TRANSLATION
> ============================================================================
>  >>> Scanning libraries...
>   - Scanning \qooxdoo-0.8\framework...
>   - Scanning ..
>  >>> Loaded 741 private fields
>  >>> Updating translations...
>   - Updating namespace: spagobi
>     - Updating 3 translations...
> Traceback (most recent call last):
>   File "<my path>\qooxdoo-0.8\tool\bin\generator.py", line 133, in <module>
>     main()
>   File "<my path>\qooxdoo-0.8\tool\bin\generator.py", line 128, in main
>     Generator(config, job, console).run()
>   File "<my path>\qooxdoo-0.8\tool\pylib\generator\Generator.py", line 
> 389, in run
>     smartInclude, explicitInclude = 
> self.getIncludes(self._config.get("include",
>  []))
>   File "<my path>\qooxdoo-0.8\tool\pylib\generator\Generator.py", line 
> 1395, in getIncludes    smartInclude = self._expandRegExps(smartInclude)
>   File "<my path>\qooxdoo-0.8\tool\pylib\generator\Generator.py", line 
> 1478, in _expandRegExps
>     raise RuntimeError, "Expression gives no results. Malformed entry: 
> %s" % entry
> RuntimeError: Expression gives no results. Malformed entry: 
> spagobi.Application
>
> So, I have to configure my config.json but I am not able to.
>
> regards
>
>   

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to