hello,
I need a help, or maybe advice how to localize my application.
now i used Globalized, it’s works perfectly, BUT
- when i tried to localized my admin pages which used activescaffold it
works very-very SLOW, check a log
Completed in 6.39100 (0 reqs/sec) | Rendering: 0.00000 (0%) | DB:
0.01600 (0%) | 200 OK
[http://localhost/en/kvarturas/new?_method=get&adapter=_list_inline_adapter]
Without globalized this i can get 5-10 request per second!!!
2)please check this pert of log(why i always checking translation in
database for the same labels)
Rendered
…/…/vendor/plugins/active_scaffold/frontends/default/views/_form
(6.26500)
SQL (0.000000) BEGIN
Globalize::ViewTranslation Load (0.000000) SELECT * FROM
globalize_translations WHERE (tr_key = ‘Create’ AND language_id = 1819
AND pluralization_index = 1 AND namespace IS NULL) AND (
(globalize_translations.type
= ‘ViewTranslation’ ) ) LIMIT 1
SQL (0.000000) COMMIT
SQL (0.000000) BEGIN
Globalize::ViewTranslation Load (0.016000) SELECT * FROM
globalize_translations WHERE (tr_key = ‘Create’ AND language_id = 1819
AND pluralization_index = 1 AND namespace IS NULL) AND (
(globalize_translations.type
= ‘ViewTranslation’ ) ) LIMIT 1
SQL (0.000000) COMMIT
SQL (0.000000) BEGIN
Globalize::ViewTranslation Load (0.000000) SELECT * FROM
globalize_translations WHERE (tr_key = ‘Cancel’ AND language_id = 1819
AND pluralization_index = 1 AND namespace IS NULL) AND (
(globalize_translations.type
= ‘ViewTranslation’ ) ) LIMIT 1
SQL (0.000000) COMMIT
SQL (0.000000) BEGIN
Globalize::ViewTranslation Load (0.000000) SELECT * FROM
globalize_translations WHERE (tr_key = ‘Cancel’ AND language_id = 1819
AND pluralization_index = 1 AND namespace IS NULL) AND (
(globalize_translations.type
= ‘ViewTranslation’ ) ) LIMIT 1
SQL (0.000000) COMMIT
Rendered
…/…/vendor/plugins/active_scaffold/frontends/default/views/_create_form
(6.31300)
As you can see - label ‘Create’ it always searching in database for
translation, no caching, always used SELECT.
Please recommend me better localization plugin, better with example,
that works very fast and support for DATES,MONTH’S translation!
Thanks