Click here to Skip to main content
11,434,799 members (58,034 online)
Click here to Skip to main content

Useful ReSharper plugin for localization

, 26 Apr 2007 CPOL
Rate this:
Please Sign up or sign in to vote.
This ReSharper plugin contains features that helps you for localization

Introduction

This article describes plugin functions.

DT ReSharper Plugin roadmap

is available in the latest version
is partly available

  • Context actions
    • Move strings to resource
    • Replace string by property
    • Use System.String.Empty instead of ""
    • Use System.Environment.NewLine instead of "\r\n"
  • Highlighting
    • String literal is invalid
    • String could be moved to resource
    • String present in a resource
  • Refactoring
    • Move strings to resource
    • Move all strings from file(s) to resource
    • Move all strings from folder(s) to resource
    • Move all strings from project(s) to resource
    • Move all strings from solution to resource

Context actions

Move strings to resource

Move strings to resource by context action.

Replace string by property

If a string exists in project resource files, then use "Replace string by property" context action.

Use System.String.Empty instead of ""

For empty strings use System.String.Empty.

Use System.Environment.NewLine instead of "\r\n"

For string that contains \r and \n, use System.Environment.NewLine.

Highlighting

String literal is invalid

In the ReSharper -> Options you can set "Localization -> String literal is invalid" to "Show as error".

An unrecognized escape sequence marked by red wave.

String could be moved to resource

In the ReSharper -> Options you can set "Localization -> String literal could be moved to resource" to "Show as warning".

All strings underlined by wavy line.

Refactoring

Move strings to resource

You can move strings to resource by context action or main menu item.

First, you select the resource file and string name.

If the checkbox "Apply for all same strings in project {CurrentProjectName}" is true, then you can see all the same strings in this project.

Current string does not present in this list.

String placed to resource file after action.

and string literal replaced by property.

If checkbox "Keep modified files open" is true, then you can undo this action.

History

All changes

Visit DT ReSharper plugin homepage.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Alexander Nesterenko
Software Developer (Senior)
Belarus Belarus
No Biography provided

