Kravabus Posted November 3, 2014 Share Posted November 3, 2014 (edited) Доброе время суток XVM-Разработчики, в ЕU-регионе есть такое предложение/просьба добавить в XVM макрос язык клиента. Я понимаю что на РУ-серверах это бесполезная фича, но поверьте что на европейских серверах нам это ужасно помогало-бы находить людей с которыми можно общаться, ведь большинство людей просто не владеют английским языком. Пока существует вот такой "костыль" http://forum.worldoftanks.eu/index.php?/topic/436602- в немецком форуме, который заменяет вн6-данные на client-language. Я думаю на NA и Asia серверах это фича тоже была-бы полезной. Конечно дело хозяйское, решайте сами. Но я уверен вы таким макросом обрадуете много игроков на европейских серверах. Edited November 3, 2014 by Kravabus 3 @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted December 8, 2014 Share Posted December 8, 2014 А разве можно определить язык клиента других игроков? Если в реплее есть такая информация, то давай реплей, сделаю. Посмотрел тему, вроде через WG API эту информацию получают, а не из клиента. В принципе, можем собирать эти данные и отдавать на клиент вместе со статой. @ Quote Link to comment Short link Share on other sites More sharing options...
Kravabus Posted December 9, 2014 Author Share Posted December 9, 2014 Да эту информацию тянут ребята через WG API, и накладывают на ваш wn6-macro. Это было бы очень классно, если вы эту информацию имплементируете в XVM! @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted December 9, 2014 Share Posted December 9, 2014 Сделаем, полезная возможность. @ Quote Link to comment Short link Share on other sites More sharing options...
13 Posted December 9, 2014 Share Posted December 9, 2014 @Kravabus, подскажите ребятам, что с хорошими идеями можно обращаться сразу к нам на форум, а не сооружать костыли. Мы же всегда за прогресс :) @ Quote Link to comment Short link Share on other sites More sharing options...
Kravabus Posted December 9, 2014 Author Share Posted December 9, 2014 Обязательно передам! но подозреваю это задание теперь повиснет на мне. @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted December 9, 2014 Share Posted December 9, 2014 Они могут писать сами на английском языке, с этим проблем нет. Я картинки флагов возьму из мода по ссылке, ок? @ Quote Link to comment Short link Share on other sites More sharing options...
13 Posted December 9, 2014 Share Posted December 9, 2014 Я картинки флагов возьму из мода по ссылке, ок? Конечно, это же общественное достояние :) @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted December 9, 2014 Share Posted December 9, 2014 Готово, добавлен макрос {{lang}}. Я пока не могу протестировать, необходимо подождать пару недель, пока база обновится. Так же необходимо, чтобы кто-нибудь привел дефолтный конфиг в нормальный вид, а то я даже не проверил что получилось. 1 @ Quote Link to comment Short link Share on other sites More sharing options...
demon2597 Posted December 9, 2014 Share Posted December 9, 2014 (edited) @sirmax, а для чего в картинках empty.png? PS картинки что-то не очень- на них на всех какая-то белая рамка посередине: можно попробовать покопать покачественнее... хотя, может и ничего мелкие-то Edited December 9, 2014 by demon2597 @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted December 9, 2014 Share Posted December 9, 2014 думал можно будет использовать если нет значения: {{lang|empty}}.png @ Quote Link to comment Short link Share on other sites More sharing options...
demon2597 Posted December 9, 2014 Share Posted December 9, 2014 (edited) думал можно будет использовать если нет значения: {{lang|empty}}.png аа, понял:) запустил реплей с теста- чета один только в стране живет, остальные почему-то бомжи:) Edited December 9, 2014 by demon2597 @ Quote Link to comment Short link Share on other sites More sharing options...
13 Posted December 9, 2014 Share Posted December 9, 2014 аа, понял:) запустил реплей с теста- чета один только в стране живет, остальные почему-то бомжи:) 111.jpg Обновление информации займёт некоторое время, желающие могут обновить свои данные вручную в личном кабинете. @ Quote Link to comment Short link Share on other sites More sharing options...
demon2597 Posted December 9, 2014 Share Posted December 9, 2014 @Mr 13, понял, а я что-то подумал, что базу собирать не надо @ Quote Link to comment Short link Share on other sites More sharing options...
MarsOne Posted December 11, 2014 Share Posted December 11, 2014 (edited) Privjet. My Russian is not very well, my English not even better, but i will try. First thanks for implementing our (idea of) Client-Language-Modification. http://dev.modxvm.com/xvm/commits/ed85f5c79327a0a0d3234de56d465855af42b8be But there are a few remarks. 1. Let me start with a little request. Please rename macro {{lang}} to {{language}}. I know, in the start post and the original idea it was used with this shorten name; but in german lang = долго. And you also name your macros with {{position}} and not {{pos}} and so on... This includes the rename of the folder xvmres\lang to language. (Its just a point not very important, but it does not confuse german speaking users, and the idea and testing was taken by german players.) The startpost isn't very actuall as well and not all our tryings are posted in the thread. 2. You have taken the pictures (named on the ISO 639-1) from the start post. This was not very actuell and there is a misunderstanding. Update: The flag sk (=slovakian) is ONLY a xvm-localisation-files and NOT WoT-Client-Language. You can all supportet WoT-Client-Languages for each Server here: WoTLauncher.cfg For EU it is: <supported_content_langs>en,es,fr,pt,it,cs,hu,hr,de,pl,sr,lv,da,et,fi,lt,nl,no,ro,sv,tr,bg,el</supported_content_langs> We don't know the entries for all Servers worldwide, what is written in your russion version? Are 'uk' (ukrainian) and 'be' (belarusian) avaible? 3. 1. You also took our placeholder eu.png. We used it in the modification - addon for the case of NO-xvm-stats, cause in our python file the wg-api-query was always bound to the xvm-token. For us is EU a clear sign for our cluster, but this is not the fact for all servers worldwide. So you can maybe delete it OR find for any cluster an analoge symbol OR maybe use a WG.png. (WG is not used as language code in ISO 639-1 but it is a maybe a clear sign for all WoT-players knowing WarGaming.) 3. 2. We also used in later versions an exception: .replace("null", '{"client_language":"unknown"}' for such accounts (SOME! press and other specific WG-accounts), in which case the WG-Api was not telling the client-language (get null result). You can also name it empty or wg or whatever... 3. 3. Solution: For normal XVM-users it is not important if {{language}} gets no result (WarGaming) or the XVM servers have no information about it {{language|empty}}. 'empty' or 'wg'... In most cases u can use Extrafields and do not need a placeholder like this. But in statisticForm there is no possibility using extrafields. So only there u need a placeholder for keeping a clear formation. So only one placeholder should be named. empty or wg or ? (atm it is in your version empty.png) 4. Our little "problem child" was always the ROAMING situation. At the moment only russian players a part of the roaming. In this case our API-request was - of course - unsuccessfull. If the players get the information from your xvm-server, this problem should be solved. (Its then only a question of time and actuell data.) 5. At this point we noticed, that XVM shortens the GAMEREGION-value. (Appears e.g. vanilla for Roaming-players.) We had some attempts to ask the right WG-API-adress with this gameregion, but unfortunately it failed... Concrete (but maybe not only there) in this part of the stats.pyc So, we dont understand, why you shorten the gameregion, but implement client languages. This is a contradiction. Anyway, we found out while testing, that with client languages resentment decrease; and not vice versa. The only reason we try to comprehend, was the {{nick}} / {{name}} ( {{clan}} ) splitting. But also with full players information (including clan) this gameregion is censored. So, our question: why you shorten the gameregion? I feel very sorry for my bad english, but believe me, my russian is much worse. greetings MarsOne Edit: some typos Edited December 18, 2014 by MarsOne 3 @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted December 12, 2014 Share Posted December 12, 2014 (edited) Thanks, your comments are very useful. I'll answer more detailed ASAP. Edited December 12, 2014 by sirmax @ Quote Link to comment Short link Share on other sites More sharing options...
seriych Posted December 13, 2014 Share Posted December 13, 2014 @Kravabus, Привет, у нас там разгорелась нешуточная дискуссия по поводу отображения этих флажков в конфиге по умолчанию. Начиная с этого сообщения и далее: http://www.koreanrandom.com/forum/topic/16856-изменение-дефолта-changes-in-default-cfg/page-7#entry235190 Не мог бы ты ознакомиться, и быть может на eu сервере уже нашли оптимальный способ. @ Quote Link to comment Short link Share on other sites More sharing options...
MarsOne Posted December 18, 2014 Share Posted December 18, 2014 We found one new (BIG) problem: You can change the name your own Client-Language in the settings.mo (text-file) For example i changed my own client language for testing in de_DE: http://api.worldoftanks.eu/wot/account/info/?application_id=demo&fields=client_language&account_id=501535983 = "client_language":"de_DE" So, if more people know how to change it, it will get nearly impossible to have all correct flags in xvmres/language-folder... greetz @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted December 18, 2014 Share Posted December 18, 2014 We can set empty value for unknown languages, but we need the list of all available languages. @ Quote Link to comment Short link Share on other sites More sharing options...
seriych Posted December 18, 2014 Share Posted December 18, 2014 but we need the list of all available languages.я Саньку написал, должен скинуть @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.