RadGrid pager localization - localization

In RadGrid i couldn't find the localization settings for the
GO and Change buttons
when the RadGrid pager is set to Advanced mode.

You must modify the App_GlobalResources file used by the RadGrid control.
In the Solution Explorer, there should be a file named RadGrid.Main.xx-XX.resx under the App_GlobalResources folder, where xx-XX is your language (de-DE).
1b. If the RadGrid.Main.xx-XX.resx file is not there, copy the file named RadGrid.Main.resx and rename the copy as in step 1.
1c. If the RadGrid.Main.resx is not yet in your project, add it to the App_GlobalResources folder. The file should be within your Telerik installed files (ex.: C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q3 2012\App_GlobalResources).
Open that file and modify the keys GoToPageLinkButtonText and ChangePageSizeLinkButtonText.
Don't forget to set the Localization property of your RadGrid to the correct culture (xx-XX).

Related

Issue with localization file while converting from VS2003 application to VS2005

I have VS2003 project which i converted to VS2005. Everything works however the project has resx files which only opens in VS2003 but not in VS2005. While looking at resource files it looks like the files are missing Designer file in VS2005. Is there anyway to create these designer file in VS2005 easily other than adding new resource file and adding texts in new resource file manually.
I have tons of resource files with bunch of values in there. Just want to save time from retyping all those values again.
Solution: Here is what i did to save time. First imported resx xml content in Excel application. Excel was smart enough to put name and value in separate columns. Copied those name/value pair and pasted in new resource file in Visual Studio. Baam. Done. :)

Windows Explorer renames files when copying and an existing file is found

Windows Explorer renames files when copying and an existing file is found - do we have access to that facility from Delphi code?
It would be fairly straight forward to write the code to rename the destination filename when using TFile.Copy(), but it would be better to use the existing code if available.
IFileOperation is the API to the shell's file copy functionality. Use it to replicate the shell's behaviour. In your case you will need to use SetOperationFlags to specify the FOF_RENAMEONCOLLISION flag:
Give the item being operated on a new name in a move, copy, or rename operation if an item with the target name already exists.

Delphi debug output folder attributes

I am trying to figure out how I can set the default attributes on the folders that delphi created when it builds a project. All my googling has provided no answer.
For example:
Say I have a delphi project at C:\MyProject\myProject.dpr. When I build this project, Delphi will create C:\MyProject\Win32\Debug\ folders.
The Win32\Debug\ folders comes from Tools - Options - Environment Options - Delphi Options - Debug DCU Path.
The Problem is the Debug folder delphi created has the Read-Only attribute checked. With that folder being Read-Only, I get frequent build errors, like:
[fatal error] could not create output file C:\MyProject\myProject.exe
If I manually uncheck the Read-Only attribute I can build my project fine.
So does anyone on SO know how to tell Delphi to create this folder without being Read-Only?
(I am using Delphi XE8 but I believe this applies to all versions and Windows 7 Professional)
The folders are created with a call to CreateDirectory that passes NULL as the lpSecurityAttributes parameter. As documented this means that:
If lpSecurityAttributes is NULL, the directory gets a default security descriptor. The ACLs in the default security descriptor for a directory are inherited from its parent directory.
In other words the security settings are inherited from the parent. You can make this directory writeable by making its parent writeable.
You have no control over how the folders are created. There is no option to specify the desired attributes. However, you can try using a Pre-Build event to execute a command-line script that manually changes the folder attributes before compiling begins.

Entity Framework edmx NopCommerce 1.9

I am making a sample by exploring nopcommerce 1.9. I saw two things which i cannot understand First, I am not seeing "NopModel.Designer.cs" file in NopCommerce project and second t4 templates, how to generate these files?
You usually don't see the designer file associated with the EDMX file. If you want to view the XML code that is contained in the EDMX you can right click on it in the solution explorer and choose "Open With..." and then choose "Automatic Editor Selector (XML)" and it will let you view the XML code that is generated by VS when you add/create the EDMX file.
I don't believe that editing this code is suggested, as it is generated by VS and can be re-generated again for certain reasons which will wipe out any code that you may put there. Also if you change some code there it may break something.
I don't know why you're wanting T4 templates, but you can start here:
How to create a simple T4 template

Bundle resources of all forms of one language in one folder in .net

We are in the process of localizing our windows forms application.
We are using the approach where we set the localizable property to true and generate one resx file for one locale.
The problem is we have 20 forms, each to be localized in 3 languages, so there are 60 resx files. Each form shows 3 resx files along with cs and designer and default resx file.
It would be if there was a neat way to bundle all the resource files of 20 forms in a language specific folder. How to do it?
Since .net generates one satellite assembly for one language, after the assembly is generated after build process, can I move/delete the resx file?

Resources