Comments and Discussions

 
GeneralSuggestion: "Resource key" Combo box should y-resize Pin
Uwe Keim14-May-07 3:00
sitebuilderUwe Keim14-May-07 3:00 
AnswerRe: Suggestion: "Resource key" Combo box should y-resize Pin
Alexander Nestrenko14-May-07 20:36
memberAlexander Nestrenko14-May-07 20:36 
GeneralSuggestion: Allow adding to resource, even if already exists Pin
Uwe Keim14-May-07 2:34
sitebuilderUwe Keim14-May-07 2:34 
AnswerRe: Suggestion: Allow adding to resource, even if already exists Pin
Alexander Nestrenko14-May-07 20:36
memberAlexander Nestrenko14-May-07 20:36 
NewsSuggestion: More Resource Key Options Pin
Uwe Keim13-May-07 21:33
sitebuilderUwe Keim13-May-07 21:33 
GeneralRe: Suggestion: More Resource Key Options Pin
Alexander Nestrenko13-May-07 21:39
memberAlexander Nestrenko13-May-07 21:39 
GeneralDoesn't work [modified] Pin
Uwe Keim13-May-07 21:10
sitebuilderUwe Keim13-May-07 21:10 
GeneralRe: Doesn't work Pin
Alexander Nestrenko13-May-07 21:17
memberAlexander Nestrenko13-May-07 21:17 
GeneralRe: Doesn't work Pin
Uwe Keim13-May-07 21:25
sitebuilderUwe Keim13-May-07 21:25 
QuestionRe: Doesn't work Pin
Alexander Nestrenko14-May-07 20:40
memberAlexander Nestrenko14-May-07 20:40 
AnswerRe: Doesn't work Pin
Uwe Keim14-May-07 20:58
sitebuilderUwe Keim14-May-07 20:58 
News[ANN] Version 0.8.14 is available Pin
Alexander Nestrenko5-May-07 4:17
memberAlexander Nestrenko5-May-07 4:17 
GeneralRe: [ANN] Version 0.8.14 is available Pin
Uwe Keim13-May-07 20:48
sitebuilderUwe Keim13-May-07 20:48 
NewsStringResourceTool Pin
lexa_k3-May-07 23:29
memberlexa_k3-May-07 23:29 
GeneralRe: StringResourceTool Pin
Alexander Nestrenko4-May-07 1:34
memberAlexander Nestrenko4-May-07 1:34 
GeneralRe: StringResourceTool Pin
lexa_k7-May-07 1:44
memberlexa_k7-May-07 1:44 
QuestionExcellent - now how about .NET 1.1? Pin
Jason Dyke3-May-07 23:22
memberJason Dyke3-May-07 23:22 
AnswerRe: Excellent - now how about .NET 1.1? Pin
Alexander Nestrenko3-May-07 23:28
memberAlexander Nestrenko3-May-07 23:28 
GeneralSuggestion for Feature: "Ignore @ verbatim strings" Pin
Uwe Keim3-May-07 19:58
sitebuilderUwe Keim3-May-07 19:58 
GeneralRe: Suggestion for Feature: "Ignore @ verbatim strings" Pin
Alexander Nestrenko3-May-07 22:06
memberAlexander Nestrenko3-May-07 22:06 
GeneralRe: Suggestion for Feature: "Ignore @ verbatim strings" Pin
Uwe Keim14-May-07 19:33
sitebuilderUwe Keim14-May-07 19:33 
General.Really great. Pin
topcatalpha2-May-07 0:00
membertopcatalpha2-May-07 0:00 
GeneralRe: .Really great. Pin
Alexander Nestrenko2-May-07 0:11
memberAlexander Nestrenko2-May-07 0:11 
QuestionIs it working with asp pages? Pin
shlomiw1-May-07 23:17
membershlomiw1-May-07 23:17 
AnswerRe: Is it working with asp pages? Pin
Alexander Nestrenko1-May-07 23:31
memberAlexander Nestrenko1-May-07 23:31 
GeneralRe: Is it working with asp pages? Pin
shlomiw1-May-07 23:34
membershlomiw1-May-07 23:34 
Generalarticle title Pin
Robert Ensor1-May-07 13:12
memberRobert Ensor1-May-07 13:12 
AnswerRe: article title Pin
Alexander Nestrenko1-May-07 20:15
memberAlexander Nestrenko1-May-07 20:15 
QuestionSource Pin
Simone Busoli1-May-07 8:13
memberSimone Busoli1-May-07 8:13 
GeneralResharper Plugin Pin
h.eskandari30-Apr-07 21:42
memberh.eskandari30-Apr-07 21:42 
AnswerRe: Resharper Plugin Pin
Alexander Nestrenko1-May-07 20:16
memberAlexander Nestrenko1-May-07 20:16 
GeneralRe: Resharper Plugin Pin
h.eskandari1-May-07 21:39
memberh.eskandari1-May-07 21:39 
AnswerRe: Resharper Plugin Pin
Alexander Nestrenko1-May-07 21:54
memberAlexander Nestrenko1-May-07 21:54 
QuestionSource Please Pin
hatton30-Apr-07 16:22
memberhatton30-Apr-07 16:22 
QuestionRe: Source Please Pin
Andreas Kroll1-May-07 5:31
memberAndreas Kroll1-May-07 5:31 
AnswerRe: Source Please Pin
Alexander Nestrenko1-May-07 20:23
memberAlexander Nestrenko1-May-07 20:23 
AnswerRe: Source Please Pin
hatton1-May-07 22:21
memberhatton1-May-07 22:21 
GeneralRe: Source Please Pin
Alexander Nestrenko1-May-07 22:53
memberAlexander Nestrenko1-May-07 22:53 
AnswerRe: Source Please Pin
hatton1-May-07 23:06
memberhatton1-May-07 23:06 
GeneralRe: Source Please Pin
Alexander Nestrenko1-May-07 23:36
memberAlexander Nestrenko1-May-07 23:36 
GeneralRe: Source Please Pin
hatton2-May-07 4:21
memberhatton2-May-07 4:21 
QuestionWhat do you think about this plugin? Pin
Alexander Nestrenko28-Apr-07 1:02
memberAlexander Nestrenko28-Apr-07 1:02 
AnswerRe: What do you think about this plugin? Pin
Chris Maunder29-Apr-07 9:01
adminChris Maunder29-Apr-07 9:01 
AnswerRe: What do you think about this plugin? Pin
sting013-May-07 3:47
membersting013-May-07 3:47 
QuestionWorks with ReSharper 3.0, too? Pin
Uwe Keim27-Apr-07 22:40
sitebuilderUwe Keim27-Apr-07 22:40 
AnswerRe: Works with ReSharper 3.0, too? Pin
Alexander Nestrenko28-Apr-07 0:52
memberAlexander Nestrenko28-Apr-07 0:52 
GeneralRe: Works with ReSharper 3.0, too? Pin
Uwe Keim28-Apr-07 0:56
sitebuilderUwe Keim28-Apr-07 0:56 
GeneralGreat plugin ... Pin
sting0127-Apr-07 2:01
membersting0127-Apr-07 2:01 
GeneralRe: Great plugin ... Pin
Alexander Nestrenko27-Apr-07 2:06
memberAlexander Nestrenko27-Apr-07 2:06 
GeneralRe: Great plugin ... Pin
sting0127-Apr-07 2:12
membersting0127-Apr-07 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150428.2 | Last Updated 27 Apr 2007
Article Copyright 2007 by Alexander Nesterenko
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid