On Sunday, October 29, 2017 at 1:15:26 PM UTC+1, Konrad Zuwała wrote: > > Hey Stefan, > we got it set up properly. > However, one more question: I need to add a new string into the app. > Looked how it's organized, but want to make sure I do it a proper way. > String is "No shelved items!" -> when you try to unshelve on a folder that > has nothing shelved, for now we just show MessageBox telling user that > nothing was shelved, so cannot be unshelved. Later it will evolve, and > probably will be handled by an UnshelveDialog, but for now we want to keep > it that way. > So, as I figured out, there's a file: TortoiseUI.pot. Should I just place > my english string there, eg. IDS_NOTHING_SHELVED and it'll be used for > autogenerating resources? Or there is some other way? I don't want to have > this string in code :-) Also, we'll put just an english version of it, so > probably it'll have to be translated someday, if we keep that solution. >
You have to add the string in the visual studio resources. Go to the window "Resource View", then select "TortoiseProc" and expand it until you see the "string resources". Open those and you see the whole list of string resources. Go to the bottom and add a new one there with your IDS_NOTHING_SHELVED id. That's all: the pot files are updated during the build from those resources. Stefan -- You received this message because you are subscribed to the Google Groups "TortoiseSVN-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn-dev/763fa44e-3777-4995-a3aa-beb1af2aeadc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

