You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Gavin (JIRA)" <ji...@apache.org> on 2006/10/01 03:45:19 UTC

[jira] Commented: (FOR-934) i18n language override menu

    [ http://issues.apache.org/jira/browse/FOR-934?page=comments#action_12438955 ] 
            
Gavin commented on FOR-934:
---------------------------

Sorry for being thick here, but can you explain where you have put each of these files.
As David explained before, if these were provided as patches then the path to these
files would have been there, in this case I just want to be sure we are in the same place.

> i18n language override menu
> ---------------------------
>
>                 Key: FOR-934
>                 URL: http://issues.apache.org/jira/browse/FOR-934
>             Project: Forrest
>          Issue Type: Improvement
>          Components: Dispatcher (aka views), Internationalisation (i18n)
>    Affects Versions: 0.8-dev
>            Reporter: Sjur N. Moshagen
>         Attachments: i18n-languages.zip, i18n-languages.zip
>
>
> Attached is a dispatcher contract with support files. It will return a list of alternative languages available for a given document. The list is of the form:
> <!--+ |start language list +-->
> <span>
> <a href="?locale=en">en</a>
> </span>
> <span>
> <a href="?locale=fi">fi</a>
> </span>
> <span>
> <a href="?locale=nb">nb</a>
> </span>
> <span class="selected">se</span>
> <span>
> <a href="?locale=smj">smj</a>
> </span>
> <!--+ |end language list +-->
> It handles filenames following this scheme (convention is already established for Forrest):
> document.XY.extension (XY = locale/language of document)
> document.extension (fallback document)
> If there is a fallback document, the contract will try to look inside the document to see if it can find an @xml:lang or @lang attribute to associate a language with the fallback document.
> The contract returns a list of available languages, including the one being displayed. The displayed language is marked with @class="selected" in the output html.
> If there is only one document available (=no alternating languages), the contract only returns three comments (start, end, and a comment stating that there's no alternative).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira