{ "info": { "author": "Jochen Dekeyser", "author_email": "ict@kreaplast.be", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python" ], "description": "Introduction\n============\n\nThis packages makes it possible to have i18n in JavaScript via the\nlocales-directory. It is based on jarn.jsi18n and extends jarn.jsi18n (so it\nneeds jarn.jsi18n to work).\n\n\nUsage\n=====\n\nThis package is used in exactly the same manner as jarn.jsi18n, so if\nyou want to know how to use kreagroup.jsi18n, visit\nhttp://pypi.python.org/pypi/jarn.jsi18n\n\n\nWhy this package?\n=================\n\njarn.jsi18n and kreagroup.jsi18n do differ... You can use the packages in\nthe same way, but the result will differ in one particular case...\n\nSuppose we run the following code in a browser, for the first time:\n\n > jarn.i18n.loadCatalog('plone', 'es');\n\n > _es = jarn.i18n.MessageFactory('plone', 'es');\n\n > _es('Contributor');\n\n \"Contribuyente\"\n\nIn line 1, jarn.jsi18n will download the i18n catalog in an ASYNCHRONOUS\nway. While the i18n catalog is loading, it will run line 2 and 3, so\n'Contributor' will be translated while the i18n catalog is not loaded. Because\nthe i18n catalog is not loaded, _es('Contributor') will not be translated and\njust return the input. Here, the result will be 'Contributor', not \"Contribuyente\".\nThe next time we run the same code, chances are big that the download of the\ni18n catalog is completed, so it will be in browser cache (no need to download\nnow), and the translation will executed correctly.\n\nOn the other hand...\nIn line 1, kreagroup.jsi18n loads the i18n catalog SYNCHRONOUS, so it waits\nuntil the i18n catalog is loaded. When this is finished, it starts executing\nline 2 and 3 and will translate correctly, because the i18n catalog is\nalready downloaded.\n\n\njarn.jsi18n vs kreagroup.jsi18n, a matter of taste...\n=====================================================\n\njarn.jsi18n is more responsive, by only using asynchronous ajax calls. This comes \nwith a penalty of no translation the first time the code is run...\n\nkreagroup.jsi18n does always translate correctly. This comes with a penalty of a \nsynchronous ajax call, which means you have to wait a little longer before the \npage loads the first time, which is less responsive...\n\n\nBonus\n=====\n\njarn.jsi18n-1.0 does not work with Internet Explorer 8. kreagroup.jsi18n\ncontains a fix so translation do work in Internet Explorer 8. Probably,\njarn.jsi18n-1.1 will also contain this fix :-)\n\n\n\nChangelog\n=========\n\n1.0.3 - 2013-08-16\n------------------\n\n- Pin jarn.jsi18n to version 1.0\n\n1.0.2 - 2013-08-13\n------------------\n\n- Fixes in documentation\n\n1.0.1 - 2013-08-13\n------------------\n\n- Added documentation for first public release\n\n1.0.0 - 2013-05-23\n------------------\n\n- Initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": ".", "keywords": "plone JavaScript i18n krea.group jarn.jsi18n", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "kreagroup.jsi18n", "package_url": "https://pypi.org/project/kreagroup.jsi18n/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/kreagroup.jsi18n/", "project_urls": { "Download": "UNKNOWN", "Homepage": "." }, "release_url": "https://pypi.org/project/kreagroup.jsi18n/1.0.3/", "requires_dist": null, "requires_python": null, "summary": "Plone i18n for JavaScript", "version": "1.0.3" }, "last_serial": 841764, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "1bf31dadf0ba2d0830a41e7263896362", "sha256": "1fd822951741d43256f863d803010ad7adb6d98ae791bbf82c17d060edfa6c04" }, "downloads": -1, "filename": "kreagroup.jsi18n-1.0.2.tar.gz", "has_sig": false, "md5_digest": "1bf31dadf0ba2d0830a41e7263896362", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14537, "upload_time": "2013-08-13T14:04:00", "url": "https://files.pythonhosted.org/packages/91/e5/22429c5c34cf020b4ea238d96913e29f8a1f02512a528944b3aaff51709e/kreagroup.jsi18n-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "bc74f32ec835ec43b015be9e2ff49dd5", "sha256": "5dd5079cadeac0f5af5a30131474a6613d97bf997f87069e2eb1382ac3134b36" }, "downloads": -1, "filename": "kreagroup.jsi18n-1.0.3.tar.gz", "has_sig": false, "md5_digest": "bc74f32ec835ec43b015be9e2ff49dd5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14645, "upload_time": "2013-08-16T18:45:17", "url": "https://files.pythonhosted.org/packages/93/9d/492c313a5aea720fb2bc68e6b8ff6dc44e5e34e251e7868b600bbd500a69/kreagroup.jsi18n-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bc74f32ec835ec43b015be9e2ff49dd5", "sha256": "5dd5079cadeac0f5af5a30131474a6613d97bf997f87069e2eb1382ac3134b36" }, "downloads": -1, "filename": "kreagroup.jsi18n-1.0.3.tar.gz", "has_sig": false, "md5_digest": "bc74f32ec835ec43b015be9e2ff49dd5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14645, "upload_time": "2013-08-16T18:45:17", "url": "https://files.pythonhosted.org/packages/93/9d/492c313a5aea720fb2bc68e6b8ff6dc44e5e34e251e7868b600bbd500a69/kreagroup.jsi18n-1.0.3.tar.gz" } ] }