Asqatasun / Contrast-Finder

Contrast-Finder finds correct color contrasts (background / foreground) for web accessibility (a11y, WCAG, RGAA). https://app.contrast-finder.org
GNU Affero General Public License v3.0
56 stars 18 forks source link

#85 Korean translation - java.lang.IllegalArgumentException: unknown format type: 선택 #86

Closed dzc34 closed 7 years ago

dzc34 commented 7 years ago

related PR #85 Add Korean translation

Observed behaviour

the following URL works: http://127.0.0.1:8087/contrast-finder/?lang=ko selection_085

But the following URL fails: http://127.0.0.1:8087/contrast-finder/result.html?lang=ko&foreground=rgb(70%2C136%2C71)&background=%23DFF0D8&ratio=4.5&isBackgroundTested=false&algo=HSV

Type Exception report
message java.lang.IllegalArgumentException: unknown format type: 선택
description The server encountered an internal error that prevented it from fulfilling this request.

exception
org.apache.jasper.JasperException: java.lang.IllegalArgumentException: unknown format type: 선택
   org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:585)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)

Steps to reproduce the behaviour

git clone https://github.com/Asqatasun/Contrast-Finder.git
cd Contrast-Finder
git fetch origin refs/pull/85/head  
git checkout FETCH_HEAD
docker/build_and_run-with-docker.sh -l  -s ${PWD} -d docker/SNAPSHOT-local_from-Ubuntu/ 

Your configuration

Ubuntu / Maven / Docker openjdk version "1.8.0_131"

dzc34 commented 7 years ago

fixed

##### For [form.resultNumber]
##### ---> Do not translate "choice", it is an internal ID
form.resultNumber={0} {0,choice,1#result|1<results}
form.resultNumber={0} {0,choice,1#résultat|1<résultats}
form.resultNumber={0} {0,choice,1#resultado|1<resultados}
form.resultNumber={0} {0,choice,1#개의 결과|1<개의 결과}