@@ -0,0 +1,3181 @@
+/**%0A * Copyright (c) 2012-2015, jcabi.com%0A * All rights reserved.%0A *%0A * Redistribution and use in source and binary forms, with or without%0A * modification, are permitted provided that the following conditions%0A * are met: 1) Redistributions of source code must retain the above%0A * copyright notice, this list of conditions and the following%0A * disclaimer. 2) Redistributions in binary form must reproduce the above%0A * copyright notice, this list of conditions and the following%0A * disclaimer in the documentation and/or other materials provided%0A * with the distribution. 3) Neither the name of the jcabi.com nor%0A * the names of its contributors may be used to endorse or promote%0A * products derived from this software without specific prior written%0A * permission.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT%0A * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND%0A * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL%0A * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,%0A * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES%0A * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR%0A * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)%0A * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,%0A * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)%0A * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED%0A * OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0A%0Aimport java.util.HashMap;%0Aimport java.util.Locale;%0Aimport java.util.Map;%0A%0A/**%0A * Translates word yes to different languages.%0A * @author Georgy Vlasov (wlasowegor@gmail.com)%0A * @version $Id$%0A * @since 0.12%0A */%0Apublic final class Yes %7B%0A    /**%0A     * Map from 2-letter language codes to translations of word yes into that%0A     * language.%0A     */%0A    private final transient Map%3CString, String%3E translations;%0A%0A    /**%0A     * Public ctor.%0A     */%0A    public Yes() %7B%0A        this.translations = new HashMap%3CString, String%3E();%0A        this.translations.put(%22en%22, %22yes%22);%0A        this.translations.put(%22de%22, %22ja%22);%0A        this.translations.put(%22fr%22, %22oui%22);%0A        this.translations.put(%22ru%22, %22%D0%B4%D0%B0%22);%0A        this.translations.put(%22es%22, %22s%C3%AD%22);%0A        this.translations.put(%22ua%22, %22%D1%82%D0%B0%D0%BA%22);%0A        this.translations.put(%22jp%22, %22%E3%81%AF%E3%81%84%22);%0A    %7D%0A%0A    /**%0A     * Translates word yes to a language.%0A     * @param locale Locate specifying the language.%0A     * @return Word yes translated to a language.%0A     */%0A    public String translate(final Locale locale) %7B%0A        final String language = locale.getLanguage();%0A        final String translation = this.translations.get(language);%0A        if (translation == null) %7B%0A            throw new IllegalArgumentException(%0A                String.format(%0A                    new StringBuilder()%0A                        .append(%22Language %25s is not supported, you can create %22)%0A                        .append(%22an issue on Github and we'll fix it%22)%0A                        .toString(),%0A                    language%0A                )%0A            );%0A        %7D%0A        return translation;%0A    %7D%0A%7D%0A

Create Yes.java