Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ CREATE TABLE `groups` (
`say_no_time` int(11) DEFAULT '15',
`pay_time` int(11) DEFAULT '30',
`current_game` int(11) DEFAULT NULL,
`lang` enum('en','zh','hk','en_us','en_gb') NOT NULL DEFAULT 'en',
`lang` enum('en','zh','hk','en_us','en_gb','en_id') NOT NULL DEFAULT 'en',
`protest_mode` bit(1) DEFAULT b'1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Expand Down Expand Up @@ -155,4 +155,4 @@ ALTER TABLE `bans`
-- AUTO_INCREMENT for table `games`
--
ALTER TABLE `games`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=64463;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=64463;
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ private static void sendResponse(TelegramBot bot, Message msg) {
new InlineKeyboardButton[]{new InlineKeyboardButton("English (HK)").callbackData("lang:en:" + uid)},
new InlineKeyboardButton[]{new InlineKeyboardButton("English (US)").callbackData("lang:en_us:" + uid)},
new InlineKeyboardButton[]{new InlineKeyboardButton("English (UK)").callbackData("lang:en_gb:" + uid)},
new InlineKeyboardButton[]{new InlineKeyboardButton("Indonesia (en)").callbackData("lang:en_id:" + uid)},
new InlineKeyboardButton[]{new InlineKeyboardButton(Translation.get(DealBot.lang(gid)).CLOSE()).callbackData("lang:close:" + uid)}
)));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void use(GamePlayer player, String[] args) {
player.setDoubleRentBuff(false);
String victim = players.get(order).getName();
EditMessageText edit = new EditMessageText(player.getTgid(), player.getMessageId(),
translation.COLLECTING_RENT(victim, group, value * doubleRentBuff));
translation.COLLECTING_RENT(victim, group, value));
player.getGame().execute(edit);
String msg = translation.YOU_HAVE_USED_RENT_FOR_AGAINST(getCardFunctionalTitle(), victim, group, value);
SendMessage send = new SendMessage(player.getTgid(), msg);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
package me.lkp111138.dealbot.translation;

public class IndonesianEnglish extends HongKongEnglish {

public String PROPERTY_NAME(int index) {
switch (index) {
case 0:
return "The National Monument";
case 1:
return "Taman Mini (Wonderful Indonesia)";
case 2:
return "Baluran National Park";
case 3:
return "Dieng Plateau";
case 4:
return "The Karimun Jawa Archipelago";
case 5:
return "Ijen Crater";
case 6:
return "Borobudur Temple";
case 7:
return "Sri Baduga Fountain Park";
case 8:
return "Sanur Beach";
case 9:
return "Pombo Island Atoll";
case 10:
return "Ngurbloat Beach";
case 11:
return "Maratua Island";
case 12:
return "Pasir Panjang Beach";
case 13:
return "Kayu Aro Tea Plantation";
case 14:
return "Selayar Island";
case 15:
return "Lengkuas Island";
case 16:
return "Tanjung Kalayang Beach";
case 17:
return "Trikora Beach";
case 18:
return "Way Kambas National Park";
case 19:
return "Raja Ampat Beach";
case 20:
return "Laboan Bajo";
case 21:
return "Padar Island";
case 22:
return "Gambir Train Station";
case 23:
return "Jakarta Kota Station";
case 24:
return "Soekarno–Hatta Airport Rail Link";
case 25:
return "Cepu Forest Railway";
case 26:
return "Electric Company";
case 27:
return "Water Works";
}
return "";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public static Translation get(String lang) {
translations.put("hk", new HongKongChinese());
translations.put("en_us", new UnitedStatesEnglish());
translations.put("en_gb", new UnitedKingdomEnglish());
translations.put("en_id", new IndonesianEnglish());
}
return translations.getOrDefault(lang, fallback);
}
Expand Down