|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2008-2021, Tomasz Sowa |
|
|
|
|
* Copyright (c) 2008-2022, Tomasz Sowa |
|
|
|
|
* All rights reserved. |
|
|
|
|
*
|
|
|
|
|
* Redistribution and use in source and binary forms, with or without |
|
|
|
@ -396,10 +396,27 @@ void winix_frame_is(Info & i)
|
|
|
|
|
|
|
|
|
|
void lang(Info & i) |
|
|
|
|
{ |
|
|
|
|
i.res = !i.par.empty(); |
|
|
|
|
if( i.params.size() > 1 ) |
|
|
|
|
{ |
|
|
|
|
std::wstring key; |
|
|
|
|
|
|
|
|
|
for(Ezc::Var & var : i.params) |
|
|
|
|
{ |
|
|
|
|
key += var.str; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
i.res = !key.empty(); |
|
|
|
|
|
|
|
|
|
if( i.res ) |
|
|
|
|
i.out << locale.Get(i.par); |
|
|
|
|
if( i.res ) |
|
|
|
|
i.out << locale.Get(key); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
i.res = !i.par.empty(); |
|
|
|
|
|
|
|
|
|
if( i.res ) |
|
|
|
|
i.out << locale.Get(i.par); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|