Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translated languages to the language picker #204

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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