justin = {
main feed
,
music
,
code
= {
cockos
,
reaper
,
wdl
,
ninjam
,
jsfx
,
more
}
,
askjf
,
pubkey
};
Ask Justin Frankel
No reasonable question unanswered since 2009!
Suggested topics: programming, music, sleep, coffee, etc.
Note: please do not ask questions about REAPER features, bugs or scheduling, use the
forums
instead.
Name:
Ask:
Human (enter yes):
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Question:
Are you using UpdateResource/etc for the langpacks or another approach in order to support OS X too?
Asked by gio (94.66.6.x) on July 15 2012, 11:06pm
Reply on July 16 2012, 7:09pm (edited at July 16 2012, 7:10pm):
We use another approach, which involves the preprocessor with __LOCALIZE() macros on the static-string side (and an app that scans source code looking for __LOCALIZE() to build the default language pack), and using a fast FNV hash of the string to identify it for translation.
For dialog resources etc, we have a special version of CreateDialog used which does the translation of text items and some layout tweaks before handing the dialog procedure over to the coded version. At some point this will probably end up in WDL, but it hasn't yet.
Comment:
Your Name:
-- Site Owner's Name:
(for human-verification) Comment:
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Copyright 2025 Justin Frankel
.
|
RSS