[ 
https://issues.apache.org/jira/browse/JSPWIKI-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149426#comment-18149426
 ] 

Alex O'Ree commented on JSPWIKI-1382:
-------------------------------------

this is much larger that i expected. a lot of our existing APIs are rather 
poorly designed. For instance

pageExists(String, int)

pageExists(String)

and this pattern is repeated in many many places

and we have effectively duplicated apis in both PageProvider and PageManager

this could have been simplified to use a page locator data structure

pageExist(localtor)

where locator has a string for the page name, an optional Integer for the 
version) and as time goes on, additional fields for locale and maybe page 
spaces. I think that's the first step for this.

i don't think it will break any existing code, but anyone building directly 
from the interfaces will definitely need to implement some new functions

> Per page wiki language translations
> -----------------------------------
>
>                 Key: JSPWIKI-1382
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1382
>             Project: JSPWiki
>          Issue Type: New Feature
>            Reporter: Alex O'Ree
>            Priority: Minor
>
> So we currently have I18N for most of the tooling, buttons and messages in 
> jspwiki, and we have i18n for the initial set of pages, but we really don't 
> have a way to load or make all the translated pages available at run time. 
> basically when the admin sets up the server, it's the one language and that's 
> it.
> maybe we can do something like
> /Wiki.jsp?page=foo&lang=en-US
> or something like that, that would translate to (using the file system 
> provider) /pageStorage/pageName/langCode/pageName.txt
> just a shower thought and if implemented, it would probably be a 4.0 target 
> as it will have some large api changes.
>  
> marking as low priority but high level of effort



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to