From 81837637d17d67d129638542da54302a7fa92745 Mon Sep 17 00:00:00 2001 From: Petr Prikryl Date: Wed, 19 Jun 2013 12:52:35 +0200 Subject: Indonesian translator converted to UTF-8. --- src/language.cpp | 2 +- src/translator_id.h | 304 ++++++++++++++++++++++++++-------------------------- 2 files changed, 153 insertions(+), 153 deletions(-) diff --git a/src/language.cpp b/src/language.cpp index 6ba4847..2217433 100644 --- a/src/language.cpp +++ b/src/language.cpp @@ -207,7 +207,7 @@ bool setTranslator(const char *langName) #ifdef LANG_ID else if (L_EQUAL("indonesian")) { - theTranslator=new TranslatorDecoder(new TranslatorIndonesian); + theTranslator=new TranslatorIndonesian; } #endif #ifdef LANG_IT diff --git a/src/translator_id.h b/src/translator_id.h index 18e561a..bcf0efc 100644 --- a/src/translator_id.h +++ b/src/translator_id.h @@ -1,12 +1,12 @@ /****************************************************************************** * - * + * * * Copyright (C) 1997-2013 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its - * documentation under the terms of the GNU General Public License is hereby - * granted. No representations are made about the suitability of this software + * documentation under the terms of the GNU General Public License is hereby + * granted. No representations are made about the suitability of this software * for any purpose. It is provided "as is" without express or implied warranty. * See the GNU General Public License for more details. * @@ -18,7 +18,7 @@ #ifndef TRANSLATOR_ID_H #define TRANSLATOR_ID_H -/* +/* * Translasi berikut didasarkan pada versi translator_en.h dalam * Doxygen 1.7.5.1. * @@ -30,18 +30,18 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 // --- Language control methods ------------------- - /*! Used for identification of the language. The identification - * should not be translated. It should be replaced by the name + /*! Used for identification of the language. The identification + * should not be translated. It should be replaced by the name * of the language in English using lower-case characters only - * (e.g. "czech", "japanese", "russian", etc.). It should be equal to + * (e.g. "czech", "japanese", "russian", etc.). It should be equal to * the identification used in language.cpp. */ virtual QCString idLanguage() { return "indonesian"; } - /*! Used to get the LaTeX command(s) for the language support. + /*! Used to get the LaTeX command(s) for the language support. * This method should return string with commands that switch - * LaTeX to the desired language. For example + * LaTeX to the desired language. For example *
"\\usepackage[german]{babel}\n"
      *  
