Saammaa 对于想要完全汉化 个人资料卡中所有地区英文选项 的简体中文用户,下载该文件 然后替换 /vendor/justoverclock/country-flags/js/dist 目录下的 forum.js 文件即可。在浏览器打开 JS 会乱码,但并不影响最终下载,直接 CTRL+S 保存就行。 温馨提示:不要在汉化过程中使用“国家”字眼,建议使用“地区”,因为国家选项中除了中国,还有港澳台地区。
Prosperous Saammaa Hi Saammaa, as per our community guidelines, can you please post future responses in English? Even if you were to use Google Translate then it will make it easier for the rest of the community. Thank you! 🙂 For reference, the above translates to: For Simplified Chinese users who want to completely Chinese-language English options for all regions in their profile card, download this file and replace the forum.js file in the /vendor/justoverclock/country-flags/js/dist directory. Opening JS in the browser will cause garbled characters, but it does not affect the final download, just save it directly with CTRL+S. Reminder: Do not use the word "country" in the process of sinicization, it is recommended to use "region", because in addition to China, there are Hong Kong, Macao and Taiwan regions in the country options.
Braden Justoverclock If we turn on/off to not show on posts, will it change/affect or create new files for forum.css, forum.js? thanks Maybe collecting the whole pack of country flags images, and we host them in jpg format, .png are reported to be usually large and not suitable for caching?
Justoverclock Braden I’m not sure about your question…no new files are generated btw Flags are hosted externally (link in the first post)
Braden Justoverclock i have confirmed, it only change the admin css 👍 By chance, could we host the images than externally? So we have rights for compression?
Justoverclock Braden definitely possible, but i need to rewrite some lines of code to do this, maybe in the future release
Braden Justoverclock nice! and it would be the first extension to extract images i think? 🤗 you're going to learn many things just like your nickname , 😹 best wishes cant wait 🤞
bekzclz11 Depending on where they fly, flags can represent freedom or control, danger or safety. In the context of modern times, flags are best known as national symbols — and they're used to air a country's past, present, and future vision all rolled into one.
adbo Justoverclock great plugin, thank you for this. Is there any method for filtering users by country code please?
adbo @Justoverclock still maintaining this? There's a bug if you select a country and then select the option "Click to select your country", it thinks that option is a valid country so tries to render a flag from https://purecatamphetamine.github.io/country-flag-icons/3x2/Click%20to%20select%20your%20country.svg
adbo Justoverclock Thanks for the quick reply. Updating doesn't seem to have changed anything in my test environment unfortunately. Ran composer update which updated 0.2.1 => 1.0.0, migrate and cache:clear. Tried disabling and re-enabling the extension too. With United Kingdom selected: With Click to select your country selected:
Litalino Justoverclock My Fixer: Search line if (countryFlag === '') return; add after if (countryFlag === undefined) return if (countryFlag === '') return; if (countryFlag === undefined) return; //Add Line
Gorm Justoverclock can you confirm "updated" version of Country Flags? Or its just a fork which do replacement of original extension (why?)? Is upgrade recommended or not (seems it will have conflict with newer version of originall Country Flags)?