Click here to Skip to main content
11,428,004 members (59,374 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

 
GeneralRe: ReSharper 3.0.2 Pin
Uwe Keim23-Jul-07 0:40
sitebuilderUwe Keim23-Jul-07 0:40 
GeneralRe: ReSharper 3.0.2 Pin
Alexander Nestrenko23-Jul-07 2:53
memberAlexander Nestrenko23-Jul-07 2:53 
GeneralRe: ReSharper 3.0.2 Pin
Uwe Keim23-Jul-07 2:54
sitebuilderUwe Keim23-Jul-07 2:54 
No Smile | :) . For now I gave up, waiting for the final release.

--
Zeta Producer Desktop CMS
Intuitive, completely easy-to-use CMS for Windows.

Zeta Helpdesk
Open Source ticket software for Windows and web.

Zeta Uploader
Easily send large files by e-mail. Windows and web client.

Desargues
Innovative, lean and neat calculator for Windows.

News[ANN] Version 0.9.23 for R# 3.0.1 is available Pin
Alexander Nestrenko9-Jul-07 23:49
memberAlexander Nestrenko9-Jul-07 23:49 
GeneralRe: [ANN] Version 0.9.23 for R# 3.0.1 is available Pin
Uwe Keim10-Jul-07 6:55
sitebuilderUwe Keim10-Jul-07 6:55 
GeneralRe: [ANN] Version 0.9.23 for R# 3.0.1 is available Pin
Alexander Nestrenko10-Jul-07 20:09
memberAlexander Nestrenko10-Jul-07 20:09 
News[ANN] New version for R# 3.0.1 is available Pin
Alexander Nestrenko7-Jul-07 5:05
memberAlexander Nestrenko7-Jul-07 5:05 
GeneralRe: [ANN] New version for R# 3.0.1 is available Pin
Uwe Keim8-Jul-07 0:08
sitebuilderUwe Keim8-Jul-07 0:08 
GeneralRe: [ANN] New version for R# 3.0.1 is available Pin
Alexander Nestrenko8-Jul-07 20:22
memberAlexander Nestrenko8-Jul-07 20:22 
GeneralRe: [ANN] New version for R# 3.0.1 is available Pin
Uwe Keim8-Jul-07 20:39
sitebuilderUwe Keim8-Jul-07 20:39 
GeneralRe: [ANN] New version for R# 3.0.1 is available Pin
Alexander Nestrenko8-Jul-07 20:46
memberAlexander Nestrenko8-Jul-07 20:46 
GeneralRe: [ANN] New version for R# 3.0.1 is available Pin
Uwe Keim8-Jul-07 20:50
sitebuilderUwe Keim8-Jul-07 20:50 
GeneralRe: [ANN] New version for R# 3.0.1 is available Pin
Alexander Nestrenko9-Jul-07 22:13
memberAlexander Nestrenko9-Jul-07 22:13 
GeneralSuggestions Pin
Uwe Keim4-Jul-07 19:08
sitebuilderUwe Keim4-Jul-07 19:08 
AnswerRe: Suggestions Pin
Alexander Nestrenko4-Jul-07 20:21
memberAlexander Nestrenko4-Jul-07 20:21 
GeneralRe: Suggestions Pin
Uwe Keim4-Jul-07 20:49
sitebuilderUwe Keim4-Jul-07 20:49 
AnswerRe: Suggestions Pin
Alexander Nestrenko5-Jul-07 0:09
memberAlexander Nestrenko5-Jul-07 0:09 
GeneralRe: Suggestions Pin
Uwe Keim5-Jul-07 0:11
sitebuilderUwe Keim5-Jul-07 0:11 
General[ANN] Version 0.9.20 is available Pin
Alexander Nestrenko22-Jun-07 0:46
memberAlexander Nestrenko22-Jun-07 0:46 
GeneralRe: [ANN] Version 0.9.20 is available Pin
Uwe Keim22-Jun-07 3:36
sitebuilderUwe Keim22-Jun-07 3:36 
GeneralRe: [ANN] Version 0.9.20 is available Pin
Alexander Nestrenko22-Jun-07 3:42
memberAlexander Nestrenko22-Jun-07 3:42 
News[ANN] Version 0.8.19 is available Pin
Alexander Nestrenko12-Jun-07 22:40
memberAlexander Nestrenko12-Jun-07 22:40 
GeneralThank you! Pin
_Daedius_8-Jun-07 18:36
member_Daedius_8-Jun-07 18:36 
GeneralRe: Thank you! Pin
Alexander Nestrenko12-Jun-07 22:41
memberAlexander Nestrenko12-Jun-07 22:41 
GeneralRe: Thank you! Pin
lexodus25-Jun-07 5:20
memberlexodus25-Jun-07 5:20 
News[ANN] Version 0.8.17 is available Pin
Alexander Nestrenko29-May-07 0:50
memberAlexander Nestrenko29-May-07 0:50 
AnswerRe: [ANN] Version 0.8.17 is available Pin
Alexander Nestrenko29-May-07 0:51
memberAlexander Nestrenko29-May-07 0:51 
News[ANN] Version 0.8.17 is available Pin
Alexander Nestrenko22-May-07 23:34
memberAlexander Nestrenko22-May-07 23:34 
News[ANN] Version 0.8.16 is available Pin
Alexander Nestrenko18-May-07 3:04
memberAlexander Nestrenko18-May-07 3:04 
GeneralPossible Issue: Line Breaks Pin
Uwe Keim14-May-07 18:57
sitebuilderUwe Keim14-May-07 18:57 
AnswerRe: Possible Issue: Line Breaks Pin
Alexander Nestrenko14-May-07 20:38
memberAlexander Nestrenko14-May-07 20:38 
GeneralRe: Possible Issue: Line Breaks Pin
Uwe Keim14-May-07 21:00
sitebuilderUwe Keim14-May-07 21:00 
News[ANN] Version 0.8.15 is available Pin
Alexander Nestrenko14-May-07 6:37
memberAlexander Nestrenko14-May-07 6:37 
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 

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