Multi-Language Apps lazarus / 31-LCL ---------------------------------------------------------------------- Windsurfer · 2014-01-27 13:20 How far should one attempt to go when converting an application to multi-language? I have now arrived at the point where I have to decide whether sub- folders in the application should be renamed. For example: .../myapp/lang, .../myapp/data, .../myapp/help These can be named and renamed easily, say for the system country or language, on installation for any language that has a po file. Although most users will never look at them, to name them sensibly in the user's language seems right to me, especially when users have to put new data files in the folder. This is not difficult with left to right languages, but would it work with right to left at the moment? I can only program this but not test it. ---------------------------------------------------------------------- taazz · 2014-01-27 15:41 No, folders, subfolders and the rest non messages are not to be included on the translation process. ---------------------------------------------------------------------- BigChimp · 2014-01-27 15:43 Why are you placing data directories under your application directory? This will lead to problems if the user installs e.g. in c:\program files on Windows Vista+ with UAC... Better to follow the OS recommendations on where to store data files: http://wiki.lazarus.freepascal.org/Multiplatform_Programming_Guide#Dat a_and_resource_files Edit: looking at that section, it seems it does not distinguish between - program-related, user dependent data not directly modifiable by the user (e.g. a database with cached data the program uses). - actual user data files... which IMO should go by default in my documents under Windows, ~/My documents or ~ on *nix etc ---------------------------------------------------------------------- Windsurfer · 2014-01-27 18:15 taazz, BigChimp, Thanks for the replies. I'll do those things. They didn't used to matter in Windows 3.11. It's amazing how long it takes for old (bad) habits to die! ---------------------------------------------------------------------- Windsurfer · 2014-02-03 09:10 Windows does have a well defined directory structure which works, so I'll stay with that. I have thought about Linux and all the times I lost my stuff when updating, until I created a separate /home partition. I decided to create a /home/user/.myapp folder to hold all except the user files, which can go into /home/user/douments/myapp. The '.' prefix hides the application folder. This is the option I choose when given a choice. The disadvantage is that on a multi-user device, each user has a separate installation. However, they won't have to reinstall when they upgrade. ---------------------------------------------------------------------- eny · 2014-02-03 16:15 Quote from: BigChimp on January 27, 2014, 04:43:45 pmEdit: looking at that section, it seems it does not distinguish between - program-related, user dependent data not directly modifiable by the user (e.g. a database with cached data the program uses). - actual user data files... which IMO should go by default in my documents under Windows, ~/My documents or ~ on *nix etc Indeed. The folders TS mentioned are typically static program resources that perfectly well would fit in subfolders under the program folder (at least under Window$).