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

Fixed Finnish language to parse & Support for it #51

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
2 changes: 1 addition & 1 deletion scripting/KZTimerGlobal.sp
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ new String:IMPRESSIVE_FULL_SOUND_PATH[128];
new String:IMPRESSIVE_RELATIVE_SOUND_PATH[128];
new String:GOLDEN_FULL_SOUND_PATH[128];
new String:GOLDEN_RELATIVE_SOUND_PATH[128];
new String:g_szLanguages[][128] = {"English", "German", "Swedish", "French", "Russian", "SChinese", "Brazilian"};
new String:g_szLanguages[][128] = {"English", "German", "Swedish", "French", "Russian", "SChinese", "Brazilian", "Finnish"};
new String:RadioCMDS[][] = {"coverme", "takepoint", "holdpos", "regroup", "followme", "takingfire", "go", "fallback", "sticktog",
"getinpos", "stormfront", "report", "roger", "enemyspot", "needbackup", "sectorclear", "inposition", "reportingin",
"getout", "negative","enemydown","cheer","thanks","nice","compliment"};
Expand Down
4 changes: 3 additions & 1 deletion scripting/kztimerGlobal/commands.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2730,7 +2730,8 @@ public SetClientLang(client)
case 3: g_ClientLang[client] = 4;
case 4: g_ClientLang[client] = 5;
case 5: g_ClientLang[client] = 6;
case 6: g_ClientLang[client] = 0;
case 6: g_ClientLang[client] = 7;
case 7: g_ClientLang[client] = 0;
}
SetClientLangByID(client,g_ClientLang[client])
}
Expand Down Expand Up @@ -2760,6 +2761,7 @@ public OptionMenu(client)
case 4: Format(buffer, sizeof(buffer), "%T", "options_lang_ru", client);
case 5: Format(buffer, sizeof(buffer), "%T", "options_lang_cn", client);
case 6: Format(buffer, sizeof(buffer), "%T", "options_lang_pt", client);
case 7: Format(buffer, sizeof(buffer), "%T", "options_lang_fi", client);
}
AddMenuItem(optionmenu, "", buffer);

Expand Down
6 changes: 5 additions & 1 deletion translations/chi/kztimer.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1433,4 +1433,8 @@
{
"chi" "Language - Portuguese Brazilian"
}
}
"options_lang_fi"
{
"chi" "Language - Finnish"
}
}
6 changes: 5 additions & 1 deletion translations/de/kztimer.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
{
"de" "Language - Portuguese Brazilian"
}
"options_lang_fi"
{
"de" "Language - Finnish"
}
"Route1"
{
"#format" "{1:c},{2:c}"
Expand Down Expand Up @@ -1432,4 +1436,4 @@
"#format" "{1:c},{2:c},{3:i},{4:c}"
"de" " {1}[{2}{3} block{4}]"
}
}
}
54 changes: 22 additions & 32 deletions translations/fi/kztimer.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@
}
"options_lang_en"
{
"fi" "Language - English
"fi" "Language - English"
}


