Tiko - new Localization functionality

Started by Paul Squires, July 27, 2026, 01:11:53 PM

Previous topic - Next topic

Paul Squires

Just finished working on a brand new implementation of the Localization edit dialog within Tiko. It is much improved and interactive. You select the langauage and the second PsListTree appears for editing. You edit the language phrase directly in the row (like editing a node in a Treeview).

This was the last phase in the Settings/Options redesign that I needed to do so I now consider the new Options dialog complete. I am also thinking of renaming that whole "Environment Options" stuff to simply "Settings". Seem simpler and I think more consistent with the way that most applications handle that concept.

See attached screenshots if this interests you.

The new changes have not yet been pushed to the Development branch (let alone the Main branch), but I am getting close to doing so. I want to finish the Theme edit dialog before I push all the changes to Development.


Paul Squires
PlanetSquires Software

fbfans

Hi Paul,

I've noticed your frequent major moves recently — it feels like the big version update is getting closer and closer. Great work, and thank you for your hard work.

I also have a few small feature requests that I hope could be considered for the new release:

In the General Options, could we have the ability for users to set the default encoding for newly created files?
In the Compiler Results window, could you add a right-click copy feature that allows selecting a single line or all content? I'm not very skilled at debugging, and sometimes I need to copy error messages to search for solutions online. Currently, I have to switch to the compiler log file to do that, which is a bit inconvenient.
For the localization/language selector, I'd suggest displaying the language names directly in their native form — for example, "简体中文" instead of "Chinese (Simplified)", and "English" instead of "English (US)". This would make it more intuitive.

Thanks a lot for your time!

Paul Squires

Quote from: fbfans on July 29, 2026, 06:14:23 AMIn the General Options, could we have the ability for users to set the default encoding for newly created files?
This has now been implemented. This is a useful new feature.

QuoteIn the Compiler Results window, could you add a right-click copy feature that allows selecting a single line or all content?
This has now also been implemented. I remember a couple of users suggesting something similar to this feature over the past couple of years so it is nice to finally have it.

QuoteFor the localization/language selector, I'd suggest displaying the language names directly in their native form — for example, "简体中文" instead of "Chinese (Simplified)", and "English" instead of "English (US)". This would make it more intuitive.
Sorry, can't do this one. The language name is taken directly from that language's disk filename and then ran through a simple function (see below) to make it look pretty. I did not want to get into the complexity of having to store the language name inside of the actual disk file.

' ========================================================================================
' "chinese_simplified.lang" -> "Chinese Simplified". Display only -- gLocalLangFiles() carries
' the filename, and every file operation goes through that.
' ========================================================================================
private function frmOptionsLocal_PrettyName( byval wszFilename as DWSTRING ) as DWSTRING
    dim as DWSTRING wszName = AfxStrPathName( "NAME", wszFilename )
    dim as DWSTRING wszOut = ""
    dim as boolean bStart = true

    for i as long = 1 to len(wszName)
        dim as DWSTRING wszCh = mid(**wszName, i, 1)
        if wszCh = "_" then
            wszOut += " "
            bStart = true
        else
            wszOut += iif( bStart, ucase(wszCh), lcase(wszCh) )
            bStart = false
        end if
    next

    return wszOut
end function
Paul Squires
PlanetSquires Software