Hi Domizio!
Unfortunately, all of the keys (even those that are satisfied) show up
on the rendered page. Even the Login page has
*[en.hobo.login.heading]Login
*
which is defined in _hobo.en.yml_
Similarly, when I switch to Spanish, the heading shows:
*[es.hobo.actions.account]Perfil*
*[en.hobo.actions.account]Account*
which are defined in _hobo.es.yml_ and _hobo.en.yml respectively._
Right now, the login page defaults to English, only when the user
identifies herself does the chosen language get set, so I can't show
that one in Spanish.
Looks like your refactories ran away with themselves:-D
Thanks,
Don
On 1/19/2011 6:16 PM, Domizio Demichelis wrote:
"only keys that are not satisfied in the current locale"
IIRC that should already happen by default, even without any
"show_translation_keys" option.... if my last refactories didn't wipe
it out :-)
Please, let me know
ciao
dd
On Wed, Jan 19, 2011 at 5:23 PM, Donald R. Ziesig <[email protected]
<mailto:[email protected]>> wrote:
Domizio !
Got it! Yes this is the right way to help in the translation.
One potential improvement (at least as I see it ;-) ) : Is it
possible to add an _option_ so that only keys that are not
satisfied in the current locale are shown? That way, the
developer/translator would be able to tell at a glance what was
left to be done on any given page.
Thanks,
Don
On 1/18/2011 5:20 PM, Domizio Demichelis wrote:
The ht method has been deeply refactoried many times.
HOBO_VERBOSE_TRANSLATIONS was just filling your log with ALL keys
and values, without really be of any help, so I removed it
HOBO_SHOW_LOCALE_KEYS has been substituted by the
config.hobo.show_translation_keys.
The output is better because it shows you also the fallbacks,
besides it is dryml/erb friendly (i.e. plain text, not tags that
mess the parsing up)
ciao
dd
On Tue, Jan 18, 2011 at 6:08 PM, Donald R. Ziesig
<[email protected] <mailto:[email protected]>> wrote:
I give up! How can I enable these options?
On 1/18/2011 5:03 PM, Domizio Demichelis wrote:
indeed I removed all the globals related to locale keys in
1.3... there is only the config option and the result is better.
ciao
dd
On Tue, Jan 18, 2011 at 5:58 PM, Donald R. Ziesig
<[email protected] <mailto:[email protected]>> wrote:
Hi Scorpio!
Yes (without the typo, too) ;-) . It has no effect,
unless I am looking it the wrong place. The locale data
is supposed to show up in the log, correct?
Don
On 1/18/2011 2:07 PM, Scorpio wrote:
Have you tried "HOBO_SHOW_LOCALE_KEYS = ture"
without the quotes?
On Jan 18, 5:53 pm, "Donald R.
Ziesig"<[email protected]
<mailto:[email protected]>> wrote:
Hi All!
The hobo cookbook shows a pair of environment
variables that enable
debugging of internationalization.
HOBO_VERBOSE_TRANSLATIONS
HOBO_SHOW_LOCALE_KEYS
I have these set in the environment, but they do
not have any effect
(RoR 3.0.3, Hobo 1.3).
I remember seeing something that said these were
replaced by something
in config.??? but I'll be *^%&^% if I can find
it again.
I tried:
config.hobo_verbose_translations = true
config.hobo_show_locale_keys = true
which apparently compiled correctly (no errors
and website ran properly)
but again there does not seem to be anything
translation-related in the log.
How can I get the keys and translations in the
log so I don't have to
randomly try different keys, etc.
Thanks,
Don Ziesig
--
You received this message because you are subscribed to
the Google Groups "Hobo Users" group.
To post to this group, send email to
[email protected]
<mailto:[email protected]>.
To unsubscribe from this group, send email to
[email protected]
<mailto:hobousers%[email protected]>.
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.
--
You received this message because you are subscribed to the
Google Groups "Hobo Users" group.
To post to this group, send email to
[email protected] <mailto:[email protected]>.
To unsubscribe from this group, send email to
[email protected]
<mailto:[email protected]>.
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.
--
You received this message because you are subscribed to the
Google Groups "Hobo Users" group.
To post to this group, send email to
[email protected] <mailto:[email protected]>.
To unsubscribe from this group, send email to
[email protected]
<mailto:hobousers%[email protected]>.
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.
--
You received this message because you are subscribed to the
Google Groups "Hobo Users" group.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To unsubscribe from this group, send email to
[email protected]
<mailto:[email protected]>.
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.
--
You received this message because you are subscribed to the Google
Groups "Hobo Users" group.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To unsubscribe from this group, send email to
[email protected]
<mailto:hobousers%[email protected]>.
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.
--
You received this message because you are subscribed to the Google
Groups "Hobo Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.