From 9e5147a2be061e7d04bc57a9bdf4b03af5fc0dd9 Mon Sep 17 00:00:00 2001 From: Anouar Date: Sun, 26 Apr 2020 02:45:51 +0000 Subject: [PATCH 1/4] Added arabic to locales --- src/components/controls/language.js | 3 +- src/locales/ar/language.json | 3 + src/locales/ar/sidebar.json | 33 +++++++++++ src/locales/ar/translation.json | 91 +++++++++++++++++++++++++++++ 4 files changed, 129 insertions(+), 1 deletion(-) create mode 100644 src/locales/ar/language.json create mode 100644 src/locales/ar/sidebar.json create mode 100644 src/locales/ar/translation.json diff --git a/src/components/controls/language.js b/src/components/controls/language.js index cc9c83e47..5924155f8 100644 --- a/src/components/controls/language.js +++ b/src/components/controls/language.js @@ -31,7 +31,8 @@ class Language extends React.Component { {value: "pt", label: "Português"}, {value: "fr", label: "Français"}, {value: "tr", label: "Türkçe"}, - {value: "ja", label: "日本語"} + {value: "ja", label: "日本語"}, + {value: "ar", label: "العربية"} ]; return languages; } diff --git a/src/locales/ar/language.json b/src/locales/ar/language.json new file mode 100644 index 000000000..56809e5e5 --- /dev/null +++ b/src/locales/ar/language.json @@ -0,0 +1,3 @@ +{ + "name": "العربية" +} \ No newline at end of file diff --git a/src/locales/ar/sidebar.json b/src/locales/ar/sidebar.json new file mode 100644 index 000000000..0e4ffc229 --- /dev/null +++ b/src/locales/ar/sidebar.json @@ -0,0 +1,33 @@ +{ + "Dataset": "Dataset", + "Date Range": "Date Range", + "Color By": "Color By", + "Tree Options": "Tree Options", + "Layout": "Layout", + "rectangular": "rectangular", + "radial": "radial", + "unrooted": "unrooted", + "clock": "clock", + "Branch Length": "Branch Length", + "time": "time", + "divergence": "divergence", + "Show confidence intervals": "Show confidence intervals", + "Branch Labels": "Branch Labels", + "Search Strains": "Search Strains", + "Second Tree": "Second Tree", + "Map Options": "Map Options", + "Geographic resolution": "Geographic resolution", + "Animation Speed": "Animation Speed", + "Loop animation": "Loop animation", + "Animate cumulative history": "Animate cumulative history", + "Panel Options": "Panel Options", + "Show tree": "Show tree", + "Show map": "Show map", + "Show entropy": "Show entropy", + "Language": "Language", + "Slow": "Slow", + "Medium": "Medium", + "Fast": "Fast", + "full": "full", + "grid": "grid" +} \ No newline at end of file diff --git a/src/locales/ar/translation.json b/src/locales/ar/translation.json new file mode 100644 index 000000000..fdd43e64c --- /dev/null +++ b/src/locales/ar/translation.json @@ -0,0 +1,91 @@ +{ + "__Header//Byline__": "########################################", + "Maintained by": "Maintained by", + "using data from": "using data from", + "Built with": "Built with", + + + "__Header//Info__": "########################################", + "Showing {{x}} of {{y}} genomes": "Showing {{x}} of {{y}} genomes", + "Showing {{x}} of {{y}} genomes sampled between {{from}} and {{to}}": "Showing {{x}} of {{y}} genomes sampled between {{from}} and {{to}}", + "Comprising": "Comprising", + "Animation in progress": "Animation in progress", + "Filtered to": "Filtered to", + + + "__Download Modal__": "########################################", + "click outside this box to return to the app": "click outside this box to return to the app", + "last updated": "last updated", + "A full list of sequence authors is available via the TSV files below": "A full list of sequence authors is available via the TSV files below", + "Data usage policy": "Data usage policy", + "Please cite the authors who contributed genomic data (where relevant), as well as": "Please cite the authors who contributed genomic data (where relevant), as well as", + "Download data": "Download data", + "Data usage part 1": "The data presented here is intended to rapidly disseminate analysis of important pathogens. Unpublished data is included with permission of the data generators, and does not impact their right to publish. ", + "Data usage part 2": "Please contact the respective authors (available via the TSV files below) if you intend to carry out further research using their data. Derived data, such as phylogenies, can be downloaded below - please contact the relevant authors where appropriate.", + + "__Entropy Panel__": "########################################", + "Diversity": "Diversity", + "entropy": "entropy", + "events": "events", + "Codon {{codon}} in protein {{protein}}": "Codon {{codon}} in protein {{protein}}", + "Nucleotide {{nuc}}": "Nucleotide {{nuc}}", + "Nuc positions {{a}} to {{b}}": "Nuc positions {{a}} to {{b}}", + "Num mutations": "Num mutations", + "Negative strand": "Negative strand", + "Positive strand": "Positive strand", + "Click to color tree & map": "Click to color tree & map", + + + "__Footer__": "########################################", + "Filter by {{filterTitle}}": "Filter by {{filterTitle}}", + "Data updated": "Data updated", + + + "__Map panel__": "########################################", + "Transmissions": "Transmissions", + "Geography": "Geography", + "reset zoom": "reset zoom", + "Reset": "Reset", + "Play": "Play", + "Pause": "Pause", + + + "__Tree (Phylogeny) panel__": "########################################", + "Phylogeny": "Phylogeny", + "Reset Layout": "Reset Layout", + "Click on tip to display more info": "Click on tip to display more info", + "Click to zoom into clade": "Click to zoom into clade", + "Click to zoom out to parent clade": "Click to zoom out to parent clade", + "Branch leading to": "Branch leading to", + "Number of descendants": "Number of descendants", + "Nucleotide mutations": "Nucleotide mutations", + "AA mutations": "AA mutations", + "protein mutations truncated": "protein mutations truncated", + "Gaps": "Gaps", + "{{x}} more": "{{x}} more", + "No nucleotide mutations": "No nucleotide mutations", + "No amino acid mutations": "No amino acid mutations", + "Divergence": "Divergence", + "Date": "Date", + "Collection date": "Collection date", + "Inferred collection date": "Inferred collection date", + "Inferred Date": "Inferred Date", + "Date Confidence Interval": "Date Confidence Interval", + "Vaccine selected": "Vaccine selected", + "Vaccine start date": "Vaccine start date", + "Vaccine end date": "Vaccine end date", + "Serum strain": "Serum strain", + "Click outside this box to go back to the tree": "Click outside this box to go back to the tree", + "Authors": "Authors", + "Title": "Title", + "Journal": "Journal", + + + "__Frequencies panel__": "########################################", + "Frequencies": "Frequencies", + "colored by": "colored by", + "Projection": "Projection", + "Time point": "Time point", + "Frequency": "Frequency", + "Projected frequency": "Projected frequency" +} \ No newline at end of file From 39479ad201802d670de2474646a9d42a2e975b82 Mon Sep 17 00:00:00 2001 From: Anouar Date: Sun, 3 May 2020 04:25:03 +0000 Subject: [PATCH 2/4] Add Arabic sidebar, modified French sidebar --- src/locales/ar/sidebar.json | 62 ++++++++++++++++++------------------- src/locales/fr/sidebar.json | 2 +- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/locales/ar/sidebar.json b/src/locales/ar/sidebar.json index 0e4ffc229..046033a25 100644 --- a/src/locales/ar/sidebar.json +++ b/src/locales/ar/sidebar.json @@ -1,33 +1,33 @@ { - "Dataset": "Dataset", - "Date Range": "Date Range", - "Color By": "Color By", - "Tree Options": "Tree Options", - "Layout": "Layout", - "rectangular": "rectangular", - "radial": "radial", - "unrooted": "unrooted", - "clock": "clock", - "Branch Length": "Branch Length", - "time": "time", - "divergence": "divergence", - "Show confidence intervals": "Show confidence intervals", - "Branch Labels": "Branch Labels", - "Search Strains": "Search Strains", - "Second Tree": "Second Tree", - "Map Options": "Map Options", - "Geographic resolution": "Geographic resolution", - "Animation Speed": "Animation Speed", - "Loop animation": "Loop animation", - "Animate cumulative history": "Animate cumulative history", - "Panel Options": "Panel Options", - "Show tree": "Show tree", - "Show map": "Show map", - "Show entropy": "Show entropy", - "Language": "Language", - "Slow": "Slow", - "Medium": "Medium", - "Fast": "Fast", - "full": "full", - "grid": "grid" + "Dataset": "مجموعة بيانات", + "Date Range": "النطاق الزمني", + "Color By": "اللون حسب", + "Tree Options": "خيارات الشجرة", + "Layout": "التخطيط", + "rectangular": "مستطيل", + "radial": "شعاعي", + "unrooted": "بدون جذور", + "clock": "زمني", + "Branch Length": "طول الفرع", + "time": "الوقت", + "divergence": "تباعد", + "Show confidence intervals": "عرض مجال الثقة", + "Branch Labels": "تسميات الفروع", + "Search Strains": "البحث على السلالات", + "Second Tree": "الشجرة الثانية", + "Map Options": "خيارات الخريطة", + "Geographic resolution": "دقة الخريطة", + "Animation Speed": "سرعة الحركة", + "Loop animation": "حركة متكررة", + "Animate cumulative history": "تحريك التاريخ التراكمي", + "Panel Options": "خيارات اللوحة", + "Show tree": "عرض الشجرة", + "Show map": "عرض الخريطة", + "Show entropy": "عرض الانتروبيا", + "Language": "اللغة", + "Slow": "بطيئة", + "Medium": "متوسطة", + "Fast": "سريعة", + "full": "كامل", + "grid": "شبكة" } \ No newline at end of file diff --git a/src/locales/fr/sidebar.json b/src/locales/fr/sidebar.json index 9d2ac1ef9..0c6849085 100644 --- a/src/locales/fr/sidebar.json +++ b/src/locales/fr/sidebar.json @@ -1,5 +1,5 @@ { - "Dataset": "Catalogue des données", + "Dataset": "Jeu des données", "Date Range": "Intervalle de dates", "Color By": "Couleur par", "Tree Options": "Options d'arborescence", From c975de3db5a58c2ef5d42533dbcb04c6a53bffb1 Mon Sep 17 00:00:00 2001 From: Anouar Date: Sun, 3 May 2020 05:22:57 +0000 Subject: [PATCH 3/4] modify fr sidebar --- src/locales/fr/sidebar.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locales/fr/sidebar.json b/src/locales/fr/sidebar.json index 0c6849085..7ed38c1de 100644 --- a/src/locales/fr/sidebar.json +++ b/src/locales/fr/sidebar.json @@ -1,5 +1,5 @@ { - "Dataset": "Jeu des données", + "Dataset": "Jeu de données", "Date Range": "Intervalle de dates", "Color By": "Couleur par", "Tree Options": "Options d'arborescence", From 599c0b802fcfd45aa4d1a3b1fdfa01b0a893f2f9 Mon Sep 17 00:00:00 2001 From: Anouar Date: Mon, 4 May 2020 01:09:37 +0000 Subject: [PATCH 4/4] Add ar translations, edited fr translations --- package-lock.json | 2 +- src/locales/ar/sidebar.json | 8 +- src/locales/ar/translation.json | 136 ++++++++++++++++---------------- src/locales/fr/translation.json | 2 +- 4 files changed, 74 insertions(+), 74 deletions(-) diff --git a/package-lock.json b/package-lock.json index 18622d9f3..2a507e16b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "auspice", - "version": "2.13.0", + "version": "2.14.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/locales/ar/sidebar.json b/src/locales/ar/sidebar.json index 046033a25..003bdaffa 100644 --- a/src/locales/ar/sidebar.json +++ b/src/locales/ar/sidebar.json @@ -11,7 +11,7 @@ "Branch Length": "طول الفرع", "time": "الوقت", "divergence": "تباعد", - "Show confidence intervals": "عرض مجال الثقة", + "Show confidence intervals": "اظهار مجال الثقة", "Branch Labels": "تسميات الفروع", "Search Strains": "البحث على السلالات", "Second Tree": "الشجرة الثانية", @@ -21,9 +21,9 @@ "Loop animation": "حركة متكررة", "Animate cumulative history": "تحريك التاريخ التراكمي", "Panel Options": "خيارات اللوحة", - "Show tree": "عرض الشجرة", - "Show map": "عرض الخريطة", - "Show entropy": "عرض الانتروبيا", + "Show tree": "اظهار الشجرة", + "Show map": "اظهار الخريطة", + "Show entropy": "اظهار الانتروبيا", "Language": "اللغة", "Slow": "بطيئة", "Medium": "متوسطة", diff --git a/src/locales/ar/translation.json b/src/locales/ar/translation.json index fdd43e64c..626f6496c 100644 --- a/src/locales/ar/translation.json +++ b/src/locales/ar/translation.json @@ -1,91 +1,91 @@ { "__Header//Byline__": "########################################", - "Maintained by": "Maintained by", - "using data from": "using data from", - "Built with": "Built with", + "Maintained by": "الصيانة من طرف", + "using data from": "باستخدام البيانات من", + "Built with": "أنشأ باستعمال", "__Header//Info__": "########################################", - "Showing {{x}} of {{y}} genomes": "Showing {{x}} of {{y}} genomes", - "Showing {{x}} of {{y}} genomes sampled between {{from}} and {{to}}": "Showing {{x}} of {{y}} genomes sampled between {{from}} and {{to}}", - "Comprising": "Comprising", - "Animation in progress": "Animation in progress", - "Filtered to": "Filtered to", + "Showing {{x}} of {{y}} genomes": "جينوم {{y}} من {{x}} إظهار", + "Showing {{x}} of {{y}} genomes sampled between {{from}} and {{to}}": "{{to}} إلى {{from}} إظهار {{x}} من {{y}} جنوم أخدت من ", + "Comprising": "يتكون من", + "Animation in progress": "حركة جارية", + "Filtered to": "صغر إلى", "__Download Modal__": "########################################", - "click outside this box to return to the app": "click outside this box to return to the app", - "last updated": "last updated", - "A full list of sequence authors is available via the TSV files below": "A full list of sequence authors is available via the TSV files below", - "Data usage policy": "Data usage policy", - "Please cite the authors who contributed genomic data (where relevant), as well as": "Please cite the authors who contributed genomic data (where relevant), as well as", - "Download data": "Download data", - "Data usage part 1": "The data presented here is intended to rapidly disseminate analysis of important pathogens. Unpublished data is included with permission of the data generators, and does not impact their right to publish. ", - "Data usage part 2": "Please contact the respective authors (available via the TSV files below) if you intend to carry out further research using their data. Derived data, such as phylogenies, can be downloaded below - please contact the relevant authors where appropriate.", + "click outside this box to return to the app": "انقر خارج هذا المربع للعودة إلى التطبيق", + "last updated": "آخر تحديث", + "A full list of sequence authors is available via the TSV files below": "قائمة كاملة من المؤلفين متاحة عبر ملفات أدناه", + "Data usage policy": "سياسة استخدام البيانات", + "Please cite the authors who contributed genomic data (where relevant), as well as": "يرجى ذكر المؤلفين الذين ساهموا بالببيانات الجينومية، وكذلك", + "Download data": "تحميل البيانات", + "Data usage part 1": "الغرض من البيانات المقدمة هنا هو النشر بسرعة تحليل مسببات الأمراض الخطيرة. يتم تضمين البيانات غير المنشورة بإذن من ممتلكي البيانات ، ولا تؤثر على حقهم في النشر ", + "Data usage part 2": "يرجى الاتصال بالمؤلفين المعنيين (متاح عبر ملفات أدناه) إذا كنت تنوي إجراء المزيد من البحث باستخدام بياناتهم. يمكن تنزيل البيانات المشتقة ، مثل السلالات ، أدناه - يرجى الاتصال بالمؤلفين المعنيين عند الحاجة.", "__Entropy Panel__": "########################################", - "Diversity": "Diversity", - "entropy": "entropy", - "events": "events", - "Codon {{codon}} in protein {{protein}}": "Codon {{codon}} in protein {{protein}}", - "Nucleotide {{nuc}}": "Nucleotide {{nuc}}", - "Nuc positions {{a}} to {{b}}": "Nuc positions {{a}} to {{b}}", - "Num mutations": "Num mutations", - "Negative strand": "Negative strand", - "Positive strand": "Positive strand", - "Click to color tree & map": "Click to color tree & map", + "Diversity": "التنوع", + "entropy": "الانتروبيا", + "events": "الأحداث", + "Codon {{codon}} in protein {{protein}}": "شيفرة جينية {{codon}} في البروتين {{protein}}", + "Nucleotide {{nuc}}": "نوكليوتيد {{nuc}}", + "Nuc positions {{a}} to {{b}}": "موضع النيكليوتيدات {{a}} إلى {{b}}", + "Num mutations": "طفرات النيكليوتيدات", + "Negative strand": " اتجاه إيجابي ", + "Positive strand": "اتجاه سلبي", + "Click to color tree & map": "انقر لتلوين الشجرة والخريطة", "__Footer__": "########################################", - "Filter by {{filterTitle}}": "Filter by {{filterTitle}}", - "Data updated": "Data updated", + "Filter by {{filterTitle}}": "تصنيف بواسطة {{filterTitle}}", + "Data updated": "بيانات محدثة", "__Map panel__": "########################################", - "Transmissions": "Transmissions", - "Geography": "Geography", - "reset zoom": "reset zoom", - "Reset": "Reset", - "Play": "Play", - "Pause": "Pause", + "Transmissions": "الإرساليات", + "Geography": "الجغرافيا", + "reset zoom": "إعادة التكبير", + "Reset": "إعادة التعيين", + "Play": "تشغيل", + "Pause": "إيقاف", "__Tree (Phylogeny) panel__": "########################################", - "Phylogeny": "Phylogeny", - "Reset Layout": "Reset Layout", - "Click on tip to display more info": "Click on tip to display more info", - "Click to zoom into clade": "Click to zoom into clade", - "Click to zoom out to parent clade": "Click to zoom out to parent clade", - "Branch leading to": "Branch leading to", - "Number of descendants": "Number of descendants", - "Nucleotide mutations": "Nucleotide mutations", - "AA mutations": "AA mutations", - "protein mutations truncated": "protein mutations truncated", - "Gaps": "Gaps", - "{{x}} more": "{{x}} more", - "No nucleotide mutations": "No nucleotide mutations", - "No amino acid mutations": "No amino acid mutations", - "Divergence": "Divergence", - "Date": "Date", - "Collection date": "Collection date", - "Inferred collection date": "Inferred collection date", - "Inferred Date": "Inferred Date", - "Date Confidence Interval": "Date Confidence Interval", - "Vaccine selected": "Vaccine selected", - "Vaccine start date": "Vaccine start date", - "Vaccine end date": "Vaccine end date", - "Serum strain": "Serum strain", - "Click outside this box to go back to the tree": "Click outside this box to go back to the tree", - "Authors": "Authors", - "Title": "Title", - "Journal": "Journal", + "Phylogeny": "شجرة تطور السلالات", + "Reset Layout": "إعادة تعيين التصميم", + "Click on tip to display more info": "انقر على النصيحة لعرض المزيد من المعلومات", + "Click to zoom into clade": "انقر لتكبير الفرع الحيوي", + "Click to zoom out to parent clade": "انقر لتكبير سلف الفرع الحيوي ", + "Branch leading to": "الفرع المؤدي الى", + "Number of descendants": "النسل", + "Nucleotide mutations": "طفرات النيكليوتيد", + "AA mutations": "AA طفرات", + "protein mutations truncated": "طفرات البروتين مقتطعة", + "Gaps": "ثغرات", + "{{x}} more": "{{x}} إضافية ", + "No nucleotide mutations": "بدون طفرات النيكليوتيد ", + "No amino acid mutations": "بدون طفرات الأحماض الأمينية", + "Divergence": "تباعد", + "Date": "التاريخ", + "Collection date": "تاريخ التجميع", + "Inferred collection date": "تاريخ التجميع المستنتح", + "Inferred Date": "التاريخ المستنتج", + "Date Confidence Interval": "مجال ثقة التاريخ", + "Vaccine selected": "اللقاح المحدد", + "Vaccine start date": "تاريخ بداية اللقاح", + "Vaccine end date": "تاريخ نهاية اللقاح", + "Serum strain": "سلالة المصل", + "Click outside this box to go back to the tree": "انقر خارج هذا المربع للعودة إلى الشجرة", + "Authors": "المؤلفون", + "Title": "العنوان", + "Journal": "صحيفة", "__Frequencies panel__": "########################################", - "Frequencies": "Frequencies", - "colored by": "colored by", - "Projection": "Projection", - "Time point": "Time point", - "Frequency": "Frequency", - "Projected frequency": "Projected frequency" + "Frequencies": "الترددات", + "colored by": "ملونة بواسطة", + "Projection": "إسقاط", + "Time point": "نقطة زمنية", + "Frequency": "تردد", + "Projected frequency": "التردد المتوقع" } \ No newline at end of file diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json index 32dc4e156..31c4f4a39 100644 --- a/src/locales/fr/translation.json +++ b/src/locales/fr/translation.json @@ -78,7 +78,7 @@ "Click outside this box to go back to the tree": "Cliquez en dehors de cette case pour revenir à l'arbre", "Authors": "Auteurs", "Title": "Titre", - "Journal": "", + "Journal": "Journal", "__Frequencies panel__": "########################################",