* or @@ -49,7 +49,7 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 * "\\usepackage[latin2]{inputenc}\n" * "\\usepackage[T1]{fontenc}\n" * - * + * * The English LaTeX does not use such commands. Because of this * the empty string is returned in this implementation. */ @@ -61,7 +61,7 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 /*! return the language charset. This will be used for the HTML output */ virtual QCString idLanguageCharset() { - return "iso-8859-1"; + return "utf-8"; } // --- Language translation methods ------------------- @@ -92,19 +92,19 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 /*! header that is put before the list of member attributes. */ virtual QCString trMemberDataDocumentation() - { + { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { - return "Dokumentasi Variabel"; + return "Dokumentasi Variabel"; } else { - return "Dokumentasi Anggota: Data"; + return "Dokumentasi Anggota: Data"; } } /*! this is the text of a link put after brief descriptions. */ - virtual QCString trMore() + virtual QCString trMore() { return "Selengkapnya..."; } /*! put in the class documentation */ @@ -129,7 +129,7 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 virtual QCString trGeneratedAutomatically(const char *s) { QCString result="Dibangkitkan secara otomatis oleh Doxygen"; if (s) result+=(QCString)" untuk "+s; - result+=" dari kode sumber."; + result+=" dari kode sumber."; return result; } @@ -147,7 +147,7 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 // quick reference sections - /*! This is put above each page as a link to the list of all groups of + /*! This is put above each page as a link to the list of all groups of * compounds or files (see the \\group command). */ virtual QCString trModules() @@ -159,14 +159,14 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 /*! This is put above each page as a link to the list of annotated classes */ virtual QCString trCompoundList() - { + { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return "Struktur Data"; } else { - return "Daftar Kelas"; + return "Daftar Kelas"; } } @@ -176,23 +176,23 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 /*! This is put above each page as a link to all members of compounds. */ virtual QCString trCompoundMembers() - { + { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { - return "Variabel Data"; + return "Variabel Data"; } else { - return "Daftar Anggota Kelas"; + return "Daftar Anggota Kelas"; } } /*! This is put above each page as a link to all members of files. */ virtual QCString trFileMembers() - { + { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { - return "Daftar Definisi Global"; + return "Daftar Definisi Global"; } else { @@ -229,11 +229,11 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 /*! This is an introduction to the annotated compound list. */ virtual QCString trCompoundListDescription() - { + { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { - return "Berikut ini daftar struktur data, dengan penjelasan singkat:"; + return "Berikut ini daftar struktur data, dengan penjelasan singkat:"; } else { @@ -258,7 +258,7 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 result+=" yang didokumentasikan"; } result+=", dengan tautan ke "; - if (!extractAll) + if (!extractAll) { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { @@ -269,7 +269,7 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 result+="dokumentasi kelas untuk setiap anggota:"; } } - else + else { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { @@ -298,9 +298,9 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 } if (!extractAll) result+=" yang didokumentasikan"; result+=", dengan tautan ke "; - if (extractAll) + if (extractAll) result+="file yang memuatnya:"; - else + else result+="dokumentasinya:"; return result; } @@ -317,43 +317,43 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 virtual QCString trModulesDescription() { return "Berikut ini daftar semua modul:"; } - // index titles (the project name is prepended for these) + // index titles (the project name is prepended for these) /*! This is used in HTML as the title of index.html. */ virtual QCString trDocumentation() { return "Dokumentasi"; } - /*! This is used in LaTeX as the title of the chapter with the + /*! This is used in LaTeX as the title of the chapter with the * index of all groups. */ virtual QCString trModuleIndex() { return "Indeks Modul"; } - /*! This is used in LaTeX as the title of the chapter with the + /*! This is used in LaTeX as the title of the chapter with the * class hierarchy. */ virtual QCString trHierarchicalIndex() { return "Indeks Hierarki Kelas"; } - /*! This is used in LaTeX as the title of the chapter with the + /*! This is used in LaTeX as the title of the chapter with the * annotated compound index. */ virtual QCString trCompoundIndex() { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) - { + { return "Indeks Struktur Data"; } else { - return "Indeks Kelas"; + return "Indeks Kelas"; } } /*! This is used in LaTeX as the title of the chapter with the * list of all files. */ - virtual QCString trFileIndex() + virtual QCString trFileIndex() { return "Indeks File"; } /*! This is used in LaTeX as the title of the chapter containing @@ -366,14 +366,14 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 * the documentation of all classes, structs and unions. */ virtual QCString trClassDocumentation() - { + { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { - return "Dokumentasi Struktur Data"; + return "Dokumentasi Struktur Data"; } else { - return "Dokumentasi Kelas"; + return "Dokumentasi Kelas"; } } @@ -399,43 +399,43 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 virtual QCString trReferenceManual() { return "Dokumen Referensi"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of defines */ virtual QCString trDefines() { return "Makro Definisi"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of function prototypes */ virtual QCString trFuncProtos() { return "Prototipe Fungsi"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of typedefs */ virtual QCString trTypedefs() { return "Definisi Tipe"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of enumerations */ virtual QCString trEnumerations() { return "Enumerasi"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of (global) functions */ virtual QCString trFunctions() { return "Fungsi"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of (global) variables */ virtual QCString trVariables() { return "Variabel"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of (global) variables */ virtual QCString trEnumerationValues() @@ -447,56 +447,56 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 virtual QCString trDefineDocumentation() { return "Dokumentasi Makro Definisi"; } - /*! This is used in the documentation of a file/namespace before the list + /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for function prototypes */ virtual QCString trFunctionPrototypeDocumentation() { return "Dokumentasi Prototipe Fungsi"; } - /*! This is used in the documentation of a file/namespace before the list + /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for typedefs */ virtual QCString trTypedefDocumentation() { return "Dokumentasi Definisi Tipe"; } - /*! This is used in the documentation of a file/namespace before the list + /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for enumeration types */ virtual QCString trEnumerationTypeDocumentation() { return "Dokumentasi Tipe Enumerasi"; } - /*! This is used in the documentation of a file/namespace before the list + /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for functions */ virtual QCString trFunctionDocumentation() { return "Dokumentasi Fungsi"; } - /*! This is used in the documentation of a file/namespace before the list + /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for variables */ virtual QCString trVariableDocumentation() { return "Dokumentasi Variabel"; } - /*! This is used in the documentation of a file/namespace/group before + /*! This is used in the documentation of a file/namespace/group before * the list of links to documented compounds */ virtual QCString trCompounds() - { + { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { - return "Struktur Data"; + return "Struktur Data"; } else { - return "Kelas"; + return "Kelas"; } } - /*! This is used in the standard footer of each page and indicates when - * the page was generated + /*! This is used in the standard footer of each page and indicates when + * the page was generated */ virtual QCString trGeneratedAt(const char *date,const char *projName) - { + { QCString result=(QCString)"Dibangkitkan pada tanggal "+date; if (projName) result+=(QCString)" untuk "+projName; result+=(QCString)" oleh"; @@ -579,7 +579,7 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 ////////////////////////////////////////////////////////////////////////// /*! used in the class documentation as a header before the list of all - * related classes + * related classes */ virtual QCString trRelatedFunctionDocumentation() { return "Dokumentasi Friend Dan Fungsi Terkait"; } @@ -614,7 +614,7 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 virtual QCString trFileReference(const char *fileName) { QCString result="Referensi File "; - result+=fileName; + result+=fileName; return result; } @@ -655,21 +655,21 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 QCString result; int i; // the inherits list contain `numEntries' classes - for (i=0;i