/*
CLASS {NATIVE_Localize_str|_Cpp}, NATIVE, UNTESTED :

IMPORT: {System_functions} .

*/

bool NATIVE_Localize_str::untranslated_saved;
std::string NATIVE_Localize_str::directory_lang;
    
/*
//{ get strings stored by a compiler }

FUN Set_path_directory_lang|uage_files( STR Dir|ectory_path ),
    NATIVE :
    "    NATIVE_Localize_str::directory_lang = X_Dir;" .
    
FUN Get_path_directory_lang ==> STR, NATIVE :
    "    RESULT = NATIVE_Localize_str::directory_lang;" .

FUN Get_untranslated_strings( STR S|trings_array[] ), NATIVE:
    S[].Clear
    NATIVE @
    "   AL4_system::get_Localize_str(0);"
    "   for (int i = 0; i < AL4_system::size_Localize_str; i++)"
    "       if (AL4_system::Localize_str[i].length() == 0)"
    "           if (AL4_system::Localize_name[i][0] != '[')"
    "           {"
    "              std::string op_br = std::string("#QU"["#QU");"
    "              std::string cl_br = std::string("#QU"]"#QU");"
    "              X_S->Add(op_br + AL4_system::Localize_name[i] + cl_br);"
    "           }"
    "           else X_S->Add(AL4_system::Localize_name[i]);"
    "       else"
    "       {"
    "           std::string eq = std::string("#QU"="#QU");"
    "           X_S->Add(AL4_system::Localize_name[i] + "
    "           eq + AL4_system::Localize_str[i]);" 
    "       }"
    .
    
FUN Set_translated_strings( STR N|ames_array[], STR S|trings_array[]), 
    NATIVE :
   @"   for (int i = 0; i < X_S->Count(); i++)"
    "       if (i < AL4_system::size_Localize_str)"
    "       {"
    "           AL4_system::Localize_name[i] = X_N->get(i);"
    "           AL4_system::Localize_str[i] = X_S->get(i);"
    "       }"
    "       else break;" .
    
FUN Are_untranslated_saved ==> BOOL, NATIVE :
    "RESULT = NATIVE_Localize_str::untranslated_saved;" .
    
FUN Set_untranslated_saved( BOOL Sav|ed_flag ), NATIVE :
    "NATIVE_Localize_str::untranslated_saved = X_Sav;" .
    
FUN Path_translated_strings ==> STR :
    RESULT = Get_application_data_dir .
    
END
*/

