Devrim Posted December 5, 2014 Posted December 5, 2014 ED have started to doing changings on "name" or "category" tags in input lua files. For example, original line was: {combos = {{key = 'Esc'}}, down = iCommandQuit, name = 'End mission', category = 'General'}, and now it is: {combos = {{key = 'Esc'}}, down = iCommandQuit, name = _('End mission'), category = _('General')}, Why ED is doing (adding) these? Any idea? Thanks. Intel i7-14700@5.6GHz | MSI RTX4080 SuperSuprimX | Corsair V. 64GB@6400MHz. | Samsung 1TB 990 PRO SSD (Win10Homex64) Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | TM Warthog Stick w/AVA Base | VPC MongoosT-50CM3 Throttle | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5 & M.Quest3 VR >>MY MODS<< | Discord: Devrim#1068
uboats Posted December 5, 2014 Posted December 5, 2014 (edited) I think _(' ') is for i18n here internationalization Should check how it defines _ in other Lua file. Edited December 5, 2014 by uboats [sIGPIC][/sIGPIC] My DCS Mods, Skins, Utilities and Scripts | Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD | | TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |
Devrim Posted December 5, 2014 Author Posted December 5, 2014 Thanks for quick reply Uboats. Aaaand the next question: What is "i18n" and what is it for? Intel i7-14700@5.6GHz | MSI RTX4080 SuperSuprimX | Corsair V. 64GB@6400MHz. | Samsung 1TB 990 PRO SSD (Win10Homex64) Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | TM Warthog Stick w/AVA Base | VPC MongoosT-50CM3 Throttle | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5 & M.Quest3 VR >>MY MODS<< | Discord: Devrim#1068
FSFIan Posted December 5, 2014 Posted December 5, 2014 i18n = internationalization. (i, 18 characters, n) Because programmers are lazy and a word that long is annoying to write, especially if it is part of some subroutine name. Related: l10n = localization IIRC, Internationalization is making sure your program can be used world-wide (e.g. make sure you support unicode and use a font that includes russian and chinese characters). Localization is adapting your program to each specific location (translation, currency formats, decimal comma vs. decimal point, time zones, ...) When people are not differentiating between i18n and l10n, they often use i18n to mean both things. DCS-BIOS | How to export CMSP, RWR, etc. through MonitorSetup.lua
Devrim Posted December 5, 2014 Author Posted December 5, 2014 I think I get it. Thanks for explanation. Intel i7-14700@5.6GHz | MSI RTX4080 SuperSuprimX | Corsair V. 64GB@6400MHz. | Samsung 1TB 990 PRO SSD (Win10Homex64) Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | TM Warthog Stick w/AVA Base | VPC MongoosT-50CM3 Throttle | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5 & M.Quest3 VR >>MY MODS<< | Discord: Devrim#1068
Recommended Posts