Internationalising RISC OS Applications with ResFind
Application Directory Structure===============================The application directory should contain the following:!MyApp +-!Boot +-!Help +-!Run | +-Resources +-ResFind | and language directories, eg: | +-France +-Germany +-UK there should always be a 'UK' as a minimum | each language directory contains the same set of files, eg: | +-Messages +-Templates if necessary +-etc. any others as necessary!Run file contents==================The file !MyApp.!Run should include: Run <Obey$Dir>.Resources.FindResor Run <Obey$Dir>.Resources.FindRes MyAppName"FindRes" uses the application directory's name as the base name, forexample, "!MyApp" becomes "MyApp". "FindRes MyAppName" uses "MyAppName" asthe base name.System Variables Available==========================The application will be able to use:<MyApp$Dir> to access it's directoryMyAppRes: to access the current language-specific resourcesMyApp: some versions of FindRes set this to the application directoryEg:*IconSprites <MyApp$Dir>.!SpritesSYS "MessageTrans_OpenFile",file%,"AppRes:Messages"SYS "Wimp_OpenTemplate",,"AppRes:Templates"Specifying Language Preferences-------------------------------When ResFind is run, it looks for translations (that is languagedirectories) along the following list of languages:<MyApp$Language> where MyApp is the name of the application.<ResFind$LanguagesPref> containing the list of languages prefered to the one the computer is configuredThe configured language set with *Configure Territory <territory><ResFind$LanguagesSuff> containing the list of languages prefered to the default English (UK) language.UK as the final, default language when no other can be found.The system variables MyApp$Language, ResFind$LanguagesPref andResFind$LanguagesSuff are set by the application ResConf, or canbe set manually.See also========{RISC OS Foundation(broken link} (local copy).German Acorn Group (local copy)StrongHelp documentDownloads:ResFind v2.00 - Sets App$Dir, AppRes$Path and uses App$Dir in AppRes$PathResFind v2.00j - Sets App$Dir, App$Path, AppRes$Path and uses App: in AppRes$PathResFind v2.01d - Sets App$Dir, AppRes$Path and uses App$Dir in AppRes$PathResFind v2.01jgh - Sets App$Dir, AppRes$Path and uses App$Dir in AppRes$Path, AppRes$Path includes App.Resources directory
Related subjects
RISC OS Choices
Last updated: 12-Apr-2004 JGH