@@ -0,0 +1,1827 @@
+/**%0A * Licensed to the Apache Software Foundation (ASF) under one or more%0A * contributor license agreements.  See the NOTICE file distributed with%0A * this work for additional information regarding copyright ownership.%0A * The ASF licenses this file to You under the Apache License, Version 2.0%0A * (the %22License%22); you may not use this file except in compliance with%0A * the License.  You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Aimport org.apache.tika.language.translate.MicrosoftTranslator;%0A%0Apublic class TranslatingExample %7B%0A    public static void main(String%5B%5D args) %7B%0A        String textToTranslate = %22This is some text that will be used for an example.%22;%0A        MicrosoftTranslator translator = new MicrosoftTranslator();%0A        // Change the id and secret! See http://msdn.microsoft.com/en-us/library/hh454950.aspx.%0A        translator.setId(%22dummy-id%22);%0A        translator.setSecret(%22dummy-secret%22);%0A        if (translator.isAvailable()) %7B%0A            try %7B%0A                String translatedText = translator.translate(textToTranslate, %22en%22, %22fr%22);%0A                System.out.println(%22Original: %22 + textToTranslate);%0A                System.out.println(%22Translated: %22 + translatedText);%0A            %7D catch (Exception e) %7B%0A                System.err.println(%22Error while translating.%22);%0A            %7D%0A        %7D%0A        else %7B%0A            throw new AssertionError(%22You must set the ID and secret for the MicrosoftTranslator.%22);%0A        %7D%0A    %7D%0A%7D%0A

Add in a translating example.