Page MenuHomeFeedback Tracker

[Feature Request] Alternative syntax for the localize command to support translation to a specific language
Closed, ResolvedPublic

Description

In some cases, it is necessary to have certain stringtable entries in a specific language.

For example, let's say I want a list of all units that have the term "Grenadier" in their displayName:

"'grenadier' in toLower getText( _x >> 'displayName')" configClasses (configFile >> "cfgVehicles")

However, if this text is localized to another language, it won't work.

Which is why an alternative syntax of localize would come in handy.
Something like this:

"STR_blabla" localize "English"

or:

"English" localize "STR_blabla"

or:

localize ["STR_blabla", "English"]

Now I can write the above example as (assuming the syntax is implemented as localize ["STR_blabla", "English"]):

"'grenadier' in toLowerANSI localize [
  getTextRaw(_x >> 'displayName'), 
 'English'
]" configClasses (configFile >> "cfgVehicles")

Details

Severity
Feature
Resolution
Won't Fix
Reproducibility
N/A
Operating System
Windows 7
Category
Scripting

Event Timeline

Leopard20 updated the task description. (Show Details)
Leopard20 added a subscriber: R3vo.Mar 13 2021, 9:54 AM
This comment was removed by Leopard20.
POLPOX added a subscriber: POLPOX.Mar 13 2021, 9:54 AM
Leopard20 updated the task description. (Show Details)Mar 13 2021, 10:00 AM
Leopard20 updated the task description. (Show Details)Mar 13 2021, 10:06 AM
LouMontana closed this task as Resolved.Mar 16 2021, 12:36 AM
LouMontana changed Resolution from Open to Won't Fix.