|
List Info
Thread: LanguageSelectorPlugin v0.5 - need help debugging
|
|
| LanguageSelectorPlugin v0.5 - need help
debugging |

|
2007-01-29 07:01:39 |
Hi all,
I've created a plugin for switching between languages.
Background info: I'm using TW to create a digital
(electronic?) resume/
CV, and want the user to be able to switch between German
and English.
The basic concept is:
* create CSS classes for each language, using "display:
none;"
* enclose each language-specific section in the respective
CSS class
* have buttons to change the properties of the respective
language's
class to "display: block;" (or
"inline", to prevent whitespaces?)
However, it doesn't seem to work yet; the buttons don't do
anything.
I'm quite sure the general approach is correct, but I can't
figure out
what I'm doing wrong.
So I'd greatly appreciate if someone could take a look at
the code and
help me out with it: http://pastebin.ca/331925
a>
Thanks!
-- F.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWiki googlegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: LanguageSelectorPlugin v0.5 - need
help debugging |

|
2007-01-31 15:28:10 |
|
Well, it occurs to me that PolyglotPlugin was broken since TiddlyWiki version 2.1, as processConfig() disappeared from the core at this time. I've posted an update to correct this today.
About the installation process :
if your chosen languages are for exemple english and german, and you settled to use "en" and "de" as marker for these, respectively... modify these lines in the "PolyglotPlugin" tiddler :
defaultlang:"fr", languages:["fr","en"], to
defaultlang:"en", languages:["en","ge"], Tag the "PolyglotPlugin" with "systemConfig",
then import an english (you'll find one at http://yann.perrin.googlepages.com/twkd.html#lingoEN
) and a german (i can't help you for this one, sorry) translation tiddler in your tw. Tag the english one with "en", and the german one with "de".
Also tag this last two with "linguo", if you did not modify this line
pluginTranslationTag:"linguo", Now, save and reload, and you should be good to go.
Hope this is clear enough
-- Yann.
http://yann.perrin.googlepages.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki googlegroups.com To unsubscribe from this group, send email to TiddlyWiki-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---
|
[1-2]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|