Jump to content
Korean Random
Kravabus

Language Macro

Recommended Posts

Доброе время суток XVM-Разработчики,

 

в ЕU-регионе есть  такое предложение/просьба добавить в XVM макрос язык клиента.

Я понимаю что на РУ-серверах это бесполезная фича, но поверьте что на европейских серверах нам это ужасно помогало-бы находить людей с которыми можно общаться, ведь большинство людей просто не владеют английским языком.

Пока существует вот такой "костыль" http://forum.worldoftanks.eu/index.php?/topic/436602- в немецком форуме, который заменяет вн6-данные на client-language.

Я думаю на NA и Asia серверах это фича тоже была-бы полезной.

 

Конечно дело хозяйское, решайте сами. Но я уверен вы таким макросом обрадуете много игроков на европейских серверах.

Edited by Kravabus
  • Upvote 3

Share this post


Link to post

Short link
Share on other sites

А разве можно определить язык клиента других игроков? Если в реплее есть такая информация, то давай реплей, сделаю.


Посмотрел тему, вроде через WG API эту информацию получают, а не из клиента. В принципе, можем собирать эти данные и отдавать на клиент вместе со статой.

Share this post


Link to post

Short link
Share on other sites

Да эту информацию тянут ребята через WG API, и накладывают на ваш wn6-macro.

 

Это было бы очень классно, если вы эту информацию имплементируете в XVM!

Share this post


Link to post

Short link
Share on other sites

@Kravabus, подскажите ребятам, что с хорошими идеями можно обращаться сразу к нам на форум, а не сооружать костыли. Мы же всегда за прогресс :)

Share this post


Link to post

Short link
Share on other sites

Обязательно передам! но подозреваю это задание теперь повиснет на мне. :heh:

Share this post


Link to post

Short link
Share on other sites

Они могут писать сами на английском языке, с этим проблем нет.


Я картинки флагов возьму из мода по ссылке, ок?

Share this post


Link to post

Short link
Share on other sites

Готово, добавлен макрос {{lang}}.

Я пока не могу протестировать, необходимо подождать пару недель, пока база обновится.

 

Так же необходимо, чтобы кто-нибудь привел дефолтный конфиг в нормальный вид, а то я даже не проверил что получилось.

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

@sirmax, а для чего в картинках empty.png? 

PS картинки что-то не очень- на них на всех какая-то белая рамка посередине:

post-6084-0-84749300-1418163078_thumb.jpg

можно попробовать покопать покачественнее... хотя, может и ничего мелкие-то

Edited by demon2597

Share this post


Link to post

Short link
Share on other sites

думал можно будет использовать если нет значения: {{lang|empty}}.png

Share this post


Link to post

Short link
Share on other sites

думал можно будет использовать если нет значения: {{lang|empty}}.png

аа, понял:) 

запустил реплей с теста- чета один только в стране живет, остальные почему-то бомжи:)

post-6084-0-15714400-1418163446_thumb.jpg
Edited by demon2597

Share this post


Link to post

Short link
Share on other sites

аа, понял:)

запустил реплей с теста- чета один только в стране живет, остальные почему-то бомжи:)

Обновление информации займёт некоторое время, желающие могут обновить свои данные вручную в личном кабинете.

Share this post


Link to post

Short link
Share on other sites

@Mr 13, понял, а я что-то подумал, что базу собирать не надо

Share this post


Link to post

Short link
Share on other sites

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...

y22aj6ro.jpg

Concrete (but maybe not only there) in this part of the stats.pyc

hl8vqz4l.png

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 by MarsOne
  • Upvote 3

Share this post


Link to post

Short link
Share on other sites

Thanks, your comments are very useful.

I'll answer more detailed ASAP.

Edited by sirmax

Share this post


Link to post

Short link
Share on other sites

@Kravabus, Привет, у нас там разгорелась нешуточная дискуссия по поводу отображения этих флажков в конфиге по умолчанию. Начиная с этого сообщения и далее: http://www.koreanrandom.com/forum/topic/16856-изменение-дефолта-changes-in-default-cfg/page-7#entry235190

Не мог бы ты ознакомиться, и быть может на eu сервере уже нашли оптимальный способ.

Share this post


Link to post

Short link
Share on other sites

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

Share this post


Link to post

Short link
Share on other sites

but we need the list of all available languages.

я Саньку написал, должен скинуть

Share this post


Link to post

Short link
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...