You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "KuroSaka TeruHiko (JIRA)" <ji...@apache.org> on 2006/07/01 01:08:30 UTC

[jira] Commented: (NUTCH-313) moreFrom property in search.properties cannot be translated into Japanese. Compound text issue.

    [ http://issues.apache.org/jira/browse/NUTCH-313?page=comments#action_12418731 ] 

KuroSaka TeruHiko commented on NUTCH-313:
-----------------------------------------

Perhaps this might fixe the issue, besides the fix to the moreForm line in each of the search*.properties.

$ diff -bw -c /c/opt/nutch-060614/src/web/jsp/search.jsp search.jsp
*** /c/opt/nutch-060614/src/web/jsp/search.jsp  Tue Jun 13 17:20:38 2006
--- search.jsp  Wed Jun 28 16:04:23 2006
***************
*** 233,240 ****
      +params+"&hitsPerSite="+0
      +"&lang="+queryLang
      +"&clustering="+clustering;%>
!     (<a href="../search.jsp?<%=more%>"><i18n:message key="moreFrom"/>
!      <%=hit.getDedupValue()%></a>)
      <% } %>
      <br><br>
  <% } %>
--- 233,240 ----
      +params+"&hitsPerSite="+0
      +"&lang="+queryLang
      +"&clustering="+clustering;%>
!     (<a href="../search.jsp?<%=more%>"><i18n:message key="moreFrom">
!      <i18n:messageArg value="<%=hit.getDedupValue()%>"/></i18n:message></a>)
      <% } %>
      <br><br>
  <% } %>

I have not tested this fix, however, due to other strange i18n issues I'm facing.  (I'll file bugs later.)



> moreFrom property in search.properties cannot be translated into Japanese.  Compound text issue.
> ------------------------------------------------------------------------------------------------
>
>          Key: NUTCH-313
>          URL: http://issues.apache.org/jira/browse/NUTCH-313
>      Project: Nutch
>         Type: Bug

>   Components: web gui
>     Versions: 0.8-dev
>  Environment: n/a
>     Reporter: KuroSaka TeruHiko

>
> The "moreFrom" property in search.properties is currently defined as:
> moreFrom = more from
> and is used, in search.jsp, to construct HTML fragement that would be viewed as:
> (more from http://xxxx.yyy.zzz)
> The current code hard-codes the URL to be lead by "more from" or its translation.
> This cannot be translated into Japanese naturally because the Japanese language
> expects the URL to come at the beginning of the clause.
> Just like "hits" property, moreFrom should use the place holder within so that
> the English property would look like:
> moreFrom = more from {0}
> The fix is trivial but it requires modifications to search.jsp, search.properties and search_xx.properties at the same time.

-- 
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