Skip to content

Commit

Permalink
Add translated languages to the language picker (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJohnNOAA authored Sep 27, 2024
1 parent 5a0d0c8 commit e8a9511
Showing 1 changed file with 38 additions and 35 deletions.
73 changes: 38 additions & 35 deletions WEB-INF/classes/gov/noaa/pfel/erddap/util/TranslateMessages.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,41 +153,44 @@ public class TranslateMessages {
// Google supports Tagalog but not Filipino (the official language)
// Arabic is hard. (right to left etc) Translated bits seemed out-of-order.
// in English:
"English",
"Bengali",
"Chinese-CN",
"Chinese-TW",
"Czech",
"Danish",
"Dutch",
"Finnish",
"French",
"German",
"Greek",
"Gujarati",
"Hindi",
"Hungarian",
"Indonesian",
"Irish",
"Italian",
"Japanese",
"Korean",
"Marathi",
"Norwegian",
"Polish",
"Portuguese",
"Punjabi",
"Romanian",
"Russian",
"Spanish",
"Swahili",
"Swedish",
"Tagalog",
"Thai",
"Turkish",
"Ukrainian",
"Urdu",
"Vietnamese"
// Language names taken from https://en.wikipedia.org/wiki/List_of_language_names
// where a language is available in multiple scripts, I selected the one that is
// used in the translation file (typically the one that is default for the language code).
"English - English",
"বাংলা - Bengali",
"汉语 - Chinese (Simplified)",
"漢語 - Chinese (Transitional)",
"Čeština - Czech",
"Dansk - Danish",
"Nederlands - Dutch",
"Suomi - Finnish",
"Français - French",
"Deutsch - German",
"Ελληνικά - Greek",
"ગુજરાતી - Gujarati",
"हिन्दी - Hindi",
"Magyar - Hungarian",
"Bahasa Indonesia - Indonesian",
"Gaeilge - Irish",
"Italiano - Italian",
"日本語 - Japanese",
"한국어 - Korean",
"मराठी - Marathi",
"Norsk - Norwegian",
"Polski - Polish",
"Português - Portuguese",
"ਪੰਜਾਬੀ - Punjabi",
"Română - Romanian",
"Русский - Russian",
"Español - Spanish",
"Kiswahili - Swahili",
"Svenska - Swedish",
"Wikang Tagalog - Tagalog",
"ภาษาไทย - Thai",
"Türkçe - Turkish",
"Українська - Ukrainian",
"اُردُو - Urdu",
"Tiếng Việt Nam - Vietnamese"
};

public static String[] languageCodeList = {
Expand Down

0 comments on commit e8a9511

Please sign in to comment.