News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Localization of scripts

Started by David Perfors, May 25, 2007, 11:28:53 AM

Previous topic - Next topic

David Perfors

I came a cross this bug. I think it could be useful to bind the _() method. Is there a reason why this is never done?
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

MortenMacFly

Quote from: mispunt on May 25, 2007, 11:28:53 AM
I came a cross this bug. I think it could be useful to bind the _() method. Is there a reason why this is never done?
Not really. And to be honest: The plan is to add even more wxWidgets bindings (e.g. all basic GUI stuff and things). I'm on it for some time now but it's not as easy as I thought it would be. Anyway - this binding could easily be added I don't see any reason why it shouldn't. Will give it a try though...
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

David Perfors

Morton, could you review the patch which is attached and commit it?I didn't had anything todo :P

[attachment deleted by admin]
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

MortenMacFly

Quote from: mispunt on May 25, 2007, 01:58:03 PM
Morton, could you review the patch which is attached and commit it?I didn't had anything todo :P
Hehe... besides the fact that I have a different order (first "_", then "_T") it's exactly the same how I've done it... makes me kind of confident. I haven't tried yet because I currently don't know how to do (I'm not using localisation). Did you??? Does that fix the bug mentioned???
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

David Perfors

No I didn't use localisation, but I tried to the code I mentioned in the bug reply and that works.
I can try the localized version tonight, but I have to find out how I have to install the language pack.
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

David Perfors

This doesn't fix the bug :( strange...
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

David Perfors

#6
Fixed. It will solve the problem partly. the startup script should contain the following (notice the &):

GetScriptingManager().RegisterScriptMenu(_("&Settings") + _T("/-Edit startup script"), _T("edit_startup_script.script"), false);


(see patch 2020)
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring