On 04/28/12 08:40, Laurent Savaete wrote:
> A few thoughts about tagging (widget):
> 1- we need users to have an easy way to pick pre-existing tags
> 2- we want users to be able to add their own tags
> 3- we have some special tags, like source and target language (where
> applicable). Those I would show separately and only if it makes sense,
> e.g. source language only if we have an audio interaction (I don't
> think source makes sense otherwise, does it?). For instance,
> target-language could be shown on virtually any lesson, with a
> dropdown to pick the target language among those the user knows (or
> that could be an autocomplete field as well).
One thing about "special" tags to keep in mind is that we would like to
localize them (or at least that's what we decided to do in New York).
The tag "source-language:en" will have a different representation if the
site is being localized into Chinese than if it is being localized into
French. The more generic tags don't get translated (obviously) -- they
are what they are.
> - I seriously can't think of a better tagging widget than the one at
> stackexchange/stackoverflow(SO) (see screenshot attached, with
> autocomplete and help text (which we may skip)). It's the easiest one
> I've seen in terms of usage.
> - we use jquery-tokeninput for picking languages, which is fine
> because that's a predefined set of values, but we can trick it into
> accepting custom user tags, so I'd go for that one to cover 1 and 2,
> and it can approach the SO widget pretty closely (barring the tag
> description), with very little work. And the jquery plugin is under
> active dev/maintainance.
>
> so the result would look something like the second attachment.
>
> Tags in general:
> - we may want to support aliasing in the future, at least for
> searching (see the SO screenshot under "python-3.x") with alternative
> spellings. I can't think of a directly useful example for us, but I
> guess this could happen in the future.
> - also we may want to support localisation for tags (drupal has that
> sort of feature, which is pretty neat: we could tag a lesson with
> "grammar" but display "grammaire" for a user with "fr" as a UI
> language, and of course, let the user type in/search with the
> localised name). Typical use case: picture choice lessons for english
> vocabulary, that can be used by learners of virtually any native
> language.
Yes, this is basically what I'm getting at above. Does drupal support
the localization of things other than pre-defined tags? I think only
supporting pre-defined tag translations is good enough, but let me know
what you think.