some question about dialogs and msgs with another ...
# support-forum
a
I'm trying to support more languages besides English and Portuguese and Spanish in my server... But in the first start i found some strange things and i wanna know if there is something wrong or if its only my computer or if it is even not possible Is anybody could give some light?
Even on start command /idiom Some idioms are not working well Russian (Русский) Czech (čeština) Arabic (عربي) French does not shows ç from Français [i could use c instead of ç, it is shit but if this is the way...] Lietuvių [same then french, i could use u instead of ų] Română\nTürkçe\nукраїнська\nTiếng Việt are also bugged
Copy code
c++
public DialogIdiom(playerid) {
    new str[256];
    format(str, sizeof(str), "Portugues\nEnglish\nEspanol\nTagalog\nРусский\nčeština\nعربي\nDeutsch\nFrançais\nItaliano\nLietuvių\nPolski\nRomână\nTürkçe\nукраїнська\nTiếng Việt\nBahasa");
    ShowPlayerDialog(playerid, 22, DIALOG_STYLE_LIST, "Choose your Language", str, "Select", "Cancel");
}
How should i do it?
even in other types of dialog i got some errors
Copy code
c++
// english
else if(idiom[playerid] == 2)
{
    format(str, sizeof(str), "* Rent a {FFD700}Faggio{FFFFFF} to move around the city and complete your objectives. *\n");
    strcat(final, str);
    format(str, sizeof(str), "* There are places that rent vehicles on the map! *\n");
    strcat(final, str);
    format(str, sizeof(str), "To find, press:\n");
    strcat(final, str);
    format(str, sizeof(str), "{FFD700}Y{FFFFFF} - {FFD700}GPS{FFFFFF} - {FFD700}Vehicles{FFFFFF} - {FFD700}Car and Motorcycle Rentals{FFFFFF}\n");
    strcat(final, str);
    format(str, sizeof(str), "* When you arrive at the location press {FFD700}Y{FFFFFF} and choose the {FFD700}Faggio{FFFFFF} vehicle. *\n");
    strcat(final, str);
}
// russian
else if(idiom[playerid] == 5)
{
    format(str, sizeof(str), "* Арендуйте {FFD700}Faggio{FFFFFF}, чтобы передвигаться по городу и выполнять свои цели. *\n");
    strcat(final, str);
    format(str, sizeof(str), "* Есть места, которые арендуют транспорт на карте! *\n");
    strcat(final, str);
    format(str, sizeof(str), "Чтобы найти, нажмите:\n");
    strcat(final, str);
    format(str, sizeof(str), "{FFD700}Y{FFFFFF} - {FFD700}GPS{FFFFFF} - {FFD700}Транспорт{FFFFFF} - {FFD700}Аренда автомобилей и мотоциклов{FFFFFF}\n");
    strcat(final, str);
    format(str, sizeof(str), "* Прибыв на место, нажмите {FFD700}Y{FFFFFF} и выберите транспортное средство {FFD700}Faggio{FFFFFF}. *\n");
    strcat(final, str);
}
Copy code
c++
// arabic
else if(idiom[playerid] == 7)
{
    format(str, sizeof(str), "* تأجر سيارة {FFD700}Faggio{FFFFFF} لتتحرك في المدينة وإكمال أهدافك. *\n");
    strcat(final, str);
    format(str, sizeof(str), "* هناك مكان يأجر السيارات في الخريطة! *\n");
    strcat(final, str);
    format(str, sizeof(str), "للعثور عليها اضغط:\n");
    strcat(final, str);
    format(str, sizeof(str), "{FFD700}Y{FFFFFF} - {FFD700}GPS{FFFFFF} - {FFD700}المركبات{FFFFFF} - {FFD700}إيجار السيارات والدراجات{FFFFFF}\n");
    strcat(final, str);
    format(str, sizeof(str), "* عند وصولك إلى المكان، اضغط {FFD700}Y{FFFFFF} واختر المركبة {FFD700}Faggio{FFFFFF}. *\n");
    strcat(final, str);
}
// polski
else if(idiom[playerid] == 12)
{
    format(str, sizeof(str), "* Wypożycz {FFD700}Faggio{FFFFFF}, aby poruszać się po mieście i realizować swoje cele. *\n");
    strcat(final, str);
    format(str, sizeof(str), "* Są miejsca, które wynajmują pojazdy na mapie! *\n");
    strcat(final, str);
    format(str, sizeof(str), "Aby znaleźć, naciśnij:\n");
    strcat(final, str);
    format(str, sizeof(str), "{FFD700}Y{FFFFFF} - {FFD700}GPS{FFFFFF} - {FFD700}Pojazdy{FFFFFF} - {FFD700}Wynajem samochodów i motocykli{FFFFFF}\n");
    strcat(final, str);
    format(str, sizeof(str), "* Po dotarciu na miejsce naciśnij {FFD700}Y{FFFFFF} i wybierz pojazd {FFD700}Faggio{FFFFFF}. *\n");
    strcat(final, str);
}
in english everything shows well, arabic and russian i cant see a shit and polski for example i can only see a few things
is that something i need to change in my vscode for example? can i have the translate in one file? samp support those languages? this is a bug only in my computer?
f
I don't think you can do that in samp, I remember having some issues with it. I solved it by having multiple files, each with proper encoding depended on the language used. And yes, on top of that your PC also needs proper locale. That is, if you want to see e.g. Russian language in-game, you have to set your locale to Russia (with utf-8 checkbox unchecked, if you're on Windows)
looks like with this Windows 1252
Portuguese, English, Spanish, Filipino, German, French, Italian, Bahasa Indonesia
works, but
Russian, Czech, Arabian, Lithuanian, Polish, Romanian, Turkish, Ukrainian, Vietnamese
did not work why? what is this stuff? what should in the other ones?
f
Windows-1251 for Russian I think I used standard utf-8 for Polish and it worked fine but I can't verify it since I dropped support for that language due to lack of time. Just once again, please remember you also need proper locale on your system, that is Polish for Polish language, Russian for Russian etc. Without it you may experience problems
c
c
i'm curious, what do i need to do in windows to be able to read texts from russian servers?
f
Make sure "Current system locale" is set to
Russian (Russia)
and that checkbox is unchecked
a
srry, i don't get, what should i do with this link?
i made separated files for the idioms
so now each file can have a encoding, just as u suggest me

https://media.discordapp.net/attachments/1073305831497543811/1073543064683040768/image.png

not i need to know 9 encondings idioms
Copy code
1- russian = "Windows 1252"
2- cz
3- arabian
4- lithuanian
5- polish
6- romanian
7- turkish
8- ukrainian
9- vietnamese
did u know one of that or where to find the right encoding?
f
You can see what file encoding you can use for each language on the wiki page edgyaf linked It may be a bit easier for you to check the list here: but if you click any of the links you will end up on the same result page