Configuration Language (Locale ID) in version info - delphi-xe3

In Delphi XE3, the configuration is not holding the language option chosen in project > options > Version Info.
I tried to save the .optset file, but it did not work.

Related

How can one preview the source code of a library in CoDeSys 2.3

Is there any way to preview the source code of an imported library in CoDeSys 2.3? When I check the library *.lib file I can see it is not compiled nor obfuscated, but in the CoDeSys there is no option to get into it.
I've been browsing the web for the answer, but couldn't find anything meaningful.
Technically it is possible to open a "*.lib" file in the Codesys 2.3 IDE if it is not encrypted, but I know that the IDE is customized according to the vendor. For example, I don't have "native Codesys 2.3" (directly provided by 3S Software) installed on my computer, but a version of SEW Eurodrive (PLC Editor), which contains some modifications dedicated to their PLCs. This version allows me to open *.lib files:
Maybe the version you have doesn't allow this.
Here's a way to test it:
If you create a project, add some function blocks and select "Save As" you will see that there are several options:
If you select one of the "Encrypted" options you will immediately be asked to enter a key, which will be prompted when opening the *.lib file.

does the file extension matter to DBeaver?

I have a SQL script file with the extension.pgsql
When I open it in DBeaver, it does not seem to recognise it as a SQL script and removes all options such as execute, etc...
If I change the extension from pgsql into sql, then everything is fine.
I do not have control over file extensions...
Is there a way to instruct DBeaver to treat .pgsql as SQL files?
PS: I am using DBeaver 5.3.4 under windows
Yes, the extension does matter and yes you can add file associations to treat .pgsql extensions as SQL files.
Go to File > Properties (Alt+Enter is default keybind). Then Click on Global Settings.
Navigate to General > Editors > File Associations.
Click Add and add .pgsql
Then add an associated editor that is an sql editor.

Local plugin enabling chinese

I am new to moodle.I have created a local plugin and inside the lang folder created a folder zh_cn for chinese. Inside zh_cn folder i placed php file local_pluginname and put chinese strings.But it is not working. Please help.
Do you have the Simplified Chinese language pack installed?
Go to site admin -> language -> language packs and choose Simplified Chinese (zh_cn)
If you have that installed and the plugin is showing [stringid] then the the language cache needs updating.
On your development machine it will be easier if you add this to your config.php
$CFG->langstringcache = false;
On the production site go to site admin -> language -> language settings, uncheck "Cache all language strings", save, then check it again and save. This will update the language cache.

Eclipse-Luna TCP/IP Monitor config Import/Export

I have an small problem in my working environment. For every new version of software, we need to create new workspace (not ask why..), first we use monitor TCP/IP with eclipse-luna. Every time, we must recreate the monitor.
How could i import/export config of Monitor ? it's really tired because we have many backend.
He could be very useful for my team because we use an common .properties (contains all adress) which each developper change for doing monitoring. If we have been able to have an export/import monitor TCP/Ip, it's will be more easy to do accept to create another file which will be delegate to monitoring.
It's an old project and many thing could be do on for upgrade developing environment..
You can try exporting preferences in your older workspace:
Right Click in explorer > Export > Preferences
Then when in your new workspace :
Right Click in explorer > Import > Preferences > select the file you just exported
Not sure if your properties will be there...

Modify Eclipse RCP startup args in protected directory

I am enabling internationalization for my RCP application. The preferences tab allows the user to select between languages. I understand that Eclipse (3.7) has to load the language at start-up and can not dynamically change languages.
I know of three approaches to accomplish this:
1) Modify the OS level shortcut to pass in -nl XX
2) Change the app.ini file to have -nl XX (on separate lines)
3) Change the config.ini to have osgi.nl = XX
The issue with these approaches is that they all require write permission to the application directory. When running under Vista / Windows 7 and Linux implementations that do not provide write access to programs, a normal user does not have permissions to modify these files.
Is there another approach to pass in arguments that change the VM language? Is there a workaround for the file protection provided by the OS?
In Windows the application directory is write-protected for a good reason. Fortunately one can set Eclipse Runtime Options to configure where the RCP application should store
configuration data
workspace data
This can be accomplished in two ways:
setting command line arguments (-configuration , -data)
defining system properties (osgi.configuration.area to , osgi.instance.area to ) for example in config.ini
For further information see Runtime Options in official Eclipse Help.
In Windows such data should be stored in the user directory.
By the way you should be able to locate these settings in the Installation Details pane of the standard About dialog.
However setting these properties is a bit tricky. In my case the application installer evaluates the location of the user directory at installation time and modifies the config.ini file accordingly.