"options_lang_de"
{
"fi" "Language - Germany"
Expand All @@ -51,10 +49,9 @@
}
"options_lang_fi"
{
"fi" "Language - Finnish”


"options_lang_fr"
"fi" "Language - Finnish"
}
"options_lang_fr"
{
"fi" "Language - French"
}
Expand All @@ -68,7 +65,7 @@
}
"options_lang_pt"
{
"fi" "Language - Portuguese Brazilian "
"fi" "Language - Portuguese Brazilian"
}
"stopsound"
{
Expand All @@ -82,7 +79,7 @@
}
"kick_msg_low_fps"
{
"fi" "[KZTimer] Laita “fps_max arvosi suuremmaksi tai samaksi kuin 120
"fi" "[KZTimer] Laita “fps_max arvosi suuremmaksi tai samaksi kuin 120"
}
"options_advcp_on"
{
Expand Down Expand Up @@ -130,11 +127,11 @@
}
"options_cpmessage_on"
{
"fi" "Teleporttipiste tehty chatti ilmoitus - Käytössä"
"fi" "Teleporttipiste tehty chatti ilmoitus - Käytössä"
}
"options_cpmessage_off"
{
"fi" "Teleporttipiste tehty chatti ilmoitus - Poissa käytöstä"
"fi" "Teleporttipiste tehty chatti ilmoitus - Poissa käytöstä"
}
"options_menusounds_on"
{
Expand Down Expand Up @@ -273,8 +270,7 @@
"ClientLadderJump1"
{
"#format" "{1:c},{2:c},{3:c},{4:.2f},{5:c},{6:i},{7:c},{8:c},{9:.0f},{10:c},{11:c},{12:.0f},{13:c},{14:c},{15:i},{16:c},{17:c}"
"fi" "[{1}KZ{2}] {3}LAJ: {4} unittia [{5}{6}{7} Strafea | {8}{9}{10} Pre | {11}{12}{13} Korkeus
| {14}{15}{16}{17} Sync]"
"fi" "[{1}KZ{2}] {3}LAJ: {4} unittia [{5}{6}{7} Strafea | {8}{9}{10} Pre | {11}{12}{13} Korkeus | {14}{15}{16}{17} Sync]"
}
"ClientLadderJump2"
{
Expand Down Expand Up @@ -435,7 +431,7 @@
"AntiCheatEnabled"
{
"#format" "{1:c},{2:c},{3:c}"
"fi" " {1}{2}{3}VAROITUS: Kaikenlainen huijjaaminen aiheuttaa porttikiellon jokaiselle Global KZTimer serverille! Tähän kuuluu mutta ei rajoitu niihin: hakkerointi, macrot ja hiiren ominaisuudet kuten hyperscrollaus.
"fi" " {1}{2}{3}VAROITUS: Kaikenlainen huijjaaminen aiheuttaa porttikiellon jokaiselle Global KZTimer serverille! Tähän kuuluu mutta ei rajoitu niihin: hakkerointi, macrot ja hiiren ominaisuudet kuten hyperscrollaus."
}

"NoCpsDuringChallenge"
Expand Down Expand Up @@ -478,7 +474,7 @@
"Challenge2"
{
"#format" "{1:c},{2:c},{3:c},{4:s},{5:c},{6:c},{7:i},{8:s}"
"fi" "[{1}KZ{2}] {3}{4} haastoi sinut. Sinulla on 20 sekuntia aikaa laittaa {5}!accept{6} (Panos: {7}p, Teleporttipisteet {8})"
"fi" "[{1}KZ{2}] {3}{4} haastoi sinut. Sinulla on 20 sekuntia aikaa laittaa {5}!accept{6} (Panos: {7}p, Teleporttipisteet {8})"
}
"Challenge3"
{
Expand Down Expand Up @@ -525,12 +521,12 @@
"ChallengeStarted1"
{
"#format" "{1:c},{2:c},{3:c}"
"fi" "[{1}KZ{2}] {3}Jos haluat luovuttaa, kirjoita “!surrender"
"fi" "[{1}KZ{2}] {3}Jos haluat luovuttaa, kirjoita “!surrender"
}
"ChallengeStarted2"
{
"#format" "{1:c},{2:c},{3:c}"
"fi" "[{1}KZ{2}] {3}Voitte molemmat kirjoittaa “!cancel chattiin lopettaaksenne haasteen."
"fi" "[{1}KZ{2}] {3}Voitte molemmat kirjoittaa “!cancel chattiin lopettaaksenne haasteen."
}
"ChallengeStarted3"
{
Expand All @@ -550,7 +546,7 @@
"ChallengeWon"
{
"#format" "{1:c},{2:c},{3:c},{4:c}"
"fi" "[{1}KZ{2}] {3}Haaste voitettu! {4}(Vastustajasi poistui serveriltä)
"fi" "[{1}KZ{2}] {3}Haaste voitettu! {4}(Vastustajasi poistui serveriltä)"
}
"ChallengeAborted"
{
Expand Down Expand Up @@ -582,16 +578,11 @@
"#format" "{1:c},{2:c},{3:c},{4:s},{5:c},{6:c},{7:i},{8:c},{9:c},{10:i},{11:c}"
"fi" "[{1}KZ{2}] {3}{4}{5} on hävinnyt {6}{7} pistettä{8} [{9}{10}{11} Yhteensä]"
}


"ChallengeW"


{
"#format" "{1:c},{2:c},{3:c},{4:s},{5:c},{6:c},{7:s},{8:c}"
"fi" "[{1}KZ{2}] {3}{4}{5} Voitti haasteen pelaajaa {6}{7}{8} vastaan!"
}


"ChallengeL"
{
"#format" "{1:c},{2:c},{3:c},{4:s},{5:c},{6:c},{7:i},{8:c}"
Expand All @@ -605,7 +596,7 @@
"BotAlreadyCreated"
{
"#format" "{1:c},{2:c}"
"fi" "[{1}KZ{2}] Uusinta botti jo hengissä.
"fi" "[{1}KZ{2}] Uusinta botti jo hengissä."
}
"NoPlayerTop"
{
Expand All @@ -620,7 +611,7 @@
"PrUpdateStarted"
{
"#format" "{1:c},{2:c}"
"fi" "[{1}KZ{2}] Uudelleenlasketaan pelaajatilastoja. Tässä voi mennä hetki, odota! (Voit seurata prosessia consolistasi)
"fi" "[{1}KZ{2}] Uudelleenlasketaan pelaajatilastoja. Tässä voi mennä hetki, odota! (Voit seurata prosessia consolistasi)"
}
"PrUpdateFinished"
{
Expand Down Expand Up @@ -715,7 +706,7 @@
"NoClipUnlocked"
{
"#format" "{1:c},{2:c},{3:c}"
"fi" "[{1}KZ{2}] {3}NoClip sallittu (kirjoita consoleen: “bind KEY +noclip)"
"fi" "[{1}KZ{2}] {3}NoClip sallittu (kirjoita consoleen: “bind KEY +noclip)"
}
"PlayerNotFound"
{
Expand Down Expand Up @@ -855,7 +846,7 @@
"Goto10"
{
"#format" "{1:c},{2:c},{3:s}"
"fi" "[{1}KZ{2}] Pelaaja {3} on poistanut käytöstä teleporttaamisen häneen.
"fi" "[{1}KZ{2}] Pelaaja {3} on poistanut käytöstä teleporttaamisen häneen."
}
"SpeedMeter1"
{
Expand All @@ -880,7 +871,7 @@
"CheckpointSaved"
{
"#format" "{1:c},{2:c},{3:c},{4:c},{5:i},{6:c}"
"fi" "[{1}KZ{2}] {3}Teleporttipiste{4}#{5}{6} tallennettu."
"fi" "[{1}KZ{2}] {3}Teleporttipiste {4}#{5}{6} tallennettu."
}
"CheckpointsNotinAir"
{
Expand All @@ -890,7 +881,7 @@
"CheckpointsNotonBhopPlattforms"
{
"#format" "{1:c},{2:c},{3:c}"
"fi" "[{1}KZ{2}] {3}Teleporttipisteet kielletty bunnyhop laatoilla.
"fi" "[{1}KZ{2}] {3}Teleporttipisteet kielletty bunnyhop laatoilla."
}
"NoCheckpointsFound"
{
Expand All @@ -910,8 +901,7 @@
"PositionRestored"
{
"#format" ""
"fi" "<font color='#80FF00' size='24' face ='Calibri'><b> \n Sijaintisi on
palautettu</b></font>"
"fi" "<font color='#80FF00' size='24' face ='Calibri'><b> \n Sijaintisi on palautettu</b></font>"
}
"RadioCommandsDisabled"
{
Expand Down
6 changes: 5 additions & 1 deletion translations/fr/kztimer.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
{
"fr" "Language - Portuguese Brazilian"
}
"options_lang_fi"
{
"fr" "Language - Finnish"
}
"stopsound"
{
"#format" "{1:c},{2:c}"
Expand Down Expand Up @@ -1434,4 +1438,4 @@
"#format" "{1:c},{2:c},{3:i},{4:c}"
"fr" " {1}[{2}{3} block{4}]"
}
}
}
6 changes: 5 additions & 1 deletion translations/kztimer.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
{
"en" "Language - Portuguese Brazilian"
}
"options_lang_fi"
{
"en" "Language - Finnish"
}
"stopsound"
{
"#format" "{1:c},{2:c}"
Expand Down Expand Up @@ -1429,4 +1433,4 @@
"#format" "{1:c},{2:c},{3:i},{4:c}"
"en" " {1}[{2}{3} block{4}]"
}
}
}
6 changes: 5 additions & 1 deletion translations/pt/kztimer.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
{
"pt" "Language - Portuguese Brazilian"
}
"options_lang_fi"
{
"pt" "Language - Finnish"
}
"stopsound"
{
"#format" "{1:c},{2:c}"
Expand Down Expand Up @@ -1404,4 +1408,4 @@
"#format" "{1:c},{2:c},{3:i},{4:c}"
"pt" " {1}[{2}{3} blocos{4}]"
}
}
}
6 changes: 5 additions & 1 deletion translations/ru/kztimer.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
{
"ru" "Language - Portuguese Brazilian"
}
"options_lang_fi"
{
"ru" "Language - Finnish"
}
"Route1"
{
"#format" "{1:c},{2:c}"
Expand Down Expand Up @@ -1504,4 +1508,4 @@
"#format" "{1:c},{2:c},{3:i},{4:c}"
"ru" " {1}[{2}{3} блок{4}]"
}
}
}
6 changes: 5 additions & 1 deletion translations/sv/kztimer.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
{
"sv" "Language - Portuguese Brazilian"
}
"options_lang_fi"
{
"sv" "Language - Finnish"
}
"Route1"
{
"#format" "{1:c},{2:c}"
Expand Down Expand Up @@ -1427,4 +1431,4 @@
"#format" "{1:c},{2:c},{3:i},{4:c}"
"sv" " {1}[{2}{3} block{4}]"
}
}
}